mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 06:49:28 -05:00
refactor: get rid of global game variables
This commit is contained in:
@ -20,7 +20,7 @@ namespace
|
||||
"test,data,lol\n"
|
||||
"lorem,ipsum");
|
||||
|
||||
Zone zone("MockZone", 0, &g_GameIW3);
|
||||
Zone zone("MockZone", 0, IGame::GetGameById(GameId::IW3));
|
||||
MockAssetLoadingManager assetLoadingManager(zone, searchPath);
|
||||
|
||||
AssetLoaderStringTable assetLoader;
|
||||
|
@ -21,7 +21,7 @@ namespace
|
||||
"test,data,lol\n"
|
||||
"lorem,ipsum");
|
||||
|
||||
Zone zone("MockZone", 0, &g_GameIW4);
|
||||
Zone zone("MockZone", 0, IGame::GetGameById(GameId::IW4));
|
||||
MockAssetLoadingManager assetLoadingManager(zone, searchPath);
|
||||
|
||||
AssetLoaderStringTable assetLoader;
|
||||
|
@ -28,7 +28,7 @@ namespace test::game::iw4::menu::parsing::it
|
||||
|
||||
public:
|
||||
MenuParsingItHelper()
|
||||
: m_zone("MockZone", 0, &g_GameIW4),
|
||||
: m_zone("MockZone", 0, IGame::GetGameById(GameId::IW4)),
|
||||
m_manager(m_zone, m_search_path)
|
||||
{
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ namespace
|
||||
"test,data,lol\n"
|
||||
"lorem,ipsum");
|
||||
|
||||
Zone zone("MockZone", 0, &g_GameIW5);
|
||||
Zone zone("MockZone", 0, IGame::GetGameById(GameId::IW5));
|
||||
MockAssetLoadingManager assetLoadingManager(zone, searchPath);
|
||||
|
||||
AssetLoaderStringTable assetLoader;
|
||||
|
@ -20,7 +20,7 @@ namespace
|
||||
"test,data,lol\n"
|
||||
"lorem,ipsum");
|
||||
|
||||
Zone zone("MockZone", 0, &g_GameT5);
|
||||
Zone zone("MockZone", 0, IGame::GetGameById(GameId::T5));
|
||||
MockAssetLoadingManager assetLoadingManager(zone, searchPath);
|
||||
|
||||
AssetLoaderStringTable assetLoader;
|
||||
|
@ -20,7 +20,7 @@ namespace
|
||||
"test,data,lol\n"
|
||||
"lorem,ipsum");
|
||||
|
||||
Zone zone("MockZone", 0, &g_GameT6);
|
||||
Zone zone("MockZone", 0, IGame::GetGameById(GameId::T6));
|
||||
MockAssetLoadingManager assetLoadingManager(zone, searchPath);
|
||||
|
||||
AssetLoaderStringTable assetLoader;
|
||||
|
Reference in New Issue
Block a user