2020-11-26 21:50:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-18 19:23:46 +00:00
|
|
|
#include "RGBMonitor.h"
|
2020-11-26 21:50:06 +00:00
|
|
|
#include "Harddisk.h"
|
|
|
|
#include "Disk.h"
|
|
|
|
#include "Common.h"
|
|
|
|
#include "Card.h"
|
|
|
|
|
|
|
|
|
|
|
|
struct CmdLine
|
|
|
|
{
|
|
|
|
CmdLine()
|
|
|
|
{
|
|
|
|
bShutdown = false;
|
2021-05-31 15:09:39 +00:00
|
|
|
setFullScreen = -1;
|
2020-11-26 21:50:06 +00:00
|
|
|
bBoot = false;
|
|
|
|
bSlot0LanguageCard = false;
|
|
|
|
bSlot7EmptyOnExit = false;
|
|
|
|
bSwapButtons0and1 = false;
|
|
|
|
bRemoveNoSlotClock = false;
|
2021-09-10 12:57:55 +00:00
|
|
|
snesMaxAltControllerType[0] = false;
|
|
|
|
snesMaxAltControllerType[1] = false;
|
2020-11-26 21:50:06 +00:00
|
|
|
szImageName_harddisk[HARDDISK_1] = NULL;
|
|
|
|
szImageName_harddisk[HARDDISK_2] = NULL;
|
|
|
|
szSnapshotName = NULL;
|
|
|
|
szScreenshotFilename = NULL;
|
|
|
|
uRamWorksExPages = 0;
|
|
|
|
uSaturnBanks = 0;
|
|
|
|
newVideoType = -1;
|
|
|
|
newVideoStyleEnableMask = 0;
|
|
|
|
newVideoStyleDisableMask = 0;
|
|
|
|
newVideoRefreshRate = VR_NONE;
|
|
|
|
clockMultiplier = 0.0; // 0 => not set from cmd-line
|
|
|
|
model = A2TYPE_MAX;
|
|
|
|
rgbCard = RGB_Videocard_e::Apple;
|
|
|
|
rgbCardForegroundColor = 15;
|
|
|
|
rgbCardBackgroundColor = 0;
|
|
|
|
|
|
|
|
for (UINT i = 0; i < NUM_SLOTS; i++)
|
|
|
|
{
|
|
|
|
bSlotEmpty[i] = false;
|
|
|
|
slotInsert[i] = CT_Empty;
|
|
|
|
szImageName_drive[i][DRIVE_1] = NULL;
|
|
|
|
szImageName_drive[i][DRIVE_2] = NULL;
|
2020-12-12 20:49:46 +00:00
|
|
|
driveConnected[i][DRIVE_1] = true;
|
|
|
|
driveConnected[i][DRIVE_2] = true;
|
2020-11-26 21:50:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool bShutdown;
|
2021-05-31 15:09:39 +00:00
|
|
|
int setFullScreen; // tristate: -1 (no cmd line specified), 0="-no-full-screen", 1="-full-screen"
|
2020-11-26 21:50:06 +00:00
|
|
|
bool bBoot;
|
|
|
|
bool bSlot0LanguageCard;
|
|
|
|
bool bSlotEmpty[NUM_SLOTS];
|
|
|
|
bool bSlot7EmptyOnExit;
|
|
|
|
bool bSwapButtons0and1;
|
|
|
|
bool bRemoveNoSlotClock;
|
2021-09-10 12:57:55 +00:00
|
|
|
bool snesMaxAltControllerType[2];
|
2020-11-26 21:50:06 +00:00
|
|
|
SS_CARDTYPE slotInsert[NUM_SLOTS];
|
2021-07-25 10:55:25 +00:00
|
|
|
LPCSTR szImageName_drive[NUM_SLOTS][NUM_DRIVES];
|
2020-12-12 20:49:46 +00:00
|
|
|
bool driveConnected[NUM_SLOTS][NUM_DRIVES];
|
2021-07-25 10:55:25 +00:00
|
|
|
LPCSTR szImageName_harddisk[NUM_HARDDISKS];
|
2020-11-26 21:50:06 +00:00
|
|
|
LPSTR szSnapshotName;
|
|
|
|
LPSTR szScreenshotFilename;
|
|
|
|
UINT uRamWorksExPages;
|
|
|
|
UINT uSaturnBanks;
|
|
|
|
int newVideoType;
|
|
|
|
int newVideoStyleEnableMask;
|
|
|
|
int newVideoStyleDisableMask;
|
|
|
|
VideoRefreshRate_e newVideoRefreshRate;
|
|
|
|
double clockMultiplier;
|
|
|
|
eApple2Type model;
|
|
|
|
RGB_Videocard_e rgbCard;
|
|
|
|
int rgbCardForegroundColor;
|
|
|
|
int rgbCardBackgroundColor;
|
|
|
|
std::string strCurrentDir;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool ProcessCmdLine(LPSTR lpCmdLine);
|
|
|
|
|
|
|
|
extern std::string g_sConfigFile; // INI file to use instead of Registry
|
|
|
|
extern bool g_bCapturePrintScreenKey;
|
|
|
|
extern bool g_bRegisterFileTypes;
|
|
|
|
extern bool g_bHookSystemKey;
|
|
|
|
extern bool g_bHookAltTab;
|
|
|
|
extern bool g_bHookAltGrControl;
|
|
|
|
extern CmdLine g_cmdLine;
|