mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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)
|
ps2client -h $(PS2_IP) execee host:$(EE_BIN)
|
||||||
|
|
||||||
sim:
|
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
|
debug: clean all run
|
||||||
|
|
||||||
|
@ -50,9 +50,6 @@
|
|||||||
#define DEFAULT_PARTITION "hdd0:__common:pfs"
|
#define DEFAULT_PARTITION "hdd0:__common:pfs"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Disable pthread functionality
|
|
||||||
PS2_DISABLE_AUTOSTART_PTHREAD();
|
|
||||||
|
|
||||||
static enum frontend_fork ps2_fork_mode = FRONTEND_FORK_NONE;
|
static enum frontend_fork ps2_fork_mode = FRONTEND_FORK_NONE;
|
||||||
static char cwd[FILENAME_MAX] = {0};
|
static char cwd[FILENAME_MAX] = {0};
|
||||||
static char mountString[10] = {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);
|
RARCH_LOG("Attempt to load executable: [%s], partition [%s].\n", path, mountPoint);
|
||||||
|
|
||||||
/* Reload IOP drivers for saving IOP ram */
|
/* Reload IOP drivers for saving IOP ram */
|
||||||
|
deinit_drivers(true, true);
|
||||||
reset_IOP();
|
reset_IOP();
|
||||||
common_init_drivers(false);
|
common_init_drivers(false);
|
||||||
waitUntilDeviceIsReady(path);
|
waitUntilDeviceIsReady(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user