Disable CRT by command line #552
This commit is contained in:
parent
20540e14a0
commit
6166b08ca5
File diff suppressed because one or more lines are too long
BIN
config.tic
BIN
config.tic
Binary file not shown.
|
@ -3062,6 +3062,7 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config,
|
|||
.startSurf = false,
|
||||
.skipStart = false,
|
||||
.goFullscreen = false,
|
||||
.crtMonitor = false,
|
||||
};
|
||||
|
||||
memset(console->buffer, 0, CONSOLE_BUFFER_SIZE);
|
||||
|
@ -3138,6 +3139,9 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config,
|
|||
else if(strcmp(arg, "-save") == 0)
|
||||
saveCart(console);
|
||||
|
||||
else if(strcmp(arg, "-crt-monitor") == 0)
|
||||
console->crtMonitor = true;
|
||||
|
||||
else continue;
|
||||
|
||||
argp |= 0b1 << i;
|
||||
|
|
|
@ -92,11 +92,16 @@ struct Console
|
|||
HistoryItem* historyHead;
|
||||
|
||||
u32 tickCounter;
|
||||
|
||||
struct
|
||||
{
|
||||
bool active;
|
||||
bool showGameMenu;
|
||||
bool startSurf;
|
||||
bool skipStart;
|
||||
bool goFullscreen;
|
||||
bool crtMonitor;
|
||||
};
|
||||
|
||||
void(*load)(Console*, const char* name);
|
||||
bool(*loadProject)(Console*, const char* name, const char* data, s32 size, tic_cartridge* dst);
|
||||
|
|
|
@ -1855,6 +1855,11 @@ Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder, Sy
|
|||
goFullscreen();
|
||||
}
|
||||
|
||||
if(impl.console->crtMonitor)
|
||||
{
|
||||
impl.config->data.crtMonitor = true;
|
||||
}
|
||||
|
||||
impl.studio.tick = studioTick;
|
||||
impl.studio.close = studioClose;
|
||||
impl.studio.updateProject = updateStudioProject;
|
||||
|
|
Loading…
Reference in New Issue