From 8794444ad3f1c44cad11f94efb54f42d55f409a1 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 9 May 2024 09:24:41 +0200 Subject: work --- build/data/en.mo | Bin 0 -> 153 bytes build/data/file.png | Bin 0 -> 522 bytes build/data/folder.png | Bin 0 -> 727 bytes build/data/logo_64.bmp | Bin 0 -> 16522 bytes build/data/logo_64.png | Bin 0 -> 1294 bytes build/data/pause.png | Bin 0 -> 417 bytes build/data/play.png | Bin 0 -> 695 bytes build/data/question.png | Bin 0 -> 1233 bytes build/data/redo.png | Bin 0 -> 1062 bytes build/data/undo.png | Bin 0 -> 1020 bytes build/example_window.exe | Bin 0 -> 1831712 bytes build/libprojectbase-debug.a | Bin 0 -> 1846442 bytes build/libprojectbase-debug.o | Bin 0 -> 1831545 bytes src/assets.h | 6 +++--- src/localization.c | 3 ++- 15 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 build/data/en.mo create mode 100644 build/data/file.png create mode 100644 build/data/folder.png create mode 100644 build/data/logo_64.bmp create mode 100644 build/data/logo_64.png create mode 100644 build/data/pause.png create mode 100644 build/data/play.png create mode 100644 build/data/question.png create mode 100644 build/data/redo.png create mode 100644 build/data/undo.png create mode 100644 build/example_window.exe create mode 100644 build/libprojectbase-debug.a create mode 100644 build/libprojectbase-debug.o diff --git a/build/data/en.mo b/build/data/en.mo new file mode 100644 index 0000000..06d4bdc Binary files /dev/null and b/build/data/en.mo differ diff --git a/build/data/file.png b/build/data/file.png new file mode 100644 index 0000000..1302c3e Binary files /dev/null and b/build/data/file.png differ diff --git a/build/data/folder.png b/build/data/folder.png new file mode 100644 index 0000000..fc36529 Binary files /dev/null and b/build/data/folder.png differ diff --git a/build/data/logo_64.bmp b/build/data/logo_64.bmp new file mode 100644 index 0000000..4cc3488 Binary files /dev/null and b/build/data/logo_64.bmp differ diff --git a/build/data/logo_64.png b/build/data/logo_64.png new file mode 100644 index 0000000..da886f9 Binary files /dev/null and b/build/data/logo_64.png differ diff --git a/build/data/pause.png b/build/data/pause.png new file mode 100644 index 0000000..2abc732 Binary files /dev/null and b/build/data/pause.png differ diff --git a/build/data/play.png b/build/data/play.png new file mode 100644 index 0000000..85f6418 Binary files /dev/null and b/build/data/play.png differ diff --git a/build/data/question.png b/build/data/question.png new file mode 100644 index 0000000..2ff061f Binary files /dev/null and b/build/data/question.png differ diff --git a/build/data/redo.png b/build/data/redo.png new file mode 100644 index 0000000..d3de809 Binary files /dev/null and b/build/data/redo.png differ diff --git a/build/data/undo.png b/build/data/undo.png new file mode 100644 index 0000000..768ec0d Binary files /dev/null and b/build/data/undo.png differ diff --git a/build/example_window.exe b/build/example_window.exe new file mode 100644 index 0000000..ce02dc2 Binary files /dev/null and b/build/example_window.exe differ diff --git a/build/libprojectbase-debug.a b/build/libprojectbase-debug.a new file mode 100644 index 0000000..63e0813 Binary files /dev/null and b/build/libprojectbase-debug.a differ diff --git a/build/libprojectbase-debug.o b/build/libprojectbase-debug.o new file mode 100644 index 0000000..4b3e749 Binary files /dev/null and b/build/libprojectbase-debug.o differ diff --git a/src/assets.h b/src/assets.h index 04ef693..1b0a6e7 100644 --- a/src/assets.h +++ b/src/assets.h @@ -117,8 +117,8 @@ void assets_destroy_font(font *font); void assets_switch_render_method(); -#define load_image(_name, _inmem) assets_load_image(_binary_data_imgs_##_name##_start,_binary_data_imgs_##_name##_end) -#define load_font(_name, _size) assets_load_font(_binary_data_fonts_##_name##_start,_binary_data_fonts_##_name##_end, _size) -#define load_bitmap(_name) assets_load_bitmap(_binary_data_imgs_##_name##_start,_binary_data_imgs_##_name##_end) +#define load_image(_name, _inmem) assets_load_image(_binary____data_imgs_##_name##_start,_binary____data_imgs_##_name##_end) +#define load_font(_name, _size) assets_load_font(_binary____data_fonts_##_name##_start,_binary____data_fonts_##_name##_end, _size) +#define load_bitmap(_name) assets_load_bitmap(_binary____data_imgs_##_name##_start,_binary____data_imgs_##_name##_end) #endif \ No newline at end of file diff --git a/src/localization.c b/src/localization.c index 7271415..7909d6e 100644 --- a/src/localization.c +++ b/src/localization.c @@ -114,7 +114,7 @@ void load_available_localizations() { global_localization.mo_files = array_create(sizeof(mo_file)); array_reserve(&global_localization.mo_files, 10); - + /* mo_file en = load_localization_file(_binary_data_translations_en_English_mo_start, _binary_data_translations_en_English_mo_end, _binary_data_imgs_en_bmp_start, @@ -129,6 +129,7 @@ void load_available_localizations() array_push(&global_localization.mo_files, &en); array_push(&global_localization.mo_files, &nl); + */ } void destroy_available_localizations() -- cgit v1.2.3-70-g09d2