mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-04-28 21:27:58 +03:00
move AltAssets to gSettings from gEnhancements (#5323)
This commit is contained in:
parent
2589448057
commit
ee23d02921
2 changed files with 4 additions and 4 deletions
|
@ -310,7 +310,7 @@ OTRGlobals::OTRGlobals() {
|
|||
|
||||
// tell LUS to reserve 3 SoH specific threads (Game, Audio, Save)
|
||||
context->InitResourceManager(OTRFiles, {}, 3);
|
||||
prevAltAssets = CVarGetInteger(CVAR_ENHANCEMENT("AltAssets"), 0);
|
||||
prevAltAssets = CVarGetInteger(CVAR_SETTING("AltAssets"), 0);
|
||||
context->GetResourceManager()->SetAltAssetsEnabled(prevAltAssets);
|
||||
|
||||
auto controlDeck = std::make_shared<LUS::ControlDeck>(std::vector<CONTROLLERBUTTONS_T>({
|
||||
|
@ -1428,7 +1428,7 @@ extern "C" void Graph_StartFrame() {
|
|||
}
|
||||
#endif
|
||||
case KbScancode::LUS_KB_TAB: {
|
||||
CVarSetInteger(CVAR_ENHANCEMENT("AltAssets"), !CVarGetInteger(CVAR_ENHANCEMENT("AltAssets"), 0));
|
||||
CVarSetInteger(CVAR_SETTING("AltAssets"), !CVarGetInteger(CVAR_SETTING("AltAssets"), 0));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1524,7 +1524,7 @@ extern "C" void Graph_ProcessGfxCommands(Gfx* commands) {
|
|||
}
|
||||
}
|
||||
|
||||
bool curAltAssets = CVarGetInteger(CVAR_ENHANCEMENT("AltAssets"), 0);
|
||||
bool curAltAssets = CVarGetInteger(CVAR_SETTING("AltAssets"), 0);
|
||||
if (prevAltAssets != curAltAssets) {
|
||||
prevAltAssets = curAltAssets;
|
||||
Ship::Context::GetInstance()->GetResourceManager()->SetAltAssetsEnabled(curAltAssets);
|
||||
|
|
|
@ -429,7 +429,7 @@ void SohMenu::AddMenuEnhancements() {
|
|||
|
||||
AddWidget(path, "Mods", WIDGET_SEPARATOR_TEXT);
|
||||
AddWidget(path, "Use Alternate Assets", WIDGET_CVAR_CHECKBOX)
|
||||
.CVar(CVAR_ENHANCEMENT("AltAssets"))
|
||||
.CVar(CVAR_SETTING("AltAssets"))
|
||||
.Options(CheckboxOptions().Tooltip(
|
||||
"Toggle between standard assets and alternate assets. Usually mods will indicate if "
|
||||
"this setting has to be used or not."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue