From fa1879f9a7028572e76507507bc1fd1177f22eb0 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Sun, 29 Sep 2024 13:45:34 -0700 Subject: [PATCH] commandline: avoid misleading indentation --- desmume/src/commandline.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/desmume/src/commandline.cpp b/desmume/src/commandline.cpp index 4c7bcc4a0..d1a25987e 100644 --- a/desmume/src/commandline.cpp +++ b/desmume/src/commandline.cpp @@ -612,23 +612,23 @@ void CommandLine::process_addonCommands() slot1_Change(NDS_SLOT1_R4); else if(slot1 == "RETAILNAND") slot1_Change(NDS_SLOT1_RETAIL_NAND); - else if(slot1 == "RETAILMCROM") - slot1_Change(NDS_SLOT1_RETAIL_MCROM); - else if(slot1 == "RETAILDEBUG") - slot1_Change(NDS_SLOT1_RETAIL_DEBUG); + else if(slot1 == "RETAILMCROM") + slot1_Change(NDS_SLOT1_RETAIL_MCROM); + else if(slot1 == "RETAILDEBUG") + slot1_Change(NDS_SLOT1_RETAIL_DEBUG); - if (_rtc_day != -1 || _rtc_hour != -1) { - DateTime now = DateTime::get_Now(); - int cur_day = now.get_DayOfWeek(); - int cur_hour = now.get_Hour(); - int cur_total = cur_day * 24 + cur_hour; - int day = (_rtc_day != -1 ? _rtc_day : cur_day); - int hour = (_rtc_hour != -1 ? _rtc_hour : cur_hour); - int total = day * 24 + hour; - int diff = total - cur_total; - if (diff < 0) - diff += 24 * 7; - rtcHourOverride = diff; - } + if (_rtc_day != -1 || _rtc_hour != -1) { + DateTime now = DateTime::get_Now(); + int cur_day = now.get_DayOfWeek(); + int cur_hour = now.get_Hour(); + int cur_total = cur_day * 24 + cur_hour; + int day = (_rtc_day != -1 ? _rtc_day : cur_day); + int hour = (_rtc_hour != -1 ? _rtc_hour : cur_hour); + int total = day * 24 + hour; + int diff = total - cur_total; + if (diff < 0) + diff += 24 * 7; + rtcHourOverride = diff; + } }