AppleWin/source/frontends/common2/programoptions.h
Andrea Odetti 1d07215f78 Add ability to Save/Load Snapshot F11/F12.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 18:03:41 +00:00

40 lines
967 B
C++

#pragma once
#include <string>
#include <vector>
struct EmulatorOptions
{
std::string disk1;
std::string disk2;
std::string snapshotFilename;
bool loadSnapshot = false;
int memclear = 0;
bool log = false;
bool benchmark = false;
bool headless = false;
bool ntsc = false; // only for applen
bool squaring = true; // turn the x/y range to a square
bool saveConfigurationOnExit = false;
bool useQtIni = false; // use Qt .ini file (read only)
bool run = true; // false if options include "-h"
bool multiThreaded = false;
bool looseMutex = false; // whether SDL_UpdateTexture is mutex protected (from CPU)
int timerInterval = 16; // only when multithreaded
bool fixedSpeed = false; // default adaptive
int sdlDriver = -1; // default = -1 to let SDL choose
std::vector<std::string> registryOptions;
};
bool getEmulatorOptions(int argc, const char * argv [], const std::string & edition, EmulatorOptions & options);