no message

This commit is contained in:
BADIM-PC\Vadim 2018-02-14 15:23:26 +03:00
parent b60b0c7de3
commit 5366ec606d
4 changed files with 4 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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);

View File

@ -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;

View File

@ -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)();