1
0
forked from mirrors/0ad

Introduce a namespace in Loader

All functions had a `LDR_` prefix. The prefix is removed.
Functions and globals which are only used in Loader.cpp are now
contained in an anonymous namespace.
This commit is contained in:
phosit
2025-10-20 21:35:40 +02:00
parent f257ce8f9c
commit 1917d034fd
15 changed files with 94 additions and 81 deletions
@@ -109,7 +109,7 @@ namespace
g_Game->StartGame(attrs, "");
// TODO: Non progressive load can fail - need a decent way to handle this
LDR_NonprogressiveLoad();
PS::Loader::NonprogressiveLoad();
// Disable fog-of-war - this must be done before starting the game,
// as visual actors cache their visibility state on first render.
@@ -153,7 +153,7 @@ QUERYHANDLER(GenerateMap)
catch (std::exception&)
{
// Cancel loading
LDR_Cancel();
PS::Loader::Cancel();
// Since map generation failed and we don't know why, use the blank map as a fallback