Skip to content

Commit

Permalink
make PFS.IRX use same params than wLaunchELF (#1086)
Browse files Browse the repository at this point in the history
make PFS.IRX use same params than wLaunchELF
  • Loading branch information
israpps authored Oct 23, 2023
1 parent 17efb44 commit 513e9b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/hddsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ void hddLoadModules(void)
"\0"
"20";

static char pfsarg[] = "\0"
"-o" // max open
"\0"
"10" // Default value: 2
"\0"
"-n" // Number of buffers
"\0"
"40"; // Default value: 8 | Max value: 127
LOG("HDDSUPPORT LoadModules\n");

if (!hddModulesLoaded) {
Expand Down Expand Up @@ -227,7 +235,7 @@ void hddLoadModules(void)
}

LOG("[PS2FS]:\n");
ret = sysLoadModuleBuffer(&ps2fs_irx, size_ps2fs_irx, 0, NULL);
ret = sysLoadModuleBuffer(&ps2fs_irx, size_ps2fs_irx, sizeof(pfsarg), pfsarg);
if (ret < 0) {
LOG("HDD: HardDisk Drive not formatted (PFS).\n");
setErrorMessageWithCode(_STR_HDD_NOT_FORMATTED_ERROR, ERROR_HDD_MODULE_PFS_FAILURE);
Expand Down

0 comments on commit 513e9b3

Please sign in to comment.