Skip to content

Commit

Permalink
add RC_CONSOLE_STANDALONE (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored Jan 8, 2024
1 parent 4e5a863 commit 74860c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/rc_consoles.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ enum {
RC_CONSOLE_UZEBOX = 80,

RC_CONSOLE_HUBS = 100,
RC_CONSOLE_EVENTS = 101
RC_CONSOLE_EVENTS = 101,
RC_CONSOLE_STANDALONE = 102
};

RC_EXPORT const char* RC_CCONV rc_console_name(uint32_t console_id);
Expand Down
3 changes: 3 additions & 0 deletions src/rcheevos/consoleinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ const char* rc_console_name(uint32_t console_id)
case RC_CONSOLE_SHARPX1:
return "Sharp X1";

case RC_CONSOLE_STANDALONE:
return "Standalone";

case RC_CONSOLE_SUPER_NINTENDO:
return "Super Nintendo Entertainment System";

Expand Down
1 change: 1 addition & 0 deletions test/rcheevos/test_consoleinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ void test_consoleinfo(void) {

TEST_PARAMS2(test_name, 100, "Hubs");
TEST_PARAMS2(test_name, 101, "Events");
TEST_PARAMS2(test_name, 102, "Standalone");

/* memory maps */
TEST_PARAMS2(test_memory, RC_CONSOLE_UNKNOWN, 0x000000);
Expand Down

0 comments on commit 74860c9

Please sign in to comment.