KiameV / moogle-mod-manager

Manages mods for Final Fantasy Pixel Remastered
MIT License
25 stars 3 forks source link

LoadFromFile returning nil on file not found #29

Closed Silvris closed 2 years ago

Silvris commented 2 years ago

As title states, util.LoadFromFile returns nil by default, which it can only reach when a file does not exist. This should throw an error.

Silvris commented 2 years ago

Ah, not exactly that. But still, not throwing an error when os.Stat returns an error will cause the FirstTime config screen to not load.

KiameV commented 2 years ago

Doh I was just working on that and never tested the case of no config...

On Wed, Jul 27, 2022, 2:14 AM Silvris @.***> wrote:

Ah, not exactly that. But still, not throwing an error when os.Stat returns an error will cause the FirstTime config screen to not load.

— Reply to this email directly, view it on GitHub https://github.com/KiameV/moogle-mod-manager/issues/29#issuecomment-1196405571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGILGUVQAU4GO2XL2O5GOCLVWDVX5ANCNFSM54YRS5OQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

KiameV commented 2 years ago

Fixed with v 0.1.3 Thanks!