Skip to content

Commit

Permalink
Unbreak other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceisjustplaying committed Aug 25, 2024
1 parent c41bdea commit e7af6b6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/system/baremetalpi/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ TShutdownMode Run(void)
char* argv[] = { &arg0[0], NULL };
int argc = 1;
malloc(88);
platform.studio = studio_create(argc, argv, 44100, TIC80_PIXEL_COLOR_BGRA8888, "tic80", INT32_MAX);
platform.studio = studio_create(argc, argv, 44100, TIC80_PIXEL_COLOR_BGRA8888, "tic80", INT32_MAX, "qwerty");
malloc(99);

}
Expand All @@ -404,7 +404,7 @@ TShutdownMode Run(void)
char* argv[] = { &arg0[0], &arg1[0], NULL };
int argc = 2;
dbg("Without keyboard\n");
platform.studio = studio_create(argc, argv, 44100, TIC80_PIXEL_COLOR_BGRA8888, "tic80", INT32_MAX);
platform.studio = studio_create(argc, argv, 44100, TIC80_PIXEL_COLOR_BGRA8888, "tic80", INT32_MAX, "qwerty");
}
dbg("studio_create OK\n");

Expand Down
2 changes: 1 addition & 1 deletion src/system/n3ds/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ int main(int argc, char **argv) {
n3ds_draw_init();
n3ds_keyboard_init(&platform.keyboard);

platform.studio = studio_create(argc_used, argv_used, AUDIO_FREQ, TIC80_PIXEL_COLOR_ABGR8888, "./", INT32_MAX);
platform.studio = studio_create(argc_used, argv_used, AUDIO_FREQ, TIC80_PIXEL_COLOR_ABGR8888, "./", INT32_MAX, "qwerty");

n3ds_sound_init(AUDIO_FREQ);

Expand Down
3 changes: 2 additions & 1 deletion src/system/sdl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,8 @@ static void handleKeydown(SDL_Keycode keycode, bool down, bool* state, bool* pre
#endif
}

char* detect_keyboard_layout() {
char* detect_keyboard_layout()
{
char q = SDL_GetKeyFromScancode(SDL_SCANCODE_Q);
char w = SDL_GetKeyFromScancode(SDL_SCANCODE_W);
char y = SDL_GetKeyFromScancode(SDL_SCANCODE_Y);
Expand Down
2 changes: 1 addition & 1 deletion src/system/sokol/sokol.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ sapp_desc sokol_main(s32 argc, char* argv[])
platform.audio.desc.num_channels = TIC80_SAMPLE_CHANNELS;
saudio_setup(&platform.audio.desc);

platform.studio = studio_create(argc, argv, saudio_sample_rate(), TIC80_PIXEL_COLOR_RGBA8888, "./", INT32_MAX);
platform.studio = studio_create(argc, argv, saudio_sample_rate(), TIC80_PIXEL_COLOR_RGBA8888, "./", INT32_MAX, "qwerty");

if(studio_config(platform.studio)->cli)
{
Expand Down

0 comments on commit e7af6b6

Please sign in to comment.