From 0e90751483f26901dd8662d49d0ff0070fc9de8a Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Sat, 1 Dec 2018 16:45:22 +0300 Subject: [PATCH] #780 small fixes --- src/system/sokol.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/system/sokol.c b/src/system/sokol.c index 26a6713..ad42ba9 100644 --- a/src/system/sokol.c +++ b/src/system/sokol.c @@ -154,10 +154,7 @@ static void app_frame(void) { tic_mem* tic = platform.studio->tic; - if(platform.studio->quit) - { - return; - } + if(platform.studio->quit) exit(0); tic80_input* input = &tic->ram.input; @@ -319,6 +316,7 @@ static void processMouse(sapp_mousebutton btn, s32 down) case SAPP_MOUSEBUTTON_LEFT: input->mouse.left = down; break; case SAPP_MOUSEBUTTON_MIDDLE: input->mouse.middle = down; break; case SAPP_MOUSEBUTTON_RIGHT: input->mouse.right = down; break; + default: break; } } @@ -375,7 +373,7 @@ sapp_desc sokol_main(s32 argc, char* argv[]) platform.audio.desc.num_channels = TIC_STEREO_CHANNLES; saudio_setup(&platform.audio.desc); - platform.studio = studioInit(argc, argv, saudio_sample_rate(), ".", &systemInterface); + platform.studio = studioInit(argc, argv, saudio_sample_rate(), "./", &systemInterface); const s32 Width = TIC80_FULLWIDTH * platform.studio->config()->uiScale; const s32 Height = TIC80_FULLHEIGHT * platform.studio->config()->uiScale;