Skip to content

Commit

Permalink
Fix pthread support (#16970)
Browse files Browse the repository at this point in the history
* enabled pthread usage

* unload modules before loading back
  • Loading branch information
fjtrujy authored Sep 6, 2024
1 parent e34b57f commit fe4a15b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Makefile.ps2
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions frontend/drivers/platform_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fe4a15b

Please sign in to comment.