How do you access Home Menu Launcher.dat from code?

Mikaus

New Member
OP
Newbie
Joined
Jul 4, 2024
Messages
2
Trophies
0
Age
42
XP
43
Country
United States
Howdy!

I'm trying to write a piece of homebrew that sorts the home menu icons.
I'm currently using Cthulu by Ryuzaki-MrL as a base. In their Reset folder count function they open up Launcher.dat and reset a value, but it's mentioned that you have to be in Test menu to do so.

When I launch from the Homebrew Launcher, and try to access the HomeMenu System save data archive via FSUSER_OpenArchive I get an error of 0xc92044e7.

I assume it has to do with some sort of permissions when launched from Homebrew Launcher. Are there any examples of how to access and modify the Launcher.dat of the HomeMenu while software is running from the Homebrew Launcher?
 
Last edited by Mikaus,

4d1xlaan

Well-Known Member
Member
Joined
Apr 21, 2024
Messages
1,444
Trophies
1
XP
1,729
Country
United States
it's not a permissions issue. the save data is in use when home menu is running, and it holds a lock on it which prevents editing it by any other process

(0xc92044e7: Resource locked.)

when they say you have to be in test menu, it means you have to be using test menu instead of home menu. menu always stays running in the background and the only way to be able to edit the file is if home menu isn't running. so you use test menu instead
 

Mikaus

New Member
OP
Newbie
Joined
Jul 4, 2024
Messages
2
Trophies
0
Age
42
XP
43
Country
United States
it's not a permissions issue. the save data is in use when home menu is running, and it holds a lock on it which prevents editing it by any other process

(0xc92044e7: Resource locked.)

when they say you have to be in test menu, it means you have to be using test menu instead of home menu. menu always stays running in the background and the only way to be able to edit the file is if home menu isn't running. so you use test menu instead
Hrm. ok. When I was reading something on 3dbrew it sounded like it opened and closed it periodically. But maybe it meant just that specific file (Launcher.dat) and not the save data archive.

Is there a way for a piece of software to bypass the lock? Like a plugin to Luma or Rosalina? or maybe a way to temporarily unload the home menu?

And thanks for that link! I tried finding error code -> reason in the forums or discord, didn't know about the API look up on brew. Thank you!
 
Last edited by Mikaus,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: No. Super Mario 64 doesn't exist.