Add CXeromycesEngine

This way the destructor can be used for clean up and `Singleton` can be
used.
This commit is contained in:
phosit
2024-09-18 18:17:04 +02:00
committed by phosit
parent f796beee11
commit 256152df6d
36 changed files with 142 additions and 154 deletions
+1 -1
View File
@@ -662,7 +662,7 @@ void InitGraphics(const CmdLineArgs& args, int flags, const std::vector<CStr>& i
// TODO: Is this the best place for this?
if (VfsDirectoryExists(L"maps/"))
CXeromyces::AddValidator(g_VFS, "map", "maps/scenario.rng");
g_Xeromyces.AddValidator(g_VFS, "map", "maps/scenario.rng");
try
{