Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Automatically detect current setup and use it as presets #12

Open
astronautlevel2 opened this issue May 25, 2016 · 4 comments
Open

Automatically detect current setup and use it as presets #12

astronautlevel2 opened this issue May 25, 2016 · 4 comments

Comments

@astronautlevel2
Copy link
Owner

No description provided.

@astronautlevel2 astronautlevel2 self-assigned this May 28, 2016
@astronautlevel2 astronautlevel2 changed the title Allow a9lh/dev config to persist Automatically detect current setup and use it as presets Aug 27, 2016
@gnmmarechal
Copy link

uh. what do you mean by that? Detecting the payload location automatically?

@astronautlevel2
Copy link
Owner Author

Detect if it's menuhax or a9lh by default and set isMenuhax, and detect if it's the dev version by default and set isDev.

@gnmmarechal
Copy link

Ah, I see. I suppose detecting CIA/3DSX wouldn't be enough as some may be using a StarUpdater CIA with EmuNAND.

@gnmmarechal
Copy link

I'll try to figure this out in a few days. However, my solution may not be perfect, or the best one.

To detect MenuHax mode, detecting /3ds/Luma3DS/Luma3DS.3dsx would be a way of doing it. However, we must consider there are those who boot Luma directly (at /boot.3dsx). Since many CFW users use a boot.3dsx file, that wouldn't be enough to detect the mode.

Not to mention now every mode has an arm9loaderhax.bin. Which means if anything, it'd go like this:

if (condition for M1) then

elseif (condition for M2) then

else
-- Assume it's A9LH if nothing else

end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants