StarUpdater icon indicating copy to clipboard operation
StarUpdater copied to clipboard

Automatically detect current setup and use it as presets

Open astronautlevel2 opened this issue 8 years ago • 4 comments

astronautlevel2 avatar May 25 '16 00:05 astronautlevel2

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

gnmmarechal avatar Sep 12 '16 01:09 gnmmarechal

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.

astronautlevel2 avatar Sep 12 '16 01:09 astronautlevel2

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

gnmmarechal avatar Sep 12 '16 01:09 gnmmarechal

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

gnmmarechal avatar Sep 25 '16 20:09 gnmmarechal