diff --git a/Makefile b/Makefile index bc8e1a6..22e98eb 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ PRODUCT_CODE := CTR-HB-CKPT VERSION_MAJOR := 2 VERSION_MINOR := 0 -VERSION_MICRO := 1 +VERSION_MICRO := 2 ROSALINA := 0 diff --git a/README.md b/README.md index 0168014..cc4288d 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ You can scroll between the title list with the DPAD/LR and target a title with A If you want to have DS cartridge recognition with Rosalina-based Homebrew Launchers: inject the Homebrew Launcher in a title which has access to DS saves. +**Notice**: You mustn't have a flashcard inserted when launching Checkpoint, due to possible incompatibilities that could cause some threads to not end, possibly causing crashes. + ## Issues Checkpoint displays error codes when something weird happens or operations fail. If you have any issues, please ensure they haven't already been addressed, and report the error code and a summary of your operations to reproduce it. diff --git a/include/datetime.h b/include/datetime.h index 0a60019..05a3378 100644 --- a/include/datetime.h +++ b/include/datetime.h @@ -22,7 +22,6 @@ #include "common.h" std::string getTime(void); -std::string getCleanDateTime(void); std::string getPathDateTime(void); #endif \ No newline at end of file diff --git a/source/datetime.cpp b/source/datetime.cpp index 578a1f9..05b7fca 100644 --- a/source/datetime.cpp +++ b/source/datetime.cpp @@ -30,18 +30,6 @@ std::string getTime(void) return ret; } -std::string getCleanDateTime(void) -{ - char buf[80] = {0}; - time_t unixTime = time(NULL); - struct tm* timeStruct = gmtime((const time_t*)&unixTime); - - sprintf(buf, "%02i%02i%02i_%02i%02i%02i", timeStruct->tm_mday, timeStruct->tm_mon + 1, timeStruct->tm_year + 1900, timeStruct->tm_hour, timeStruct->tm_min, timeStruct->tm_sec); - - std::string ret(buf); - return ret; -} - std::string getPathDateTime(void) { char buf[80] = {0}; diff --git a/source/fsstream.cpp b/source/fsstream.cpp index 60deb6f..966b1d2 100644 --- a/source/fsstream.cpp +++ b/source/fsstream.cpp @@ -219,7 +219,7 @@ void backup(size_t index) if (R_SUCCEEDED(res)) { - std::string suggestion = multipleSelectionEnabled() ? "Autobackup " + getCleanDateTime() : getPathDateTime(); + std::string suggestion = getPathDateTime(); std::u16string customPath; if (multipleSelectionEnabled()) @@ -287,7 +287,7 @@ void backup(size_t index) u32 saveSize = SPIGetCapacity(cardType); u32 sectorSize = (saveSize < 0x10000) ? saveSize : 0x10000; - std::string suggestion = multipleSelectionEnabled() ? title.getShortDescription() + " - Autobackup" : getPathDateTime(); + std::string suggestion = getPathDateTime(); std::u16string customPath; if (multipleSelectionEnabled()) diff --git a/source/gui.cpp b/source/gui.cpp index aa325d7..24deccd 100644 --- a/source/gui.cpp +++ b/source/gui.cpp @@ -109,7 +109,7 @@ Gui::Gui(void) messageBox->push_message("Hold \uE003 to multiselect all titles."); messageBox->push_message("Press \uE006 to move between titles."); messageBox->push_message("Press \uE004\uE005 to switch page."); - messageBox->push_message("Hold \uE001 to refresh titles"); + messageBox->push_message("Hold \uE001 to refresh titles."); } void Gui::createInfo(std::string title, std::string message) diff --git a/source/spi.cpp b/source/spi.cpp index abb47d4..5921bfe 100644 --- a/source/spi.cpp +++ b/source/spi.cpp @@ -339,7 +339,7 @@ Result SPIGetCardType(CardType* type, int infrared) { u32 tries = 0; CardType t = (infrared == 1) ? FLASH_INFRARED_DUMMY : FLASH_STD_DUMMY; Result res; - u32 jedecOrderedList[] = { 0x204012, 0x621600, 0x204013, 0x621100, 0x204014, 0x202017}; + u32 jedecOrderedList[] = {0x204012, 0x621600, 0x204013, 0x621100, 0x204014, 0x202017}; u32 maxTries = (infrared == -1) ? 2 : 1; // note: infrared = -1 fails 1/3 of the time while(tries < maxTries){