Commit ebfa29eb authored by fallenstardust's avatar fallenstardust

saveinsetting prefer expansion script

parent 6b9adc01
...@@ -1429,6 +1429,7 @@ void Game::LoadConfig() { ...@@ -1429,6 +1429,7 @@ void Game::LoadConfig() {
gameConf.chkIgnoreDeckChanges = android::getIntSetting(appMain, "chkIgnoreDeckChanges", 0); gameConf.chkIgnoreDeckChanges = android::getIntSetting(appMain, "chkIgnoreDeckChanges", 0);
gameConf.auto_save_replay = android::getIntSetting(appMain, "auto_save_replay", 0); gameConf.auto_save_replay = android::getIntSetting(appMain, "auto_save_replay", 0);
gameConf.quick_animation = android::getIntSetting(appMain, "quick_animation", 0); gameConf.quick_animation = android::getIntSetting(appMain, "quick_animation", 0);
gameConf.prefer_expansion_script = android::getIntSetting(appMain, "prefer_expansion_script", 0);
//defult Setting without checked //defult Setting without checked
gameConf.hide_setname = 0; gameConf.hide_setname = 0;
gameConf.hide_hint_button = 0; gameConf.hide_hint_button = 0;
...@@ -1466,6 +1467,8 @@ void Game::SaveConfig() { ...@@ -1466,6 +1467,8 @@ void Game::SaveConfig() {
android::saveIntSetting(appMain, "draw_field_spell", gameConf.draw_field_spell); android::saveIntSetting(appMain, "draw_field_spell", gameConf.draw_field_spell);
gameConf.quick_animation = chkQuickAnimation->isChecked() ? 1 : 0; gameConf.quick_animation = chkQuickAnimation->isChecked() ? 1 : 0;
android::saveIntSetting(appMain, "quick_animation", gameConf.quick_animation); android::saveIntSetting(appMain, "quick_animation", gameConf.quick_animation);
gameConf.prefer_expansion_script = chkPreferExpansionScript->isChecked() ? 1 : 0;
android::saveIntSetting(appMain, "prefer_expansion_script", gameConf.prefer_expansion_script);
//gameConf.control_mode = control_mode->isChecked()?1:0; //gameConf.control_mode = control_mode->isChecked()?1:0;
// android::saveIntSetting(appMain, "control_mode", gameConf.control_mode); // android::saveIntSetting(appMain, "control_mode", gameConf.control_mode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment