From 66b314b497d5ea50da933355101b16ecc63e2f00 Mon Sep 17 00:00:00 2001 From: israpps <57065102+israpps@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:17:54 -0300 Subject: [PATCH 1/3] make PFS.IRX use same params than wLaunchELF This is a blind attempt to make OPL stop corrupting < 3gb +OPL Partitions while saving config --- src/hddsupport.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/hddsupport.c b/src/hddsupport.c index 68219c105..910135be5 100644 --- a/src/hddsupport.c +++ b/src/hddsupport.c @@ -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) { @@ -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); From e6488069898e6a314f33b58d900a136af3eaaa99 Mon Sep 17 00:00:00 2001 From: israpps <57065102+israpps@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:17:54 -0300 Subject: [PATCH 2/3] make PFS.IRX use same params than wLaunchELF This is a blind attempt to make OPL stop corrupting > 3gb +OPL Partitions while saving config --- src/hddsupport.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/hddsupport.c b/src/hddsupport.c index 68219c105..da33dd678 100644 --- a/src/hddsupport.c +++ b/src/hddsupport.c @@ -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) { @@ -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); From f63fe9bd56b1baa448ec6a60b2f5e7cbd96b1c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Sun, 22 Oct 2023 20:32:45 -0300 Subject: [PATCH 3/3] Update hddsupport.c --- src/hddsupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hddsupport.c b/src/hddsupport.c index da33dd678..a23a0b8df 100644 --- a/src/hddsupport.c +++ b/src/hddsupport.c @@ -183,7 +183,7 @@ void hddLoadModules(void) "\0" "20"; - static char pfsarg[] = "\0" + static char pfsarg[] = "\0" "-o" // max open "\0" "10" // Default value: 2