this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

some compilation warnings fixes

Nesbox 7735c8a8 9a1966a9

+18 -15
+1 -1
src/ext/png.h
··· 27 27 typedef struct 28 28 { 29 29 u8* data; 30 - u32 size; 30 + s32 size; 31 31 } png_buffer; 32 32 33 33 typedef union
+2
src/studio/fs.c
··· 318 318 netDirData->done(netDirData->data); 319 319 free(netDirData); 320 320 break; 321 + default: break; 321 322 } 322 323 } 323 324 ··· 764 765 free(loadFileByHashData->cachePath); 765 766 free(loadFileByHashData); 766 767 break; 768 + default: break; 767 769 } 768 770 } 769 771
+1 -1
src/studio/net.c
··· 62 62 63 63 data->callback(&getData); 64 64 65 - free(fetch->data); 65 + free((void*)fetch->data); 66 66 free(data); 67 67 68 68 emscripten_fetch_close(fetch);
+4 -4
src/studio/screens/console.c
··· 2421 2421 }, onAddFile, console); 2422 2422 } 2423 2423 2424 - static void onGetCommand(Console* console, const char* name) 2424 + static void onGetCommand(Console* console) 2425 2425 { 2426 - if(name) 2426 + if(console->desc->count) 2427 2427 { 2428 - const char* path = tic_fs_path(console->fs, name); 2428 + const char* path = tic_fs_path(console->fs, console->desc->params->key); 2429 2429 2430 2430 if(fs_exists(path)) 2431 2431 { ··· 3061 3061 3062 3062 char* token = desc.command = strtok(desc.src, " "); 3063 3063 3064 - while(token = strtok(NULL, " ")) 3064 + while((token = strtok(NULL, " "))) 3065 3065 { 3066 3066 desc.params = realloc(desc.params, ++desc.count * sizeof *desc.params); 3067 3067 desc.params[desc.count - 1].key = token;
+1
src/studio/screens/surf.c
··· 459 459 case net_get_error: 460 460 free(coverLoadingData); 461 461 break; 462 + default: break; 462 463 } 463 464 } 464 465
+3 -3
src/studio/studio.c
··· 2045 2045 free(impl.fs); 2046 2046 } 2047 2047 2048 - static StartArgs parseArgs(s32 argc, const char **argv) 2048 + static StartArgs parseArgs(s32 argc, char **argv) 2049 2049 { 2050 2050 static const char *const usage[] = 2051 2051 { ··· 2073 2073 struct argparse argparse; 2074 2074 argparse_init(&argparse, options, usage, 0); 2075 2075 argparse_describe(&argparse, "\n" TIC_NAME " startup options:", NULL); 2076 - argc = argparse_parse(&argparse, argc, argv); 2076 + argc = argparse_parse(&argparse, argc, (const char**)argv); 2077 2077 2078 2078 if(argc == 1) 2079 2079 args.cart = argv[0]; ··· 2081 2081 return args; 2082 2082 } 2083 2083 2084 - Studio* studioInit(s32 argc, const char **argv, s32 samplerate, const char* folder) 2084 + Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder) 2085 2085 { 2086 2086 setbuf(stdout, NULL); 2087 2087
+3 -3
src/studio/studio.h
··· 77 77 bool nosound; 78 78 bool fullscreen; 79 79 s32 scale; 80 - const char *fs; 81 - const char *cart; 80 + char *fs; 81 + char *cart; 82 82 #if defined(CRT_SHADER_SUPPORT) 83 83 bool crt; 84 84 #endif 85 - const char *cmd; 85 + char *cmd; 86 86 } StartArgs; 87 87 88 88 typedef enum
+1 -1
src/studio/system.h
··· 145 145 146 146 } Studio; 147 147 148 - Studio* studioInit(s32 argc, const char **argv, s32 samplerate, const char* appFolder); 148 + Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* appFolder); 149 149 150 150 #ifdef __cplusplus 151 151 }
+2 -2
src/system/sdl/main.c
··· 1573 1573 platform.mouse.cursors[i] = SDL_CreateSystemCursor(SystemCursors[i]); 1574 1574 } 1575 1575 1576 - static s32 start(s32 argc, const char **argv, const char* folder) 1576 + static s32 start(s32 argc, char **argv, const char* folder) 1577 1577 { 1578 1578 SDL_SetHint(SDL_HINT_WINRT_HANDLE_BACK_BUTTON, "1"); 1579 1579 SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); ··· 1764 1764 1765 1765 #else 1766 1766 1767 - return start(argc, (const char **)argv, folder); 1767 + return start(argc, argv, folder); 1768 1768 1769 1769 #endif 1770 1770 }