Skip to content

Commit

Permalink
prepare to release
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoGiordano committed Oct 16, 2017
1 parent 80d8bbd commit f72c7a6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ PRODUCT_CODE := CTR-HB-CKPT

VERSION_MAJOR := 2
VERSION_MINOR := 0
VERSION_MICRO := 1
VERSION_MICRO := 2

ROSALINA := 0

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion include/datetime.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "common.h"

std::string getTime(void);
std::string getCleanDateTime(void);
std::string getPathDateTime(void);

#endif
12 changes: 0 additions & 12 deletions source/datetime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
4 changes: 2 additions & 2 deletions source/fsstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion source/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion source/spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit f72c7a6

Please sign in to comment.