add _sound prefix too

This commit is contained in:
quaK 2024-01-06 19:26:24 +02:00
parent 67ef32b54d
commit 5d2065e322

View File

@ -129,7 +129,7 @@ namespace gsc
!game::DB_IsXAssetDefault(game::ASSET_TYPE_SCRIPTFILE, file_name)) !game::DB_IsXAssetDefault(game::ASSET_TYPE_SCRIPTFILE, file_name))
{ {
if (real_name.starts_with(utils::string::va("scripts/%s/maps/", game::Com_GameMode_GetActiveGameModeStr())) if (real_name.starts_with(utils::string::va("scripts/%s/maps/", game::Com_GameMode_GetActiveGameModeStr()))
&& real_name.ends_with("_fx")) && (real_name.ends_with("_fx") || real_name.ends_with("_sound")))
{ {
console::debug("Refusing to compile rawfile '%s'\n", real_name.data()); console::debug("Refusing to compile rawfile '%s'\n", real_name.data());
return game::DB_FindXAssetHeader(game::ASSET_TYPE_SCRIPTFILE, file_name, false).scriptfile; return game::DB_FindXAssetHeader(game::ASSET_TYPE_SCRIPTFILE, file_name, false).scriptfile;