We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de64b81 commit 3b62e07Copy full SHA for 3b62e07
1 file changed
src/game/shared/gamestate/gamestate.cpp
@@ -71,8 +71,6 @@ struct CWebRpcMessage
71
}
72
};
73
74
-extern const char* COM_GetModDirectory();
75
-
76
class CHTTPServerThread : public CThread
77
{
78
public:
@@ -90,7 +88,7 @@ class CHTTPServerThread : public CThread
90
88
Msg("Initializing game state HTTP system...\n");
91
89
m_Crow = new crow::SimpleApp();
92
crow::SimpleApp& app = *m_Crow;
93
- const char* pGameDir = COM_GetModDirectory();
+ const char* pGameDir = CommandLine()->ParmValue("-game", CommandLine()->ParmValue( "-defaultgamedir", "hl2" ) );
94
CFmtStr1024 pStaticDir("%s/%s", pGameDir, "loose/resource/html");
95
crow::Blueprint ui_bp("ui", pStaticDir.Get());
96
app.register_blueprint(ui_bp);
0 commit comments