diff --git a/src/client/component/fastfiles.cpp b/src/client/component/fastfiles.cpp index 82282cf3..8e0a7655 100644 --- a/src/client/component/fastfiles.cpp +++ b/src/client/component/fastfiles.cpp @@ -62,7 +62,7 @@ namespace fastfiles auto result = db_find_xasset_header_hook.invoke(type, name, allow_create_default); if (!result.data) { - console::error("Error: Could not find %s \"%s\"", + console::error("Error: Could not find %s \"%s\"\n", game::g_assetNames[static_cast(type)], name); } @@ -82,7 +82,7 @@ namespace fastfiles db_load_x_zone_hook.create(0x3BA920_b, db_load_x_zone_stub); #endif - db_find_xasset_header_hook.create(0xA76E00_b, db_find_xasset_header_stub); + db_find_xasset_header_hook.create(game::DB_FindXAssetHeader, db_find_xasset_header_stub); command::add("listassetpool", [](const command::params& params) { diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index ea58b8c9..2d07484e 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -21,6 +21,7 @@ namespace game WEAK symbol DB_GetXAssetHeaderName{ 0x9E5BA0 }; WEAK symbol DB_EnumXAssets_FastFile{ 0xA76CE0 }; WEAK symbol DB_IsXAssetDefault{ 0xA780D0 }; + WEAK symbol DB_FindXAssetHeader{ 0xA76E00 }; WEAK symbol Dvar_RegisterBool{ 0xCEB380 }; @@ -64,6 +65,8 @@ namespace game #define R_AddCmdDrawTextWithCursor(TXT, MC, F, UNK, X, Y, XS, YS, R, C, S, CP, CC) \ IW7_AddBaseDrawTextCmd(TXT, MC, F, game::R_GetFontHeight(F), X, Y, XS, YS, R, C, CP, CC, game::R_DrawSomething(S), 0, 0, 0, 0) + WEAK symbol Sys_Milliseconds{ 0xD58110 }; + WEAK symbol ScrPlace_GetViewPlacement{ 0x9E4090 }; WEAK symbol SV_GameSendServerCommand{ 0xC54780 };