Skip to content

Commit

Permalink
Merge b968e5e into c37a444
Browse files Browse the repository at this point in the history
  • Loading branch information
skylersaleh committed Sep 5, 2024
2 parents c37a444 + b968e5e commit b1e5e48
Show file tree
Hide file tree
Showing 9 changed files with 32,686 additions and 796 deletions.
Binary file added docs/skyemu-theme-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/skyemu-theme-default.pxd
Binary file not shown.
Binary file added docs/skyemu-theme-mini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/skyemu-theme-mini.pxd
Binary file not shown.
31,520 changes: 31,520 additions & 0 deletions src/default_theme.h

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/localization.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
// - "Save File"
// - ICON_FK_CROSSHAIRS " Located Files"
// - "GUI Scale"
// - "Auto\0Vertical\0Horizontal\0Hybrid Large Top\0Hybrid Large Bottom\0Vertical Large Top\0Vertical Large Bottom\0Horizontal Large Top\0Horizontal Large Bottom\0\0"
// - "NDS Screen Layout"
// - "Never Overlap Screen"
// - "Button Labels"

// Strings removed in v4:
// - "Controller"
Expand Down
1,955 changes: 1,159 additions & 796 deletions src/main.c

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/res.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "res.h"
#include "forkawesome.h"
#include "default_theme.h"
#ifdef UNICODE_GUI
#include "noto.h"
#include "noto_armenian.h"
Expand All @@ -15,6 +16,7 @@ const uint8_t* se_get_resource(int res_id, uint64_t* size){
uint64_t sz_dummy = 0;
if(!size)size=&sz_dummy;
switch(res_id){
case SE_THEME_DEFAULT: *size = theme_default_png_len; return theme_default_png;
case SE_FORKAWESOME: *size = forkawesome_compressed_size; return (uint8_t*)forkawesome_compressed_data;
case SE_KARLA: *size = karla_compressed_size; return (uint8_t*)karla_compressed_data;
case SE_SV_BASIC_MANUAL: *size = sv_basic_manual_compressed_size; return (uint8_t*)sv_basic_manual_compressed_data;
Expand Down
1 change: 1 addition & 0 deletions src/res.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define SE_NOTO_SANS 4
#define SE_SV_BASIC_MANUAL 5
#define SE_CACERT_PEM 6
#define SE_THEME_DEFAULT 7

const uint8_t* se_get_resource(int res_id, uint64_t* size);

Expand Down

0 comments on commit b1e5e48

Please sign in to comment.