command quit missing #430
This commit is contained in:
parent
fbd7203599
commit
31063a0818
|
@ -2172,7 +2172,7 @@ static const struct
|
||||||
{
|
{
|
||||||
{"help", NULL, "show this info", onConsoleHelpCommand},
|
{"help", NULL, "show this info", onConsoleHelpCommand},
|
||||||
{"ram", NULL, "show memory info", onConsoleRamCommand},
|
{"ram", NULL, "show memory info", onConsoleRamCommand},
|
||||||
{"exit", NULL, "exit the application", onConsoleExitCommand},
|
{"exit", "quit", "exit the application", onConsoleExitCommand},
|
||||||
{"new", NULL, "create new cart", onConsoleNewCommand},
|
{"new", NULL, "create new cart", onConsoleNewCommand},
|
||||||
{"load", NULL, "load cart", onConsoleLoadCommand},
|
{"load", NULL, "load cart", onConsoleLoadCommand},
|
||||||
{"save", NULL, "save cart", onConsoleSaveCommand},
|
{"save", NULL, "save cart", onConsoleSaveCommand},
|
||||||
|
@ -2258,6 +2258,13 @@ static void onConsoleHelpCommand(Console* console, const char* param)
|
||||||
for(s32 i = 0; i < COUNT_OF(AvailableConsoleCommands); i++)
|
for(s32 i = 0; i < COUNT_OF(AvailableConsoleCommands); i++)
|
||||||
{
|
{
|
||||||
size_t len = strlen(AvailableConsoleCommands[i].command);
|
size_t len = strlen(AvailableConsoleCommands[i].command);
|
||||||
|
|
||||||
|
{
|
||||||
|
const char* alt = AvailableConsoleCommands[i].alt;
|
||||||
|
if(alt)
|
||||||
|
len += strlen(alt) + 1;
|
||||||
|
}
|
||||||
|
|
||||||
if(len > maxName) maxName = len;
|
if(len > maxName) maxName = len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1586,6 +1586,13 @@ static bool processShortcuts(SDL_KeyboardEvent* event)
|
||||||
|
|
||||||
switch(event->keysym.sym)
|
switch(event->keysym.sym)
|
||||||
{
|
{
|
||||||
|
case SDLK_q:
|
||||||
|
if(mod & TIC_MOD_CTRL)
|
||||||
|
{
|
||||||
|
exitStudio();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case SDLK_r:
|
case SDLK_r:
|
||||||
if(mod & TIC_MOD_CTRL)
|
if(mod & TIC_MOD_CTRL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue