Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/GameSetup/HWDetect.cpp
Show All 14 Lines | |||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
#include "lib/ogl.h" | #include "lib/ogl.h" | ||||
#if CONFIG2_AUDIO | |||||
#include "lib/snd.h" | #include "lib/snd.h" | ||||
#endif | |||||
#include "lib/svn_revision.h" | #include "lib/svn_revision.h" | ||||
#include "lib/timer.h" | #include "lib/timer.h" | ||||
#include "lib/utf8.h" | #include "lib/utf8.h" | ||||
#include "lib/external_libraries/libsdl.h" | #include "lib/external_libraries/libsdl.h" | ||||
#include "lib/res/graphics/ogl_tex.h" | #include "lib/res/graphics/ogl_tex.h" | ||||
#include "lib/posix/posix_utsname.h" | #include "lib/posix/posix_utsname.h" | ||||
#include "lib/sysdep/cpu.h" | #include "lib/sysdep/cpu.h" | ||||
#include "lib/sysdep/gfx.h" | #include "lib/sysdep/gfx.h" | ||||
▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | #endif | ||||
scriptInterface.SetProperty(settings, "build_msc", (int)MSC_VERSION); | scriptInterface.SetProperty(settings, "build_msc", (int)MSC_VERSION); | ||||
scriptInterface.SetProperty(settings, "build_icc", (int)ICC_VERSION); | scriptInterface.SetProperty(settings, "build_icc", (int)ICC_VERSION); | ||||
scriptInterface.SetProperty(settings, "build_gcc", (int)GCC_VERSION); | scriptInterface.SetProperty(settings, "build_gcc", (int)GCC_VERSION); | ||||
scriptInterface.SetProperty(settings, "build_clang", (int)CLANG_VERSION); | scriptInterface.SetProperty(settings, "build_clang", (int)CLANG_VERSION); | ||||
scriptInterface.SetProperty(settings, "gfx_card", gfx::CardName()); | scriptInterface.SetProperty(settings, "gfx_card", gfx::CardName()); | ||||
scriptInterface.SetProperty(settings, "gfx_drv_ver", gfx::DriverInfo()); | scriptInterface.SetProperty(settings, "gfx_drv_ver", gfx::DriverInfo()); | ||||
#if CONFIG2_AUDIO | |||||
scriptInterface.SetProperty(settings, "snd_card", snd_card); | scriptInterface.SetProperty(settings, "snd_card", snd_card); | ||||
scriptInterface.SetProperty(settings, "snd_drv_ver", snd_drv_ver); | scriptInterface.SetProperty(settings, "snd_drv_ver", snd_drv_ver); | ||||
#endif | |||||
ReportSDL(scriptInterface, settings); | ReportSDL(scriptInterface, settings); | ||||
ReportGLLimits(scriptInterface, settings); | ReportGLLimits(scriptInterface, settings); | ||||
scriptInterface.SetProperty(settings, "video_desktop_xres", g_VideoMode.GetDesktopXRes()); | scriptInterface.SetProperty(settings, "video_desktop_xres", g_VideoMode.GetDesktopXRes()); | ||||
scriptInterface.SetProperty(settings, "video_desktop_yres", g_VideoMode.GetDesktopYRes()); | scriptInterface.SetProperty(settings, "video_desktop_yres", g_VideoMode.GetDesktopYRes()); | ||||
scriptInterface.SetProperty(settings, "video_desktop_bpp", g_VideoMode.GetDesktopBPP()); | scriptInterface.SetProperty(settings, "video_desktop_bpp", g_VideoMode.GetDesktopBPP()); | ||||
scriptInterface.SetProperty(settings, "video_desktop_freq", g_VideoMode.GetDesktopFreq()); | scriptInterface.SetProperty(settings, "video_desktop_freq", g_VideoMode.GetDesktopFreq()); | ||||
▲ Show 20 Lines • Show All 505 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator