Skip to content

Commit 7e9e35a

Browse files
committed
Update
1 parent b1e00a3 commit 7e9e35a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile.common

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ FLAGS += -Wfatal-errors
1515
FLAGS += -I$(CORE_DIR)/vendor/pntr
1616
FLAGS += -I$(CORE_DIR)/vendor/pntr_app/include
1717
FLAGS += \
18-
-DPNTR_ENABLE_VARGS
18+
-DPNTR_ENABLE_VARGS \
19+
-D__LIBRETRO__
1920

2021
# pntr_physfs
2122
FLAGS += -I$(CORE_DIR)/vendor/pntr_physfs
@@ -103,7 +104,8 @@ FLAGS += -I$(PHYSFS_DIR)/src
103104
FLAGS += -DPHYSFS_NO_CDROM_SUPPORT=1 \
104105
-DPHYSFS_SUPPORTS_DEFAULT=0 \
105106
-DPHYSFS_SUPPORTS_ZIP=1 \
106-
-DPHYSFS_PLATFORM_LIBRETRO
107+
-DPHYSFS_PLATFORM_LIBRETRO \
108+
-DPHYSFS_PLATFORM_LIBRETRO_NO_THREADS=1
107109

108110
SOURCES_C += $(wildcard \
109111
$(PHYSFS_DIR)/src/*.c \

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ bool Init(pntr_app* app) {
4747

4848
// Initialize PhysFS
4949
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()));
5151
return false;
5252
}
5353

0 commit comments

Comments
 (0)