Skip to content

Commit

Permalink
Backport rcheevos build setup to libretro/Makefile.common from the rc…
Browse files Browse the repository at this point in the history
…_client branch
  • Loading branch information
hrydgard committed Jul 3, 2023
1 parent 1b2c98c commit c8fe0a4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
29 changes: 29 additions & 0 deletions libretro/Makefile.common
Expand Up @@ -193,6 +193,35 @@ SOURCES_C += \
$(EXTDIR)/libpng17/pngwtran.c \
$(EXTDIR)/libpng17/pngwutil.c

INCFLAGS += -I$(EXTDIR)/rcheevos/include

COREFLAGS += -DRC_DISABLE_LUA

SOURCES_C += \
$(EXTDIR)/rcheevos/src/rapi/rc_api_common.c \
$(EXTDIR)/rcheevos/src/rapi/rc_api_editor.c \
$(EXTDIR)/rcheevos/src/rapi/rc_api_info.c \
$(EXTDIR)/rcheevos/src/rapi/rc_api_runtime.c \
$(EXTDIR)/rcheevos/src/rapi/rc_api_user.c \
$(EXTDIR)/rcheevos/src/rcheevos/alloc.c \
$(EXTDIR)/rcheevos/src/rcheevos/compat.c \
$(EXTDIR)/rcheevos/src/rcheevos/condition.c \
$(EXTDIR)/rcheevos/src/rcheevos/condset.c \
$(EXTDIR)/rcheevos/src/rcheevos/consoleinfo.c \
$(EXTDIR)/rcheevos/src/rcheevos/format.c \
$(EXTDIR)/rcheevos/src/rcheevos/lboard.c \
$(EXTDIR)/rcheevos/src/rcheevos/memref.c \
$(EXTDIR)/rcheevos/src/rcheevos/operand.c \
$(EXTDIR)/rcheevos/src/rcheevos/rc_validate.c \
$(EXTDIR)/rcheevos/src/rcheevos/richpresence.c \
$(EXTDIR)/rcheevos/src/rcheevos/runtime.c \
$(EXTDIR)/rcheevos/src/rcheevos/runtime_progress.c \
$(EXTDIR)/rcheevos/src/rcheevos/trigger.c \
$(EXTDIR)/rcheevos/src/rcheevos/value.c \
$(EXTDIR)/rcheevos/src/rhash/cdreader.c \
$(EXTDIR)/rcheevos/src/rhash/hash.c \
$(EXTDIR)/rcheevos/src/rhash/md5.c

COREFLAGS += -DSTACK_LINE_READER_BUFFER_SIZE=1024
ifeq ($(PLATFORM_EXT), android)
COREFLAGS += -DHAVE_DLFCN_H
Expand Down
6 changes: 6 additions & 0 deletions libretro/libretro.cpp
Expand Up @@ -1744,3 +1744,9 @@ bool System_AudioRecordingState() { return false; }

void System_InputBoxGetString(const std::string &title, const std::string &defaultValue, std::function<void(bool, const std::string &)> cb) { cb(false, ""); }
#endif

// TODO: To avoid having to define these here, these should probably be turned into system "requests".
void NativeSaveSecret(const char *nameOfSecret, const std::string &data) {}
std::string NativeLoadSecret(const char *nameOfSecret) {
return "";
}

0 comments on commit c8fe0a4

Please sign in to comment.