0ad/source/ps/GameSetup
elexis a84e2e57df Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid.
Make that function static, so that it can be used for these functions
without slowly having to obtain the ScriptInterface instance using
GetScriptInterfaceAndCBData just to get the JSContext again.
Remove few redundant conversions for CreateObject arguments.

Differential Revision: https://code.wildfiregames.com/D2128
Tested on: gcc 9.1.0, clang 8.0.1, Jenkins
Tedious performance testing in: D2128, D2127

This was SVN commit r22894.
2019-09-13 00:56:51 +00:00
..
tests Add a mod installer, fixes #4027. 2018-04-15 01:46:28 +00:00
Atlas.cpp Add the ability to specify a log level when using dlopen and change it to normal for Atlas. 2014-06-05 17:07:04 +00:00
Atlas.h Add basic help page into the main menu. 2010-07-07 21:47:31 +00:00
CmdLineArgs.cpp Add a mod installer, fixes #4027. 2018-04-15 01:46:28 +00:00
CmdLineArgs.h Add a mod installer, fixes #4027. 2018-04-15 01:46:28 +00:00
Config.cpp Refactor renderer options. 2019-08-04 08:28:30 +00:00
Config.h Refactor renderer options. 2019-08-04 08:28:30 +00:00
GameSetup.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
GameSetup.h Alt+tab fix for ca9109be75 - call sound IdleTask in Atlas and swap buffers only once in Atlas. 2019-07-24 16:40:34 +00:00
HWDetect.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
HWDetect.h Add script-based system for doing messy stuff based on system configuration. 2010-11-20 19:46:49 +00:00
Paths.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
Paths.h Updates data paths on OS X and Windows. On OS X only write to locations inside ~/Library. On Windows make the distinction between local and roaming appdata, and use folder inside My Documents for user-created data. Fixes #1145. 2012-03-22 00:23:31 +00:00