Skip to content

Commit 8de1709

Browse files
authored
Ctr fixes (#18276)
1 parent b73d764 commit 8de1709

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

Makefile.ctr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ ifeq ($(GRIFFIN_BUILD), 1)
6868
#DEFINES += -DHAVE_SOCKET_LEGACY
6969
#-DHAVE_SSL -DHAVE_BUILTINMBEDTLS -DMBEDTLS_SSL_DEBUG_ALL
7070
#ssl is currently incompatible with griffin due to use of the "static" flag on repeating functions that will conflict when included in one file
71+
CFLAGS += -I. \
72+
-Ideps \
73+
-Ideps/7zip \
74+
-Ideps/stb \
75+
-Ideps/mbedtls \
76+
-Ideps/rcheevos/include \
77+
-Ilibretro-common/include \
78+
-Ilibretro-common/include/compat/zlib
7179
else
7280
HAVE_CC_RESAMPLER = 1
7381
HAVE_MENU_COMMON = 1
@@ -104,7 +112,7 @@ else
104112
HAVE_CLOUDSYNC = 1
105113

106114
include Makefile.common
107-
CFLAGS += $(DEF_FLAGS)
115+
CFLAGS += $(DEF_FLAGS) -I. $(INCLUDE_DIRS)
108116
endif
109117

110118
ifeq ($(strip $(DEVKITPRO)),)
@@ -180,14 +188,6 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
180188
WHOLE_END := -Wl,--no-whole-archive
181189
endif
182190

183-
CFLAGS += -I. \
184-
-Ideps \
185-
-Ideps/7zip \
186-
-Ideps/stb \
187-
-Ideps/mbedtls \
188-
-Ideps/rcheevos/include \
189-
-Ilibretro-common/include \
190-
-Ilibretro-common/include/compat/zlib
191191

192192
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE
193193
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)

deps/rcheevos/src/rcheevos/runtime.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,9 @@ int rc_runtime_activate_lboard(rc_runtime_t* self, uint32_t id, const char* mema
341341
for (i = 0; i < self->lboard_count; ++i) {
342342
if (self->lboards[i].id == id && memcmp(self->lboards[i].md5, md5, 16) == 0) {
343343
/* retrieve the lboard pointer from the buffer */
344-
size = 0;
345-
lboard = (rc_lboard_t*)rc_alloc(self->lboards[i].buffer, &size, sizeof(rc_lboard_t), RC_ALIGNOF(rc_lboard_t), NULL, -1);
344+
int32_t offset = 0;
345+
346+
lboard = (rc_lboard_t*)rc_alloc(self->lboards[i].buffer, &offset, sizeof(rc_lboard_t), RC_ALIGNOF(rc_lboard_t), NULL, -1);
346347
self->lboards[i].lboard = lboard;
347348

348349
rc_reset_lboard(lboard);

0 commit comments

Comments
 (0)