Fixed CXX_BUILD

This commit is contained in:
leiradel 2017-12-08 00:08:16 +00:00
parent 4f2398dd08
commit 8c1e3e5d5b
2 changed files with 4 additions and 3 deletions

View File

@ -258,7 +258,7 @@ typedef struct
typedef struct typedef struct
{ {
int console_id; cheevos_console_t console_id;
bool core_supports; bool core_supports;
bool addrs_patched; bool addrs_patched;
int add_buffer; int add_buffer;
@ -276,7 +276,7 @@ typedef struct
static cheevos_locals_t cheevos_locals = static cheevos_locals_t cheevos_locals =
{ {
/* console_id */ 0, /* console_id */ CHEEVOS_CONSOLE_NONE,
/* core_supports */ true, /* core_supports */ true,
/* addrs_patched */ false, /* addrs_patched */ false,
/* add_buffer */ 0, /* add_buffer */ 0,
@ -1385,7 +1385,7 @@ static int cheevos_read__json_number(void *userdata,
} }
else if (ud->is_console_id) else if (ud->is_console_id)
{ {
cheevos_locals.console_id = (int)strtol(number, NULL, 10); cheevos_locals.console_id = (cheevos_console_t)strtol(number, NULL, 10);
ud->is_console_id = 0; ud->is_console_id = 0;
} }

View File

@ -47,6 +47,7 @@ typedef struct cheevos_ctx_desc
typedef enum typedef enum
{ {
CHEEVOS_CONSOLE_NONE = 0,
/* Don't change those, the values match the console IDs /* Don't change those, the values match the console IDs
* at retroachievements.org. */ * at retroachievements.org. */
CHEEVOS_CONSOLE_MEGA_DRIVE = 1, CHEEVOS_CONSOLE_MEGA_DRIVE = 1,