void InstallConfigData(){ if(CheckInstallationData() == 0) { first_boot = false; return; } first_boot = true; trySetLangFromTheme(); writeCfg(); sprintf(str, "/rxTools/Theme/%u/cfg0TOP.bin", cfgs[CFG_THEME].val.i); DrawTopSplash(str, str, str); sprintf(str, "/rxTools/Theme/%u/cfg0.bin", cfgs[CFG_THEME].val.i); DrawBottomSplash(str); int res = InstallData("0"); //SD Card sprintf(str, "/rxTools/Theme/%u/cfg1%c.bin", cfgs[CFG_THEME].val.i, res == 0 ? 'O' : 'E'); DrawBottomSplash(str); sprintf(str, "/rxTools/Theme/%u/TOP.bin", cfgs[CFG_THEME].val.i); sprintf(strl, "/rxTools/Theme/%u/TOPL.bin", cfgs[CFG_THEME].val.i); sprintf(strr, "/rxTools/Theme/%u/TOPR.bin", cfgs[CFG_THEME].val.i); DrawTopSplash(str, strl, strr); InputWait(); }
void InstallConfigData(){ if(CheckInstallationData() == 0) return; sprintf(str, "/rxTools/Theme/%c/cfg0TOP.bin", Theme); DrawTopSplash(str); sprintf(str, "/rxTools/Theme/%c/cfg0.bin", Theme); DrawBottomSplash(str); int res = InstallData("0"); //SD Card if (res == 0) { sprintf(str, "/rxTools/Theme/%c/cfg1O.bin", Theme); DrawBottomSplash(str); } else { sprintf(str, "/rxTools/Theme/%c/cfg1E.bin", Theme); DrawBottomSplash(str); } //print("\nPress A to exit\n"); WaitForButton(BUTTON_A); }