no message
This commit is contained in:
parent
31526eaf97
commit
375411979a
|
@ -946,6 +946,11 @@ static void _showMessageBox(const char* title, const char* message)
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, title, message, NULL);
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, title, message, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void _setWindowTitle(const char* title)
|
||||||
|
{
|
||||||
|
SDL_SetWindowTitle(platform.window, title);
|
||||||
|
}
|
||||||
|
|
||||||
static System sysHandlers =
|
static System sysHandlers =
|
||||||
{
|
{
|
||||||
.setClipboardText = _setClipboardText,
|
.setClipboardText = _setClipboardText,
|
||||||
|
@ -963,6 +968,7 @@ static System sysHandlers =
|
||||||
|
|
||||||
.goFullscreen = _goFullscreen,
|
.goFullscreen = _goFullscreen,
|
||||||
.showMessageBox = _showMessageBox,
|
.showMessageBox = _showMessageBox,
|
||||||
|
.setWindowTitle = _setWindowTitle,
|
||||||
};
|
};
|
||||||
|
|
||||||
s32 main(s32 argc, char **argv)
|
s32 main(s32 argc, char **argv)
|
||||||
|
|
|
@ -93,6 +93,7 @@ static void tick(Run* run)
|
||||||
|
|
||||||
enum {Size = sizeof(tic_persistent)};
|
enum {Size = sizeof(tic_persistent)};
|
||||||
|
|
||||||
|
// TODO: remove PMEM checking...
|
||||||
if(memcmp(&run->tic->persistent, &run->persistent, Size) != 0)
|
if(memcmp(&run->tic->persistent, &run->persistent, Size) != 0)
|
||||||
{
|
{
|
||||||
fsSaveRootFile(run->console->fs, run->saveid, &run->tic->persistent, Size, true);
|
fsSaveRootFile(run->console->fs, run->saveid, &run->tic->persistent, Size, true);
|
||||||
|
|
10
src/studio.c
10
src/studio.c
|
@ -1133,12 +1133,12 @@ static void updateMDate()
|
||||||
|
|
||||||
static void updateTitle()
|
static void updateTitle()
|
||||||
{
|
{
|
||||||
// char name[FILENAME_MAX] = TIC_TITLE;
|
char name[FILENAME_MAX] = TIC_TITLE;
|
||||||
|
|
||||||
// if(strlen(studioImpl.console->romName))
|
if(strlen(studioImpl.console->romName))
|
||||||
// sprintf(name, "%s [%s]", TIC_TITLE, studioImpl.console->romName);
|
sprintf(name, "%s [%s]", TIC_TITLE, studioImpl.console->romName);
|
||||||
|
|
||||||
// SDL_SetWindowTitle(studioImpl.window, name);
|
studioImpl.system->setWindowTitle(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void studioRomSaved()
|
void studioRomSaved()
|
||||||
|
@ -1722,7 +1722,6 @@ static void processShortcuts()
|
||||||
{
|
{
|
||||||
studioImpl.mode == TIC_MENU_MODE ? hideGameMenu() : showGameMenu();
|
studioImpl.mode == TIC_MENU_MODE ? hideGameMenu() : showGameMenu();
|
||||||
// studioImpl.gamepad.backProcessed = true;
|
// studioImpl.gamepad.backProcessed = true;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if(keyWasPressedOnce(tic_key_f11)) goFullscreen();
|
else if(keyWasPressedOnce(tic_key_f11)) goFullscreen();
|
||||||
else if(keyWasPressedOnce(tic_key_return))
|
else if(keyWasPressedOnce(tic_key_return))
|
||||||
|
@ -1735,6 +1734,7 @@ static void processShortcuts()
|
||||||
else if(keyWasPressedOnce(tic_key_f9)) startVideoRecord();
|
else if(keyWasPressedOnce(tic_key_f9)) startVideoRecord();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(alt)
|
if(alt)
|
||||||
|
|
|
@ -233,6 +233,7 @@ typedef struct
|
||||||
|
|
||||||
void (*goFullscreen)();
|
void (*goFullscreen)();
|
||||||
void (*showMessageBox)(const char* title, const char* message);
|
void (*showMessageBox)(const char* title, const char* message);
|
||||||
|
void (*setWindowTitle)(const char* title);
|
||||||
|
|
||||||
} System;
|
} System;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue