Skip to content

Commit 3b62e07

Browse files
committed
use -game directly
1 parent de64b81 commit 3b62e07

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/game/shared/gamestate/gamestate.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ struct CWebRpcMessage
7171
}
7272
};
7373

74-
extern const char* COM_GetModDirectory();
75-
7674
class CHTTPServerThread : public CThread
7775
{
7876
public:
@@ -90,7 +88,7 @@ class CHTTPServerThread : public CThread
9088
Msg("Initializing game state HTTP system...\n");
9189
m_Crow = new crow::SimpleApp();
9290
crow::SimpleApp& app = *m_Crow;
93-
const char* pGameDir = COM_GetModDirectory();
91+
const char* pGameDir = CommandLine()->ParmValue("-game", CommandLine()->ParmValue( "-defaultgamedir", "hl2" ) );
9492
CFmtStr1024 pStaticDir("%s/%s", pGameDir, "loose/resource/html");
9593
crow::Blueprint ui_bp("ui", pStaticDir.Get());
9694
app.register_blueprint(ui_bp);

0 commit comments

Comments
 (0)