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" | ||||
#include "lib/snd.h" | |||||
#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" | ||||
#include "lib/sysdep/numa.h" | #include "lib/sysdep/numa.h" | ||||
#include "lib/sysdep/os_cpu.h" | #include "lib/sysdep/os_cpu.h" | ||||
#include "lib/sysdep/snd.h" | |||||
#if ARCH_X86_X64 | #if ARCH_X86_X64 | ||||
# include "lib/sysdep/arch/x86_x64/cache.h" | # include "lib/sysdep/arch/x86_x64/cache.h" | ||||
# include "lib/sysdep/arch/x86_x64/topology.h" | # include "lib/sysdep/arch/x86_x64/topology.h" | ||||
#endif | #endif | ||||
#include "ps/CLogger.h" | #include "ps/CLogger.h" | ||||
#include "ps/ConfigDB.h" | #include "ps/ConfigDB.h" | ||||
#include "ps/Filesystem.h" | #include "ps/Filesystem.h" | ||||
#include "ps/Profile.h" | #include "ps/Profile.h" | ||||
▲ Show 20 Lines • Show All 219 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()); | ||||
scriptInterface.SetProperty(settings, "snd_card", std::wstring(snd_card)); | scriptInterface.SetProperty(settings, "snd_card", snd_card); | ||||
scriptInterface.SetProperty(settings, "snd_drv_ver", std::wstring(snd_drv_ver)); | scriptInterface.SetProperty(settings, "snd_drv_ver", snd_drv_ver); | ||||
ReportGLLimits(scriptInterface, settings); | ReportGLLimits(scriptInterface, settings); | ||||
scriptInterface.SetProperty(settings, "video_xres", g_VideoMode.GetXRes()); | scriptInterface.SetProperty(settings, "video_xres", g_VideoMode.GetXRes()); | ||||
scriptInterface.SetProperty(settings, "video_yres", g_VideoMode.GetYRes()); | scriptInterface.SetProperty(settings, "video_yres", g_VideoMode.GetYRes()); | ||||
scriptInterface.SetProperty(settings, "video_bpp", g_VideoMode.GetBPP()); | scriptInterface.SetProperty(settings, "video_bpp", g_VideoMode.GetBPP()); | ||||
scriptInterface.SetProperty(settings, "video_desktop_xres", g_VideoMode.GetDesktopXRes()); | scriptInterface.SetProperty(settings, "video_desktop_xres", g_VideoMode.GetDesktopXRes()); | ||||
▲ Show 20 Lines • Show All 485 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator