Fix pthread support (#16970)

* enabled pthread usage

* unload modules before loading back
This commit is contained in:
Francisco Javier Trujillo Mata 2024-09-07 00:45:15 +02:00 committed by GitHub
parent e34b57fd97
commit fe4a15b15c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -117,7 +117,11 @@ run:
ps2client -h $(PS2_IP) execee host:$(EE_BIN)
sim:
PCSX2 --elf=$(PWD)/$(EE_BIN) --nogui
ifeq ($(shell uname), Darwin)
/Applications/PCSX2.app/Contents/MacOS/PCSX2 -elf $(PWD)/$(EE_BIN)
else
PCSX2 -elf $(PWD)/$(EE_BIN) -nogui
endif
debug: clean all run

View File

@ -50,9 +50,6 @@
#define DEFAULT_PARTITION "hdd0:__common:pfs"
#endif
// Disable pthread functionality
PS2_DISABLE_AUTOSTART_PTHREAD();
static enum frontend_fork ps2_fork_mode = FRONTEND_FORK_NONE;
static char cwd[FILENAME_MAX] = {0};
static char mountString[10] = {0};
@ -343,6 +340,7 @@ static void frontend_ps2_exec(const char *path, bool should_load_game)
RARCH_LOG("Attempt to load executable: [%s], partition [%s].\n", path, mountPoint);
/* Reload IOP drivers for saving IOP ram */
deinit_drivers(true, true);
reset_IOP();
common_init_drivers(false);
waitUntilDeviceIsReady(path);