no message
This commit is contained in:
parent
b60b0c7de3
commit
5366ec606d
|
@ -1874,6 +1874,7 @@ Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder, Sy
|
||||||
studioImpl.studio.tick = studioTick;
|
studioImpl.studio.tick = studioTick;
|
||||||
studioImpl.studio.close = studioClose;
|
studioImpl.studio.close = studioClose;
|
||||||
studioImpl.studio.updateProject = updateStudioProject;
|
studioImpl.studio.updateProject = updateStudioProject;
|
||||||
|
studioImpl.studio.exit = exitStudio;
|
||||||
|
|
||||||
return &studioImpl.studio;
|
return &studioImpl.studio;
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,7 +154,7 @@ void studioConfigChanged();
|
||||||
void setStudioMode(EditorMode mode);
|
void setStudioMode(EditorMode mode);
|
||||||
void resumeRunMode();
|
void resumeRunMode();
|
||||||
EditorMode getStudioMode();
|
EditorMode getStudioMode();
|
||||||
TIC80_API void exitStudio();
|
void exitStudio();
|
||||||
u32 unzip(u8** dest, const u8* source, size_t size);
|
u32 unzip(u8** dest, const u8* source, size_t size);
|
||||||
|
|
||||||
void str2buf(const char* str, s32 size, void* buf, bool flip);
|
void str2buf(const char* str, s32 size, void* buf, bool flip);
|
||||||
|
|
|
@ -584,7 +584,7 @@ static void pollEvent()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_QUIT:
|
case SDL_QUIT:
|
||||||
exitStudio();
|
platform.studio->exit();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -30,6 +30,7 @@ typedef struct
|
||||||
bool quit;
|
bool quit;
|
||||||
|
|
||||||
void (*tick)(void* pixels);
|
void (*tick)(void* pixels);
|
||||||
|
void (*exit)();
|
||||||
void (*close)();
|
void (*close)();
|
||||||
void (*updateProject)();
|
void (*updateProject)();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue