Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/GameSetup/HWDetect.cpp
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | #endif | ||||
// Send the same data to the reporting system | // Send the same data to the reporting system | ||||
g_UserReporter.SubmitReport( | g_UserReporter.SubmitReport( | ||||
"hwdetect", | "hwdetect", | ||||
reportVersion, | reportVersion, | ||||
scriptInterface.StringifyJSON(&settings, false), | scriptInterface.StringifyJSON(&settings, false), | ||||
scriptInterface.StringifyJSON(&settings, true)); | scriptInterface.StringifyJSON(&settings, true)); | ||||
// Run the detection script: | // Run the detection script: | ||||
JS::RootedValue global(rq.cx, scriptInterface.GetGlobalObject()); | JS::RootedValue global(rq.cx, rq.globalValue()); | ||||
scriptInterface.CallFunctionVoid(global, "RunHardwareDetection", settings); | scriptInterface.CallFunctionVoid(global, "RunHardwareDetection", settings); | ||||
} | } | ||||
static void ReportSDL(const ScriptInterface& scriptInterface, JS::HandleValue settings) | static void ReportSDL(const ScriptInterface& scriptInterface, JS::HandleValue settings) | ||||
{ | { | ||||
SDL_version build, runtime; | SDL_version build, runtime; | ||||
SDL_VERSION(&build); | SDL_VERSION(&build); | ||||
▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator