diff --git a/source/config.c b/source/config.c index faf55dd..6b684fa 100644 --- a/source/config.c +++ b/source/config.c @@ -55,10 +55,10 @@ void writeConfig(const char *configPath, u32 configTemp) configData.formatVersionMajor = CONFIG_VERSIONMAJOR; configData.formatVersionMinor = CONFIG_VERSIONMINOR; - if(!fileWrite(&configData, configPath, sizeof(configData))) + if(!fileWrite(&configData, configPath, sizeof(cfgData))) { createDirectory("luma"); - if(!fileWrite(&configData, configPath, sizeof(configData))) + if(!fileWrite(&configData, configPath, sizeof(cfgData))) error("Error writing the configuration file"); } } diff --git a/source/utils.c b/source/utils.c index 3a931f9..c5706a7 100644 --- a/source/utils.c +++ b/source/utils.c @@ -27,8 +27,6 @@ #include "draw.h" #include "cache.h" -extern bool isFirmlaunch; - u32 waitInput(void) { u32 pressedKey = 0, diff --git a/source/utils.h b/source/utils.h index bf74e1c..34b51eb 100644 --- a/source/utils.h +++ b/source/utils.h @@ -28,6 +28,8 @@ #define REG_TIMER_CNT(i) *(vu16 *)(0x10003002 + 4 * i) #define REG_TIMER_VAL(i) *(vu16 *)(0x10003000 + 4 * i) +extern bool isFirmlaunch; + u32 waitInput(void); void mcuReboot(void); void mcuPowerOff(void);