Border color does not update when loading carts until esc is pressed. #308
This commit is contained in:
parent
5d0f4a7002
commit
ad60ea32e0
12
src/studio.c
12
src/studio.c
|
@ -911,25 +911,27 @@ static void updateHash()
|
||||||
md5(&studio.tic->cart, sizeof(tic_cartridge), studio.hash.data);
|
md5(&studio.tic->cart, sizeof(tic_cartridge), studio.hash.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void studioRomSaved()
|
static void updateTitle()
|
||||||
{
|
{
|
||||||
char name[FILENAME_MAX] = TIC_TITLE;
|
char name[FILENAME_MAX] = TIC_TITLE;
|
||||||
|
|
||||||
if(strlen(studio.console.romName))
|
if(strlen(studio.console.romName))
|
||||||
sprintf(name, "%s [%s]", TIC_TITLE, studio.console.romName);
|
sprintf(name, "%s [%s]", TIC_TITLE, studio.console.romName);
|
||||||
|
|
||||||
SDL_SetWindowTitle(studio.window, name);
|
SDL_SetWindowTitle(studio.window, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
void studioRomSaved()
|
||||||
|
{
|
||||||
|
updateTitle();
|
||||||
updateHash();
|
updateHash();
|
||||||
|
|
||||||
studio.tic->api.pause(studio.tic);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void studioRomLoaded()
|
void studioRomLoaded()
|
||||||
{
|
{
|
||||||
initModules();
|
initModules();
|
||||||
studioRomSaved();
|
|
||||||
|
|
||||||
|
updateTitle();
|
||||||
updateHash();
|
updateHash();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue