Skip to content

Commit

Permalink
Add build date to the about message
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 committed Aug 10, 2016
1 parent 77ccd8d commit f8024e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ EXTRA_OUTPUT_FILES := LICENSE.TXT
LIBRARY_DIRS := $(DEVKITPRO)/libctru
LIBRARIES := ctru m

BUILD_FLAGS := -DVERSION_STRING="\"`git describe --tags --abbrev=0`\"" -DREVISION_STRING="\"`git rev-parse --short HEAD`\""
BUILD_FLAGS := -DBUILD_VERSION="\"`git describe --tags --abbrev=0`\"" -DBUILD_REVISION="\"`git rev-parse --short HEAD`\"" -DBUILD_DATE="\"`date -u +'%Y-%m-%d %H:%M:%S %Z'`\""
RUN_FLAGS :=

# 3DS CONFIGURATION #
Expand Down
Binary file modified qr_code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 7 additions & 8 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,13 @@ void clean_tickets(){
) {
AM_DeleteTicket(titleID);
deletedCount++;
printf("Deleted ");
printf(cur);
printf("\n");
printf("Deleted %s \n", cur);
}
}
}
}
}
printf("\nTotal tickets: %lu\n", ticketCount);
printf("\nTotal tickets: %lu \n", ticketCount);
printf("Deleted tickets: %lu", deletedCount);
printf("\n\nPress any button to exit.");
wait_key();
Expand All @@ -96,10 +94,11 @@ void action_about(gfxScreen_t screen){

consoleClear();

printf(CONSOLE_RED "\n tikSweep " VERSION_STRING " by DanTheMan827\n\n" CONSOLE_RESET);
printf(" Remove unused tickets.\n\n");

printf(" Commit: " REVISION_STRING);
printf(CONSOLE_RED "\n tikSweep %s by DanTheMan827\n\n" CONSOLE_RESET, BUILD_VERSION);
printf(" Remove unused tickets.\n\n\n");
printf(CONSOLE_YELLOW " Build Info\n\n" CONSOLE_RESET);
printf(" Date: %s \n\n", BUILD_DATE);
printf(" Commit: %s \n\n", BUILD_REVISION);

consoleSelect(currentConsole);
}
Expand Down

0 comments on commit f8024e3

Please sign in to comment.