File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ FLAGS += -Wfatal-errors
15
15
FLAGS += -I$(CORE_DIR)/vendor/pntr
16
16
FLAGS += -I$(CORE_DIR)/vendor/pntr_app/include
17
17
FLAGS += \
18
- -DPNTR_ENABLE_VARGS
18
+ -DPNTR_ENABLE_VARGS \
19
+ -D__LIBRETRO__
19
20
20
21
# pntr_physfs
21
22
FLAGS += -I$(CORE_DIR)/vendor/pntr_physfs
@@ -103,7 +104,8 @@ FLAGS += -I$(PHYSFS_DIR)/src
103
104
FLAGS += -DPHYSFS_NO_CDROM_SUPPORT=1 \
104
105
-DPHYSFS_SUPPORTS_DEFAULT=0 \
105
106
-DPHYSFS_SUPPORTS_ZIP=1 \
106
- -DPHYSFS_PLATFORM_LIBRETRO
107
+ -DPHYSFS_PLATFORM_LIBRETRO \
108
+ -DPHYSFS_PLATFORM_LIBRETRO_NO_THREADS=1
107
109
108
110
SOURCES_C += $(wildcard \
109
111
$(PHYSFS_DIR)/src/*.c \
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ bool Init(pntr_app* app) {
47
47
48
48
// Initialize PhysFS
49
49
if (PHYSFS_init ((const char *)ChaiLove::environ_cb) == 0 ) {
50
- pntr_app_log_ex (PNTR_APP_LOG_ERROR, " PHYSFS_init() failed: %s" , PHYSFS_getLastError ( ));
50
+ pntr_app_log_ex (PNTR_APP_LOG_ERROR, " PHYSFS_init() failed: %s" , PHYSFS_getErrorByCode ( PHYSFS_getLastErrorCode () ));
51
51
return false ;
52
52
}
53
53
You can’t perform that action at this time.
0 commit comments