LiquidFenrir / MultiUpdater

or µpdtr for short, is an updater for 3ds applications/a9lh/b9s payloads rewritten in C++
MIT License
140 stars 18 forks source link

Software doesn't create missing directories on CTRNAND #55

Open cheatfreak47 opened 6 years ago

cheatfreak47 commented 6 years ago

I added an entry for CTRNAND GodMode9 (as a luma payload) because this is a thing you can do with Luma, that people don't seem to know about.

Here is the entry.

        {
            "name": "CTRNAND GodMode9 (latest release)",
            "url": "https://github.com/d0k3/GodMode9",
            "inrelease": "GodMode9.*\\.zip",
            "inarchive": "GodMode9\\.firm",
            "path": "ctrnand:/rw/luma/payloads/GodMode9.firm"
        },

The problem lies in the path for the ctrnand location of GodMode9. If the "payloads" folder doesn't already exist, it won't create it, resulting in "extraction failed!" error.

The solution of course, is to create the missing dirs should there end up being any in the path to the target location. I.E. add checks or whatever.

I don't know if this problem happens on the SD card too I haven't bothered to check. Regardless, this should be implemented to prevent such errors should a user be using this software to install a software for the first time.