clang-formated

This commit is contained in:
nclok1405 2025-05-13 15:55:10 +09:00
commit 8a8a6cdd04
3 changed files with 7 additions and 5 deletions

View file

@ -183,7 +183,8 @@ void OnZTitleInitReplaceTitleMainWithCustom(void* gameState) {
void OnZTitleUpdatePressButtonToSkip(void* gameState) { void OnZTitleUpdatePressButtonToSkip(void* gameState) {
TitleContext* titleContext = (TitleContext*)gameState; TitleContext* titleContext = (TitleContext*)gameState;
if ((CVarGetInteger(CVAR_DEVELOPER_TOOLS("DebugEnabled"), 0) != 0) && (CVarGetInteger(CVAR_DEVELOPER_TOOLS("BootToDebugWarpScreen"), 0) != 0)) { if ((CVarGetInteger(CVAR_DEVELOPER_TOOLS("DebugEnabled"), 0) != 0) &&
(CVarGetInteger(CVAR_DEVELOPER_TOOLS("BootToDebugWarpScreen"), 0) != 0)) {
// Boot to Debug Warp Screen // Boot to Debug Warp Screen
gSaveContext.seqId = (u8)NA_BGM_DISABLED; gSaveContext.seqId = (u8)NA_BGM_DISABLED;
gSaveContext.natureAmbienceId = 0xFF; gSaveContext.natureAmbienceId = 0xFF;

View file

@ -24,9 +24,9 @@ void SohMenu::AddMenuDevTools() {
AddWidget(path, "Boot To Debug Warp Screen", WIDGET_CVAR_CHECKBOX) AddWidget(path, "Boot To Debug Warp Screen", WIDGET_CVAR_CHECKBOX)
.CVar(CVAR_DEVELOPER_TOOLS("BootToDebugWarpScreen")) .CVar(CVAR_DEVELOPER_TOOLS("BootToDebugWarpScreen"))
.PreFunc([](WidgetInfo& info) { info.isHidden = !CVarGetInteger(CVAR_DEVELOPER_TOOLS("DebugEnabled"), 0); }) .PreFunc([](WidgetInfo& info) { info.isHidden = !CVarGetInteger(CVAR_DEVELOPER_TOOLS("DebugEnabled"), 0); })
.Options(CheckboxOptions() .Options(
.Tooltip("Automatically shows Debug Warp Screen when starting or resetting the game.\n" CheckboxOptions().Tooltip("Automatically shows Debug Warp Screen when starting or resetting the game.\n"
"This option takes precedence over \"Boot Sequence\" option.")); "This option takes precedence over \"Boot Sequence\" option."));
AddWidget(path, "OoT Registry Editor", WIDGET_CVAR_CHECKBOX) AddWidget(path, "OoT Registry Editor", WIDGET_CVAR_CHECKBOX)
.CVar(CVAR_DEVELOPER_TOOLS("RegEditEnabled")) .CVar(CVAR_DEVELOPER_TOOLS("RegEditEnabled"))
.PreFunc([](WidgetInfo& info) { info.isHidden = !CVarGetInteger(CVAR_DEVELOPER_TOOLS("DebugEnabled"), 0); }) .PreFunc([](WidgetInfo& info) { info.isHidden = !CVarGetInteger(CVAR_DEVELOPER_TOOLS("DebugEnabled"), 0); })

View file

@ -3589,7 +3589,8 @@ void FileChoose_Main(GameState* thisx) {
} }
// Boot to Debug Warp Screen // Boot to Debug Warp Screen
if ((CVarGetInteger(CVAR_DEVELOPER_TOOLS("DebugEnabled"), 0) != 0) && (CVarGetInteger(CVAR_DEVELOPER_TOOLS("BootToDebugWarpScreen"), 0) != 0)) { if ((CVarGetInteger(CVAR_DEVELOPER_TOOLS("DebugEnabled"), 0) != 0) &&
(CVarGetInteger(CVAR_DEVELOPER_TOOLS("BootToDebugWarpScreen"), 0) != 0)) {
this->buttonIndex = 0xFF; this->buttonIndex = 0xFF;
this->menuMode = FS_MENU_MODE_SELECT; this->menuMode = FS_MENU_MODE_SELECT;
this->selectMode = SM_LOAD_GAME; this->selectMode = SM_LOAD_GAME;