AppleWin/source/frontends/common2/programoptions.h
Andrea Odetti f13816262d Clean up multithreading code and offer it via command line options.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-13 11:51:20 +00:00

35 lines
684 B
C++

#pragma once
#include <string>
struct EmulatorOptions
{
std::string disk1;
std::string disk2;
bool createMissingDisks;
std::string snapshot;
int memclear;
bool log;
bool benchmark;
bool headless;
bool ntsc;
bool squaring; // turn the x/y range to a square
bool saveConfigurationOnExit;
bool useQtIni; // use Qt .ini file (read only)
bool run; // false if options include "-h"
bool multiThreaded;
bool looseMutex; // whether SDL_UpdateTexture is mutex protected (from CPU)
int timerInterval; // only when multithreaded
};
bool getEmulatorOptions(int argc, const char * argv [], const std::string & version, EmulatorOptions & options);