-
Notifications
You must be signed in to change notification settings - Fork 279
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
hdd: Add option to use partitions other than +OPL #423
Conversation
Also I prefer |
Ok I will change the cfg location to hdd0:__common/OPL/conf_hdd.cfg when I get some time on pc. Currently in this pr any partition that does not begin with ‘+’ will automatically create an OPL folder on the root of the partition and all files/folders ART CFG etc will be in that one OPL folder so they won’t be filled with trash on root :) .. the reason I would allow +partitions to work on root is only for backwards compatibility. |
Oh didn't realize that this was in code, then great - it is fine! Great work! |
Also, Open-PS2-Loader/elfldr/elfldr.c Line 106 in 78d66c0
Apps will try to boot always from +OPL partition, which is definitely not good. Also, could you add a note into README.md ? Something about HDD conf file location, conf file content, and logic.
|
Bah, I didn’t see this.. isn’t this happening at compile time? I’m not sure how to proceed with the elfldr |
yes, it is happening at compile time. Of course, you can add HDD managing into elfldr, but then it will become really big and slow (users who don't use internal HDD may notice this). I advise mounting additional PFS point for The only thing, I don't know if it is allowed to mount the same partition in different mount points. I mean if both: pfs0 and pfs1 are mount points for I think this is the best solution, however, you can find another. For example, you can create a copy of |
I am mistaken - APPS will boot from |
Ok I think is this finally ready for re-review. As we determined we can't have However I can't really test that portion of code, so I'm hoping it just logically makes sense to you guys.. but I'm open to suggested changes :) Edit: If merge ready, I think squash would be best as I'm not sure how rebasing will go with all the recent formatting changes? |
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.
Looks OK
for testing you can launch wLe from apps page and look into MISX/Debug - it will show you arguments that were parsed to elf |
just one moment: if we point in conf_hdd.txt into an existing non-pfs partition (for example |
@KrahJohlito everything else looks OK |
I wouldn’t think so but haven’t tested, I will try test and confirm.. currently if partition doesn’t exist it creates it and formats so I’m not sure what would happen with a non-pfs partition.. could add a clause to not proceed with creation if __ partition if required.. I’ll try test first |
It will not cover all the cases. HDL game can be installed as any partition, not only starting with |
Ok I tested and non-pfs partitions will not be formatted, so that’s fine.. elfldr code didn’t work so I had to pass OPL partition as argv[1] which works fine now.. this means more than one mount point isn’t necessary so I’ve removed the pfsarg.. elfldr seems a bit quicker now also so that’s nice :). |
Nice solution, more lightweight, and no need for using strings inside elfldr. But could you modify argv[1] then? : |
hdd: Add option to use partitions other than +OPL
hdd: Add option to use partitions other than +OPL
Pull Request checklist
Note: these are not necessarily requirements
Pull Request description
This is simpler than last time,
Upon hdd init, __common will be mounted and check “conf_hdd.cfg” for eg “hdd_partition=PP.OPL” and mount that partition instead.. if config isn’t found one will be created with +OPL as the default since that’s what it has been for years.. imo it’s better for “advanced users” to just change the cfg entry rather than lots of people not understanding why their hdd suddenly doesn’t work after updating OPL.
If partition in cfg doesn’t exist it will be made, only partitions beginning with + will work on root all others will use an OPL subfolder.