0ad/source/ps
Ralph Sennhauser 0d60bdfd2e
Readd JS API function Engine.Exit()
Requested in #8244 for scripting purposes and automated testing. Extend
the original design by adding a means to pass an exit status. This also
comes in handy in case one wants to cleanly error out from JS on parsing
errors of command line arguments as reported in #7967.

Fixes: #8244
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2026-01-29 20:03:56 +01:00
..
containers Remove custom span and use std::span 2025-08-24 11:09:57 +02:00
GameSetup Remove ScriptContext::CreateContext 2026-01-24 12:03:05 +01:00
memory Removes unused pointer from the allocate function 2025-10-12 00:53:10 +02:00
scripting Readd JS API function Engine.Exit() 2026-01-29 20:03:56 +01:00
strings Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
tests Readd JS API function Engine.Exit() 2026-01-29 20:03:56 +01:00
XMB Fix some includes all over the place 2025-08-13 19:38:21 +02:00
XML Fix includes in source/ps 2025-08-03 15:57:56 +02:00
algorithm.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
ArchiveBuilder.cpp Reduces boost usage for strings 2025-10-16 09:17:05 +02:00
ArchiveBuilder.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
CacheLoader.cpp Reduces string allocations in paths. 2025-10-05 01:31:27 +02:00
CacheLoader.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
CConsole.cpp Fix exceeding input boundaries in console 2025-12-28 20:35:20 +01:00
CConsole.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
CLogger.cpp Add an engine "compatible" version 2025-10-26 09:16:46 +01:00
CLogger.h Fix includes in source/renderer 2025-07-27 16:07:14 +02:00
Compress.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Compress.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ConfigDB.cpp Reduces boost usage for strings 2025-10-16 09:17:05 +02:00
ConfigDB.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
CStr.cpp Update trac links with gitea links 2024-12-10 11:29:48 +01:00
CStr.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
CStrForward.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CStrIntern.cpp Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
CStrIntern.h Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
CStrInternStatic.h Removes USE_FOG define and switches to a shader parameter. 2025-10-11 08:11:35 +02:00
DllLoader.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
DllLoader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Errors.cpp Don't leak all GUI objects on name ambiguity following 5cc814759f and remove ERROR_GROUP GUI. 2019-10-11 16:20:50 +00:00
Errors.h Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
FileIo.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
FileIo.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Filesystem.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Filesystem.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Future.h Make TaskManager independent of Future 2025-08-28 20:01:39 +02:00
Game.cpp Remove g_GUI usage in simulation2/* 2026-01-23 21:05:18 +01:00
Game.h Pass debugOptions on construction of CSimulation2 2025-11-01 17:31:54 +01:00
Globals.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
Globals.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
GUID.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
GUID.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hashing.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Hashing.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hotkey.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
Hotkey.h Fix some includes all over the place 2025-08-14 20:15:30 +02:00
Joystick.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
Joystick.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
KeyName.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
KeyName.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Loader.cpp Don't suspend loader after each finished task 2025-12-27 17:17:06 +01:00
Loader.h Use a coroutine for Loader tasks 2025-12-21 15:51:46 +01:00
Mod.cpp Fix some includes all over the place 2025-08-13 19:38:21 +02:00
Mod.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
ModInstaller.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
ModInstaller.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
ModIo.cpp Reduces boost usage for strings 2025-10-16 09:17:05 +02:00
ModIo.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Profile.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Profile.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Profiler2.cpp Use cpp-httplib instead of mongoose 2026-01-24 10:45:48 +01:00
Profiler2.h Use cpp-httplib instead of mongoose 2026-01-24 10:45:48 +01:00
Profiler2GPU.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Profiler2GPU.h Fix some includes in source/renderer 2025-07-09 09:04:50 +02:00
ProfileViewer.cpp Fixes ProfilerViewer when drawing empty cells 2025-12-28 17:36:36 +01:00
ProfileViewer.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Pyrogenesis.cpp Add an engine "compatible" version 2025-10-26 09:16:46 +01:00
Pyrogenesis.h Use the PYROGENESIS_VERSION macro instead of a global 2025-10-26 09:16:44 +01:00
Replay.cpp Remove ScriptContext::CreateContext 2026-01-24 12:03:05 +01:00
Replay.h Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
SavedGame.cpp Add an engine "compatible" version 2025-10-26 09:16:46 +01:00
SavedGame.h Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
Singleton.h Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
TaskManager.cpp Make TaskManager independent of Future 2025-08-28 20:01:39 +02:00
TaskManager.h Make TaskManager independent of Future 2025-08-28 20:01:39 +02:00
TemplateLoader.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
TemplateLoader.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Threading.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Threading.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
ThreadUtil.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
TouchInput.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
TouchInput.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
UniDoubler.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
UserReport.cpp Use Future for the userreporter 2025-11-17 21:45:00 +01:00
UserReport.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Util.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Util.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
VideoMode.cpp Uses SDL workaround only for GL 2025-10-15 00:52:25 +02:00
VideoMode.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
VisualReplay.cpp Add an engine "compatible" version 2025-10-26 09:16:46 +01:00
VisualReplay.h Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
World.cpp Use a coroutine for Loader tasks 2025-12-21 15:51:46 +01:00
World.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00