WHDLoad Booter additional downloads (#435)

* Bugfix for 2nd controller selection

* ignore netbeans project

* Add experimental `-autocd=` loading of files (.cue works very well - .iso should also)

* CD Autoloading adapted to include .uae file check and hostconf controller options

* Beginning of Booter Panel implentation

* Booter Panel development .. start on XML reading for picked LHA file

* New WHDLoad booter, included updated boot-data.zip, plus new hostprefs FIXED_HEIGHT= option and bugfixes for XML reading, and symlink ROM scan. Plus updated XML

* Upload of .RTB files that need to accompany the Symlinked Kickstarts, for WHDLoad compatibility.

* Allows for additional libraries from `boot-data.zip` to be linked on load, to aid compatibility (e.g. Dungeon Master), plus new XML

* Fix hardware settings tab issues from XML reading, plus additional write_log reports for debugging WHD booter.

* Code cleanup (non-essential)

* XML Download button added to paths panel including date checking

* WHDLoad local copy

* Added check for internet connectivity before downloading XML

* Updated button to download WHDLoad and .RTB files (if not present) with XML file.
This commit is contained in:
Horace And The Spider 2019-02-23 09:00:25 +00:00 committed by Dimitris Panokostas
parent 1673ff48ed
commit f7ed76bfd6
3 changed files with 68 additions and 4 deletions

View file

@ -469,7 +469,7 @@ void print_usage()
printf("\nUsage:\n");
printf(" -f <file> Load a configuration file.\n");
printf(" -config=<file> Load a configuration file.\n");
printf(" -autowhdload=<file> Load a WHDLoad game pack.\n");
printf(" -autoload=<file> Load a WHDLoad game or .CUE CD32 image.\n");
printf(" -statefile=<file> Load a save state file.\n");
printf(" -s <config param>=<value> Set the configuration parameter with value.\n");
printf(" Edit a configuration file in order to know valid parameters and settings.\n");
@ -694,6 +694,23 @@ void leave_program (void)
do_leave_program ();
}
bool check_internet_connection()
{
auto result = false;
FILE *output;
if (!((output = popen("/sbin/route -n | grep -c '^0\\.0\\.0\\.0'", "r"))))
return result;
unsigned int i;
fscanf(output, "%u", &i);
if (i == 1)
result = true; // There is internet connection
else if (i == 0)
result = false; // There is no internet connection
pclose(output);
return result;
}
// In case of error, print the error code and close the application
void check_error_sdl(const bool check, const char* message) {