diff --git a/arbitrile.cpp b/arbitrile.cpp index d66eb97a..6bf0a826 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -1737,8 +1737,10 @@ EX void choose() { dialog::openFileDialog(tes, XLAT("open a tiling"), ".tes", [] () { run(tes); + #if CAP_COMMANDLINE if(!current.options.empty()) dialog::push_confirm_dialog([] { arg::run_arguments(current.options); start_game(); }, "load the settings defined in this file?"); + #endif return true; }); } diff --git a/mapeditor.cpp b/mapeditor.cpp index 6ce2d700..f725275a 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -691,7 +691,9 @@ EX namespace mapstream { void save_only_map(hstream& f) { f.write(patterns::whichPattern); save_geometry(f); + #if CAP_RACING if(racing::on) racing::restore_goals(); + #endif // game settings f.write(safety); @@ -821,12 +823,17 @@ EX namespace mapstream { #endif if(f.vernum >= 0xA912) { + #if CAP_RACING f.write(racing::on); if(racing::on) { f.write(isize(racing::track)); for(auto& t: racing::track) f.write(cellids[t]); racing::save_ghosts(f); } + #else + bool on = false; + f.write(on); + #endif } callhooks(hooks_savemap, f); @@ -1074,6 +1081,7 @@ EX namespace mapstream { #endif if(f.vernum >= 0xA912) { + #if CAP_RACING f.read(racing::on); if(racing::on) { if(!shmup::on) { @@ -1085,6 +1093,10 @@ EX namespace mapstream { racing::load_ghosts(f); racing::configure_track(false); } + #else + bool on; + f.read(on); + #endif } if(f.vernum >= 0xA848) { diff --git a/multi.cpp b/multi.cpp index 7bad90a4..e23a7471 100644 --- a/multi.cpp +++ b/multi.cpp @@ -753,6 +753,7 @@ EX void initConfig() { } EX void get_actions() { + #if !ISMOBILE const Uint8 *keystate = SDL12_GetKeyState(NULL); for(int i=0; i