mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-22 23:49:50 +00:00
Fix pthread support (#16970)
* enabled pthread usage * unload modules before loading back
This commit is contained in:
parent
e34b57fd97
commit
fe4a15b15c
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user