0ad/source/simulation2/tests
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
..
test_CmpTemplateManager.h Fix includes in source/simulation2 2025-08-07 20:00:49 +02:00
test_ComponentManager.h Fix includes in source/simulation2 2025-08-07 08:38:40 +02:00
test_EntityMap.h Fix some includes all over the place 2025-08-14 20:15:30 +02:00
test_ParamNode.h Fix includes in source/simulation2 2025-08-07 08:38:40 +02:00
test_Serializer.h Fix includes in source/simulation2 2025-08-07 08:38:40 +02:00
test_SerializeTemplates.h Fix includes in source/simulation2 2025-08-07 08:38:40 +02:00
test_Simulation2.h Throw error when simulation script can't be loaded 2025-11-24 20:20:17 +01:00