-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small improvement to IGR & Remove unneeded option. #378
Conversation
@KrahJohlito you mixed different problem solutions in one PR, it will be more difficult to review your changes. Anyway...
|
The dialog window that appears does not allow the user to input whatever partition they like, it’s a choice of 3 partitions.. I suppose they could manually edit the cfg file to mount any partition; is that what you mean? Current available selections: By default the variables are set to
That’s pretty much how it is already, unless the cfg is manually edited as per my last reply.. To avoid this the cfg entry could just be enumerated rather than a string I guess?
There is no GUI option only a cfg entry (unless you’re talking about the dialog window).
gHDDPrefix can’t really be static because it needs to be different depending on whether we’re working on root or not, but I could be misunderstanding what you mean. |
I thought that the user should type partition name now when the GUI dialog appeared. So he can type whatever he wants, not only 3 partition names. If the user is limited to 3 scenarios only it is good enough for me.
I mean that the gHDDPrefix value is stored in an additional config file which is placed in a static place always. For example : |
@AKuHAK OPL1.mp4This is a quick PoC of how it could be if we allow any partition to be entered. I haven't bothered changing any of the cfg handling here cause we'd need a seperate cfg in __common/OPL like you suggested and would need to determine if the user entered sub folders etc. If you prefer it this way I could do it but currently lack motivation so it might take a few days. OPL2.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't comment on the PFS/HDD changes as I know too little about it. But @AKuHAK seems to know a lot about it so he's probably the best to review/approve those changes.
The other changes look good, so approved.
One of the problems with ps2 in general is that all applications reboot the IOP, and are responsible for loading their own device drivers. For example: mass0 on wLE could be USB, while mass0 on OPL could be mx4sio. Even worse, OPL could be loaded from a location OPL cannot access at all, like host. One solution would be to do it like it's supposed to be done on the PS2: save the configuration onto a memorycard. Preferably in a folder of it's own, with a nice 3d icon and some text. @TnA-Plastic : A next step would be to also include the ELF in the same folder, and have FMCB boot OPL from there, then call it "App System" ;). |
@KrahJohlito maybe you can remove hdd changes from this pr? So other changes can be accepted. @rickgaiser oh i didnt know that mx4sio uses the same prefix as usb. In fact Sony had a solution for this, they pass mounting device properties in argv[2] for example argv[2] = 'hdd0:__common:pfs:/RA/RA.ELF' |
Good idea.
It's actually the fat32 file system driver that uses the mass prefix. No matter what block device is connected to it. Originally the fat32 driver would register at the name of the block device, like "usb0", "sd0". But now it is like (for example):
Basically "mass" is now equivalent to "fat32_mountpoint". This will become a new challenge when adding a second filesystem. |
In such logic it should send such params as argv[2]: |
Ok no problem, I moved it to a different branch and dropped the commit from PR. |
I'll go ahead and merge this. |
Small improvement to IGR & Remove unneeded option.
Small improvement to IGR & Remove unneeded option.
Pull Request checklist
Note: these are not necessarily requirements
Pull Request description
partially fulfils #230 - Using sp193s suggestion, IGR will now work booting exit ELFs stored on USB drives (exit path should be "mass:app.elf").. however it will only work if a FMCB card is attached as the modules are being loaded from there.. I'm not sure about HDD & SMB I don't think they are really viable options for IGR as we'd need to not only load the modules but also mount a specific partition or connect to an smb share.
Also I removed the option to check if USB games are fragmented and instead this check will always happen, just seems like a pointless option to me.. I see no reason for this check to be turned off and can only lead to incorrect compatibility reports.