AppleWin/source/frontends/common2/programoptions.h
Andrea Odetti a121981e5a sa2: Add support for --headless and --fixed-speed.
Headless will skip the video refresh (and the vsync).
Fixed-Speed will avoid adaptive speed.

Used together, the emulator will go at maximum speed skipping video refresh (useful for profiling).
2020-11-21 15:07:31 +00:00

37 lines
902 B
C++

#pragma once
#include <string>
struct EmulatorOptions
{
std::string disk1;
std::string disk2;
bool createMissingDisks = false;
std::string snapshot;
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
};
bool getEmulatorOptions(int argc, const char * argv [], const std::string & version, EmulatorOptions & options);