[Misc]: Fixed cinematic path and added 'allowCompactFolderForMod' dvar.

This commit is contained in:
JerryALT 2024-04-07 15:41:35 +03:00
parent 5d672343c5
commit aa92afcede
3 changed files with 8 additions and 6 deletions

View File

@ -295,14 +295,14 @@ namespace Components
_snprintf_s(buffer, size, _TRUNCATE, "%s\\main\\%s_video\\%s.%s", directory, languageName, fileName, videoFormat); _snprintf_s(buffer, size, _TRUNCATE, "%s\\main\\%s_video\\%s.%s", directory, languageName, fileName, videoFormat);
return; return;
} }
else if (Utils::IO::FileExists(Utils::String::VA("%s\\%s\\video\\%s.%s", directory, Dvars::Functions::Dvar_FindVar("fs_game")->current.string, fileName, videoFormat))) else if (Utils::IO::FileExists(Utils::String::VA("%s\\%s\\main\\video\\%s.%s", directory, Dvars::Functions::Dvar_FindVar("fs_game")->current.string, fileName, videoFormat)))
{ {
_snprintf_s(buffer, size, _TRUNCATE, "%s\\%s\\video\\%s.%s", directory, Dvars::Functions::Dvar_FindVar("fs_game")->current.string, fileName, videoFormat); _snprintf_s(buffer, size, _TRUNCATE, "%s\\%s\\main\\video\\%s.%s", directory, Dvars::Functions::Dvar_FindVar("fs_game")->current.string, fileName, videoFormat);
return; return;
} }
else else
{ {
_snprintf_s(buffer, size, _TRUNCATE, "%s\\%s\\video\\%s\\%s.%s", directory, Dvars::Functions::Dvar_FindVar("fs_game")->current.string, languageName, fileName, videoFormat); _snprintf_s(buffer, size, _TRUNCATE, "%s\\%s\\main\\video\\%s\\%s.%s", directory, Dvars::Functions::Dvar_FindVar("fs_game")->current.string, languageName, fileName, videoFormat);
return; return;
} }
} }
@ -465,7 +465,7 @@ namespace Components
Game::dvar_s* cg_drawDamageFeedbackOption = Dvars::Register::Dvar_RegisterBool("cg_drawDamageFeedbackOption", "Display a marker when hitting enemies", false, Game::saved); Game::dvar_s* cg_drawDamageFeedbackOption = Dvars::Register::Dvar_RegisterBool("cg_drawDamageFeedbackOption", "Display a marker when hitting enemies", false, Game::saved);
Game::dvar_s* snd_hitsoundDisabled = Dvars::Register::Dvar_RegisterBool("snd_hitsoundDisabled", "Disable the hit indicator sound", true, Game::saved); Game::dvar_s* snd_hitsoundDisabled = Dvars::Register::Dvar_RegisterBool("snd_hitsoundDisabled", "Disable the hit indicator sound", true, Game::saved);
Game::dvar_s* sv_allowCheats = Dvars::Register::Dvar_RegisterBool("sv_allowCheats", "Enable/Disable the game cheats", false, Game::saved); Game::dvar_s* sv_allowCheats = Dvars::Register::Dvar_RegisterBool("sv_allowCheats", "Enable/Disable the game cheats", false, Game::saved);
Game::dvar_s* allowCompactFolderForMod = Dvars::Register::Dvar_RegisterBool("allowCompactFolderForMod", "Enable/Disable compact loading of the mod files.", true, Game::none); Dvars::allowCompactFolderForMod = Dvars::Register::Dvar_RegisterBool("allowCompactFolderForMod", "Enable/Disable compact loading of the mod files.", false, Game::saved);
}); });
// Hook for correct works the latched dvars // Hook for correct works the latched dvars

View File

@ -38,6 +38,7 @@ namespace Dvars
Game::dvar_s* paintball_mode = nullptr; Game::dvar_s* paintball_mode = nullptr;
Game::dvar_s* external_console = nullptr; Game::dvar_s* external_console = nullptr;
Game::dvar_s* allowCompactFolderForMod = nullptr;
Game::dvar_s* M_RawInput = nullptr; Game::dvar_s* M_RawInput = nullptr;

View File

@ -38,6 +38,7 @@ namespace Dvars
extern Game::dvar_s* paintball_mode; extern Game::dvar_s* paintball_mode;
extern Game::dvar_s* external_console; extern Game::dvar_s* external_console;
extern Game::dvar_s* allowCompactFolderForMod;
extern Game::dvar_s* M_RawInput; extern Game::dvar_s* M_RawInput;