win_opengl: UI for options and add them to config. Reloading changed options at runtime. Improved framerate limitter.

This commit is contained in:
ts-korhonen
2021-04-23 16:09:45 +03:00
parent 579e221a76
commit 2bf6c7aa11
12 changed files with 325 additions and 104 deletions

View File

@@ -69,13 +69,7 @@ void main() {\n\
*/
static char* read_file_to_string(const char* path)
{
char* full_path = (char*)malloc(sizeof(char) * (strlen(path) + strlen(exe_path) + 1));
plat_append_filename(full_path, exe_path, path);
FILE* file_handle = plat_fopen(full_path, "rb");
free(full_path);
FILE* file_handle = plat_fopen(path, "rb");
if (file_handle != NULL)
{