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,
|
.startSurf = false,
|
||||||
.skipStart = false,
|
.skipStart = false,
|
||||||
.goFullscreen = false,
|
.goFullscreen = false,
|
||||||
|
.crtMonitor = false,
|
||||||
};
|
};
|
||||||
|
|
||||||
memset(console->buffer, 0, CONSOLE_BUFFER_SIZE);
|
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)
|
else if(strcmp(arg, "-save") == 0)
|
||||||
saveCart(console);
|
saveCart(console);
|
||||||
|
|
||||||
|
else if(strcmp(arg, "-crt-monitor") == 0)
|
||||||
|
console->crtMonitor = true;
|
||||||
|
|
||||||
else continue;
|
else continue;
|
||||||
|
|
||||||
argp |= 0b1 << i;
|
argp |= 0b1 << i;
|
||||||
|
|
|
@ -92,11 +92,16 @@ struct Console
|
||||||
HistoryItem* historyHead;
|
HistoryItem* historyHead;
|
||||||
|
|
||||||
u32 tickCounter;
|
u32 tickCounter;
|
||||||
bool active;
|
|
||||||
bool showGameMenu;
|
struct
|
||||||
bool startSurf;
|
{
|
||||||
bool skipStart;
|
bool active;
|
||||||
bool goFullscreen;
|
bool showGameMenu;
|
||||||
|
bool startSurf;
|
||||||
|
bool skipStart;
|
||||||
|
bool goFullscreen;
|
||||||
|
bool crtMonitor;
|
||||||
|
};
|
||||||
|
|
||||||
void(*load)(Console*, const char* name);
|
void(*load)(Console*, const char* name);
|
||||||
bool(*loadProject)(Console*, const char* name, const char* data, s32 size, tic_cartridge* dst);
|
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();
|
goFullscreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(impl.console->crtMonitor)
|
||||||
|
{
|
||||||
|
impl.config->data.crtMonitor = true;
|
||||||
|
}
|
||||||
|
|
||||||
impl.studio.tick = studioTick;
|
impl.studio.tick = studioTick;
|
||||||
impl.studio.close = studioClose;
|
impl.studio.close = studioClose;
|
||||||
impl.studio.updateProject = updateStudioProject;
|
impl.studio.updateProject = updateStudioProject;
|
||||||
|
|
Loading…
Reference in New Issue