2020-10-11 10:30:00 +01:00
|
|
|
#pragma once
|
|
|
|
|
2020-10-09 19:13:42 +01:00
|
|
|
#include <string>
|
2020-12-04 19:58:49 +00:00
|
|
|
#include <vector>
|
2020-10-09 19:13:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
struct EmulatorOptions
|
|
|
|
{
|
|
|
|
std::string disk1;
|
|
|
|
std::string disk2;
|
2020-10-11 09:49:50 +01:00
|
|
|
|
2020-12-06 18:03:41 +00:00
|
|
|
std::string snapshotFilename;
|
|
|
|
bool loadSnapshot = false;
|
2020-10-11 09:49:50 +01:00
|
|
|
|
2020-11-14 11:01:05 +00:00
|
|
|
int memclear = 0;
|
2020-10-11 09:49:50 +01:00
|
|
|
|
2020-11-14 11:01:05 +00:00
|
|
|
bool log = false;
|
2020-10-11 09:49:50 +01:00
|
|
|
|
2020-11-14 11:01:05 +00:00
|
|
|
bool benchmark = false;
|
|
|
|
bool headless = false;
|
|
|
|
bool ntsc = false; // only for applen
|
2020-10-11 09:49:50 +01:00
|
|
|
|
2020-11-14 11:01:05 +00:00
|
|
|
bool squaring = true; // turn the x/y range to a square
|
2020-10-17 19:19:46 +01:00
|
|
|
|
2020-11-14 11:01:05 +00:00
|
|
|
bool saveConfigurationOnExit = false;
|
|
|
|
bool useQtIni = false; // use Qt .ini file (read only)
|
2020-10-09 19:13:42 +01:00
|
|
|
|
2020-11-14 11:01:05 +00:00
|
|
|
bool run = true; // false if options include "-h"
|
2020-11-13 11:50:42 +00:00
|
|
|
|
2020-11-14 11:01:05 +00:00
|
|
|
bool multiThreaded = false;
|
|
|
|
bool looseMutex = false; // whether SDL_UpdateTexture is mutex protected (from CPU)
|
|
|
|
int timerInterval = 16; // only when multithreaded
|
2020-11-21 15:07:31 +00:00
|
|
|
bool fixedSpeed = false; // default adaptive
|
2020-11-13 11:50:42 +00:00
|
|
|
|
2020-11-14 11:01:05 +00:00
|
|
|
int sdlDriver = -1; // default = -1 to let SDL choose
|
2020-12-04 19:58:49 +00:00
|
|
|
|
|
|
|
std::vector<std::string> registryOptions;
|
2020-10-09 19:13:42 +01:00
|
|
|
};
|
|
|
|
|
2020-11-29 16:39:17 +00:00
|
|
|
bool getEmulatorOptions(int argc, const char * argv [], const std::string & edition, EmulatorOptions & options);
|
2020-12-13 19:47:30 +00:00
|
|
|
|
|
|
|
void applyOptions(const EmulatorOptions & options);
|