openmw icon indicating copy to clipboard operation
openmw copied to clipboard

Save location at boot.

Open Zilverfire opened this issue 5 years ago • 5 comments

The read and write save data location for the save game at boot are \switch\openmw\data\global\saves, as nsp forwarders don't ask for the user profile, but if you open another game first or after you play Morrowind for a bit player 1 is given a user profile so the game will try to read and write save data from F:\switch\openmw\data(user)\saves. Not truly a bug, closer to an oversight but the game runs good, great work.

Zilverfire avatar Jun 11 '19 18:06 Zilverfire

Maybe try and run the profile applet programmatically? Libnx does this somewhere in their web.c code, but I am not sure where.

terabyte25 avatar Jun 11 '19 18:06 terabyte25

Yes, I have noticed this. I don't think you can run the profile selection thing programmatically, I think it's part of qlaunch? However I am pretty sure that you can make a forwarder that lets you select a profile, because I've had a build of NSP hbmenu that did that.

fgsfdsfgs avatar Jun 11 '19 20:06 fgsfdsfgs

@fgsfdsfgs As I said, libnx does it programmatically. No idea how.

It is documented though: https://switchbrew.org/wiki/Profile_Selector

terabyte25 avatar Jun 11 '19 21:06 terabyte25

And it's in the code under "applet_playerselect" here: https://github.com/switchbrew/libnx/blob/5a3eb542b23beb2f6f73ca5ce266dde6b2ad90a5/nx/include/switch/services/applet.h#L71

There's a function that I found in the documentation that can load applets with the given ID (from the enum in the link above). But I'm not entirely sure how to use it.

terabyte25 avatar Jun 11 '19 21:06 terabyte25

Pull Request #12

terabyte25 avatar Jun 12 '19 03:06 terabyte25