no message

This commit is contained in:
BADIM-PC\Vadim 2018-02-13 13:38:11 +03:00
parent 31526eaf97
commit 375411979a
4 changed files with 13 additions and 5 deletions

View File

@ -946,6 +946,11 @@ static void _showMessageBox(const char* title, const char* message)
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, title, message, NULL);
}
static void _setWindowTitle(const char* title)
{
SDL_SetWindowTitle(platform.window, title);
}
static System sysHandlers =
{
.setClipboardText = _setClipboardText,
@ -963,6 +968,7 @@ static System sysHandlers =
.goFullscreen = _goFullscreen,
.showMessageBox = _showMessageBox,
.setWindowTitle = _setWindowTitle,
};
s32 main(s32 argc, char **argv)

View File

@ -93,6 +93,7 @@ static void tick(Run* run)
enum {Size = sizeof(tic_persistent)};
// TODO: remove PMEM checking...
if(memcmp(&run->tic->persistent, &run->persistent, Size) != 0)
{
fsSaveRootFile(run->console->fs, run->saveid, &run->tic->persistent, Size, true);

View File

@ -1133,12 +1133,12 @@ static void updateMDate()
static void updateTitle()
{
// char name[FILENAME_MAX] = TIC_TITLE;
char name[FILENAME_MAX] = TIC_TITLE;
// if(strlen(studioImpl.console->romName))
// sprintf(name, "%s [%s]", TIC_TITLE, studioImpl.console->romName);
if(strlen(studioImpl.console->romName))
sprintf(name, "%s [%s]", TIC_TITLE, studioImpl.console->romName);
// SDL_SetWindowTitle(studioImpl.window, name);
studioImpl.system->setWindowTitle(name);
}
void studioRomSaved()
@ -1722,7 +1722,6 @@ static void processShortcuts()
{
studioImpl.mode == TIC_MENU_MODE ? hideGameMenu() : showGameMenu();
// studioImpl.gamepad.backProcessed = true;
return;
}
else if(keyWasPressedOnce(tic_key_f11)) goFullscreen();
else if(keyWasPressedOnce(tic_key_return))
@ -1735,6 +1734,7 @@ static void processShortcuts()
else if(keyWasPressedOnce(tic_key_f9)) startVideoRecord();
#endif
return;
}
if(alt)

View File

@ -233,6 +233,7 @@ typedef struct
void (*goFullscreen)();
void (*showMessageBox)(const char* title, const char* message);
void (*setWindowTitle)(const char* title);
} System;