0ad/source
phosit 7ec2d3f0e0
Throw error when simulation script can't be loaded
When a script in "simulation/helpers/" contained an error. Files in
"simulation/components" aren't loaded. The return value of
`LoadDefaultScripts` indicated an error but was ignored. The simulation
still tried to start.

Now instead of returning a ignoreable error code the error is thrown. In
the common path the error is implicitly rethrown to the JS-function
which tried to start the game.

fixes: #8133
(cherry picked from commit 9a526bcae1)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-24 20:20:17 +01:00
..
collada Fix some includes all over the place 2025-08-14 20:15:30 +02:00
dapinterface Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
graphics Replace boost::filesystem std::filyestem 2025-10-31 13:43:50 +01:00
gui Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
i18n Fix some includes all over the place 2025-08-14 20:15:30 +02:00
lib Don't pass the AppHooks as pointer 2025-11-24 20:20:17 +01:00
lobby Add an engine "compatible" version 2025-10-31 13:43:49 +01:00
maths Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
mocks Fix some includes all over the place 2025-08-13 19:38:21 +02:00
network Add an engine "compatible" version 2025-10-31 13:43:49 +01:00
pch Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
ps Throw error when simulation script can't be loaded 2025-11-24 20:20:17 +01:00
renderer Replaces choosedDeviceIt by chosenDeviceIt 2025-11-11 18:16:35 +01:00
rlinterface Fix some includes all over the place 2025-08-13 19:38:21 +02:00
scriptinterface Reduces string allocations in paths. 2025-10-05 01:31:27 +02:00
simulation2 Throw error when simulation script can't be loaded 2025-11-24 20:20:17 +01:00
soundmanager SoundManager: reintroduce manual memory management 2025-10-13 20:42:32 +02:00
third_party Replace boost::filesystem std::filyestem 2025-10-31 13:43:50 +01:00
tools Throw error when simulation script can't be loaded 2025-11-24 20:20:17 +01:00
CxxTestRunner.tpl Support running individual tests or suites 2025-10-17 13:31:20 +02:00
main.cpp Add an engine "compatible" version 2025-10-31 13:43:49 +01:00
test_setup.cpp Fix some includes in atlas 2025-08-21 14:18:38 +02:00