[Misc]: Fixed cinematic path and added 'allowCompactFolderForMod' dvar.
This commit is contained in:
parent
5d672343c5
commit
aa92afcede
@ -295,14 +295,14 @@ namespace Components
|
||||
_snprintf_s(buffer, size, _TRUNCATE, "%s\\main\\%s_video\\%s.%s", directory, languageName, fileName, videoFormat);
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
@ -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* 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* 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
|
||||
|
@ -38,6 +38,7 @@ namespace Dvars
|
||||
Game::dvar_s* paintball_mode = nullptr;
|
||||
|
||||
Game::dvar_s* external_console = nullptr;
|
||||
Game::dvar_s* allowCompactFolderForMod = nullptr;
|
||||
|
||||
Game::dvar_s* M_RawInput = nullptr;
|
||||
|
||||
|
@ -38,6 +38,7 @@ namespace Dvars
|
||||
extern Game::dvar_s* paintball_mode;
|
||||
|
||||
extern Game::dvar_s* external_console;
|
||||
extern Game::dvar_s* allowCompactFolderForMod;
|
||||
|
||||
extern Game::dvar_s* M_RawInput;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user