-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathozone.c
More file actions
13301 lines (11733 loc) · 492 KB
/
ozone.c
File metadata and controls
13301 lines (11733 loc) · 492 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2014-2017 - Jean-André Santoni
* Copyright (C) 2016-2019 - Brad Parker
* Copyright (C) 2018 - Alfredo Monclús
* Copyright (C) 2018-2020 - natinusala
* Copyright (C) 2019 - Patrick Scheurenbrand
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <retro_miscellaneous.h>
#include <retro_inline.h>
#ifdef HAVE_CONFIG_H
#include "../../config.h"
#endif
#include <file/file_path.h>
#include <string/stdstring.h>
#include <encodings/utf.h>
#include <features/features_cpu.h>
#include <formats/image.h>
#include <math/float_minmax.h>
#include <array/rhmap.h>
#include <retro_math.h>
#include "../menu_cbs.h"
#include "../menu_driver.h"
#include "../menu_screensaver.h"
#include "../../gfx/gfx_animation.h"
#include "../../gfx/gfx_display.h"
#include "../../gfx/gfx_thumbnail_path.h"
#include "../../gfx/gfx_thumbnail.h"
#include "../../config.def.h"
#include "../../configuration.h"
#include "../../content.h"
#include "../../core_info.h"
#include "../../defaults.h"
#include "../../file_path_special.h"
#include "../../runtime_file.h"
#include "../../input/input_osk.h"
#ifdef HAVE_AUDIOMIXER
#include "../../audio/audio_driver.h"
#endif
#ifdef HAVE_CHEEVOS
#include "../../cheevos/cheevos_menu.h"
#endif
#define ANIMATION_PUSH_ENTRY_DURATION 166.66667f
#define ANIMATION_CURSOR_DURATION 166.66667f
#define ANIMATION_CURSOR_PULSE 166.66667f * 3
#define OZONE_THUMBNAIL_STREAM_DELAY 16.66667f * 3
#define OZONE_EASING_ALPHA EASING_OUT_CIRC
#define OZONE_EASING_ALPHA_IN EASING_IN_QUAD
#define OZONE_EASING_XY EASING_OUT_QUAD
#define FONT_SIZE_FOOTER 18
#define FONT_SIZE_TITLE 36
#define FONT_SIZE_TIME 22
#define FONT_SIZE_ENTRIES_LABEL 24
#define FONT_SIZE_ENTRIES_SUBLABEL 18
#define FONT_SIZE_SIDEBAR 24
#define HEADER_HEIGHT 87
#define FOOTER_HEIGHT 78
#define ENTRY_PADDING_HORIZONTAL_HALF 40
#define ENTRY_PADDING_HORIZONTAL_FULL 130
#define ENTRY_PADDING_VERTICAL 20
#define ENTRY_HEIGHT 50
#define ENTRY_SPACING 8
#define ENTRY_ICON_SIZE 46
#define ENTRY_ICON_PADDING 15
/* > 'SIDEBAR_WIDTH' must be kept in sync with
* menu driver metrics */
#define SIDEBAR_WIDTH 408
#define SIDEBAR_X_PADDING 40
#define SIDEBAR_Y_PADDING 20
#define SIDEBAR_ENTRY_HEIGHT 50
#define SIDEBAR_ENTRY_Y_PADDING 10
#define SIDEBAR_ENTRY_ICON_SIZE 46
#define SIDEBAR_ENTRY_ICON_PADDING 15
#define SIDEBAR_GRADIENT_HEIGHT 28
#define FULLSCREEN_THUMBNAIL_PADDING 20
#define CURSOR_SIZE 64
/* Cursor becomes active when it moves more
* than CURSOR_ACTIVE_DELTA pixels (adjusted
* by current scale factor) */
#define CURSOR_ACTIVE_DELTA 3
#define INTERVAL_OSK_CURSOR (0.5f * 1000000)
#if defined(__APPLE__)
/* UTF-8 support is currently broken on Apple devices... */
#define OZONE_TICKER_SPACER TICKER_SPACER_DEFAULT
#else
/* <EM SPACE><BULLET><EM SPACE>
* UCN equivalent: "\u2003\u2022\u2003" */
#define OZONE_TICKER_SPACER "\xE2\x80\x83\xE2\x80\xA2\xE2\x80\x83"
#endif
#define OZONE_WIGGLE_DURATION 15
#define OZONE_TAB_MAX_LENGTH 255
/* Returns true if specified entry is currently
* displayed on screen */
/* Check whether selected item is already on screen */
#define OZONE_ENTRY_ONSCREEN(ozone, idx) (((idx) >= (ozone)->first_onscreen_entry) && ((idx) <= (ozone)->last_onscreen_entry))
enum ozone_onscreen_entry_position_type
{
OZONE_ONSCREEN_ENTRY_FIRST = 0,
OZONE_ONSCREEN_ENTRY_LAST,
OZONE_ONSCREEN_ENTRY_CENTRE
};
enum
{
OZONE_SYSTEM_TAB_MAIN = 0,
OZONE_SYSTEM_TAB_SETTINGS,
OZONE_SYSTEM_TAB_HISTORY,
OZONE_SYSTEM_TAB_FAVORITES,
#ifdef HAVE_IMAGEVIEWER
OZONE_SYSTEM_TAB_IMAGES,
#endif
OZONE_SYSTEM_TAB_MUSIC,
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
OZONE_SYSTEM_TAB_VIDEO,
#endif
#ifdef HAVE_NETWORKING
OZONE_SYSTEM_TAB_NETPLAY,
#endif
OZONE_SYSTEM_TAB_ADD,
OZONE_SYSTEM_TAB_CONTENTLESS_CORES,
#if defined(HAVE_LIBRETRODB)
OZONE_SYSTEM_TAB_EXPLORE,
#endif
/* End of this enum - use the last one to determine num of possible tabs */
OZONE_SYSTEM_TAB_LAST
};
enum OZONE_TEXTURE
{
OZONE_TEXTURE_RETROARCH = 0,
OZONE_TEXTURE_CURSOR_BORDER,
OZONE_TEXTURE_LAST
};
enum OZONE_THEME_TEXTURES
{
OZONE_THEME_TEXTURE_SWITCH = 0,
OZONE_THEME_TEXTURE_CHECK,
OZONE_THEME_TEXTURE_CURSOR_NO_BORDER,
OZONE_THEME_TEXTURE_CURSOR_STATIC,
OZONE_THEME_TEXTURE_LAST
};
enum OZONE_TAB_TEXTURES
{
OZONE_TAB_TEXTURE_MAIN_MENU = 0,
OZONE_TAB_TEXTURE_SETTINGS,
OZONE_TAB_TEXTURE_HISTORY,
OZONE_TAB_TEXTURE_FAVORITES,
OZONE_TAB_TEXTURE_IMAGE,
OZONE_TAB_TEXTURE_MUSIC,
OZONE_TAB_TEXTURE_VIDEO,
OZONE_TAB_TEXTURE_NETWORK,
OZONE_TAB_TEXTURE_SCAN_CONTENT,
OZONE_TAB_TEXTURE_CONTENTLESS_CORES,
OZONE_TAB_TEXTURE_EXPLORE,
OZONE_TAB_TEXTURE_LAST
};
enum
{
OZONE_ENTRIES_ICONS_TEXTURE_MAIN_MENU = 0,
OZONE_ENTRIES_ICONS_TEXTURE_SETTINGS,
OZONE_ENTRIES_ICONS_TEXTURE_HISTORY,
OZONE_ENTRIES_ICONS_TEXTURE_FAVORITES,
#ifdef HAVE_IMAGEVIEWER
OZONE_ENTRIES_ICONS_TEXTURE_IMAGES,
#endif
OZONE_ENTRIES_ICONS_TEXTURE_MUSICS,
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
OZONE_ENTRIES_ICONS_TEXTURE_MOVIES,
#endif
#ifdef HAVE_NETWORKING
OZONE_ENTRIES_ICONS_TEXTURE_NETPLAY,
OZONE_ENTRIES_ICONS_TEXTURE_ROOM,
OZONE_ENTRIES_ICONS_TEXTURE_ROOM_LAN,
OZONE_ENTRIES_ICONS_TEXTURE_ROOM_RELAY,
#endif
OZONE_ENTRIES_ICONS_TEXTURE_SETTING,
OZONE_ENTRIES_ICONS_TEXTURE_SUBSETTING,
OZONE_ENTRIES_ICONS_TEXTURE_ARROW,
OZONE_ENTRIES_ICONS_TEXTURE_RUN,
OZONE_ENTRIES_ICONS_TEXTURE_CLOSE,
OZONE_ENTRIES_ICONS_TEXTURE_RESUME,
OZONE_ENTRIES_ICONS_TEXTURE_SAVESTATE,
OZONE_ENTRIES_ICONS_TEXTURE_LOADSTATE,
OZONE_ENTRIES_ICONS_TEXTURE_RECORDREPLAY,
OZONE_ENTRIES_ICONS_TEXTURE_PLAYREPLAY,
OZONE_ENTRIES_ICONS_TEXTURE_HALTREPLAY,
OZONE_ENTRIES_ICONS_TEXTURE_UNDO,
OZONE_ENTRIES_ICONS_TEXTURE_CORE_INFO,
OZONE_ENTRIES_ICONS_TEXTURE_BLUETOOTH,
OZONE_ENTRIES_ICONS_TEXTURE_WIFI,
OZONE_ENTRIES_ICONS_TEXTURE_CORE_OPTIONS,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_REMAPPING_OPTIONS,
OZONE_ENTRIES_ICONS_TEXTURE_CHEAT_OPTIONS,
OZONE_ENTRIES_ICONS_TEXTURE_DISK_OPTIONS,
OZONE_ENTRIES_ICONS_TEXTURE_SHADER_OPTIONS,
OZONE_ENTRIES_ICONS_TEXTURE_ACHIEVEMENT_LIST,
OZONE_ENTRIES_ICONS_TEXTURE_SCREENSHOT,
OZONE_ENTRIES_ICONS_TEXTURE_RELOAD,
OZONE_ENTRIES_ICONS_TEXTURE_RENAME,
OZONE_ENTRIES_ICONS_TEXTURE_FILE,
OZONE_ENTRIES_ICONS_TEXTURE_FOLDER,
OZONE_ENTRIES_ICONS_TEXTURE_ZIP,
OZONE_ENTRIES_ICONS_TEXTURE_FAVORITE,
OZONE_ENTRIES_ICONS_TEXTURE_ADD_FAVORITE,
OZONE_ENTRIES_ICONS_TEXTURE_IMAGE,
OZONE_ENTRIES_ICONS_TEXTURE_MUSIC,
OZONE_ENTRIES_ICONS_TEXTURE_MOVIE,
OZONE_ENTRIES_ICONS_TEXTURE_CORE,
OZONE_ENTRIES_ICONS_TEXTURE_RDB,
OZONE_ENTRIES_ICONS_TEXTURE_CURSOR,
OZONE_ENTRIES_ICONS_TEXTURE_SWITCH_ON,
OZONE_ENTRIES_ICONS_TEXTURE_SWITCH_OFF,
OZONE_ENTRIES_ICONS_TEXTURE_CLOCK,
OZONE_ENTRIES_ICONS_TEXTURE_BATTERY_FULL,
OZONE_ENTRIES_ICONS_TEXTURE_BATTERY_CHARGING,
OZONE_ENTRIES_ICONS_TEXTURE_BATTERY_80,
OZONE_ENTRIES_ICONS_TEXTURE_BATTERY_60,
OZONE_ENTRIES_ICONS_TEXTURE_BATTERY_40,
OZONE_ENTRIES_ICONS_TEXTURE_BATTERY_20,
OZONE_ENTRIES_ICONS_TEXTURE_POINTER,
OZONE_ENTRIES_ICONS_TEXTURE_ADD,
OZONE_ENTRIES_ICONS_TEXTURE_DISC,
OZONE_ENTRIES_ICONS_TEXTURE_KEY,
OZONE_ENTRIES_ICONS_TEXTURE_KEY_HOVER,
OZONE_ENTRIES_ICONS_TEXTURE_DIALOG_SLICE,
OZONE_ENTRIES_ICONS_TEXTURE_ACHIEVEMENTS,
OZONE_ENTRIES_ICONS_TEXTURE_AUDIO,
OZONE_ENTRIES_ICONS_TEXTURE_EXIT,
OZONE_ENTRIES_ICONS_TEXTURE_FRAMESKIP,
OZONE_ENTRIES_ICONS_TEXTURE_INFO,
OZONE_ENTRIES_ICONS_TEXTURE_HELP,
OZONE_ENTRIES_ICONS_TEXTURE_NETWORK,
OZONE_ENTRIES_ICONS_TEXTURE_POWER,
OZONE_ENTRIES_ICONS_TEXTURE_SAVING,
OZONE_ENTRIES_ICONS_TEXTURE_UPDATER,
OZONE_ENTRIES_ICONS_TEXTURE_VIDEO,
OZONE_ENTRIES_ICONS_TEXTURE_RECORD,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_SETTINGS,
OZONE_ENTRIES_ICONS_TEXTURE_MIXER,
OZONE_ENTRIES_ICONS_TEXTURE_LOG,
OZONE_ENTRIES_ICONS_TEXTURE_OSD,
OZONE_ENTRIES_ICONS_TEXTURE_UI,
OZONE_ENTRIES_ICONS_TEXTURE_USER,
OZONE_ENTRIES_ICONS_TEXTURE_PRIVACY,
OZONE_ENTRIES_ICONS_TEXTURE_LATENCY,
OZONE_ENTRIES_ICONS_TEXTURE_DRIVERS,
OZONE_ENTRIES_ICONS_TEXTURE_PLAYLIST,
OZONE_ENTRIES_ICONS_TEXTURE_QUICKMENU,
OZONE_ENTRIES_ICONS_TEXTURE_REWIND,
OZONE_ENTRIES_ICONS_TEXTURE_OVERLAY,
OZONE_ENTRIES_ICONS_TEXTURE_OVERRIDE,
OZONE_ENTRIES_ICONS_TEXTURE_NOTIFICATIONS,
OZONE_ENTRIES_ICONS_TEXTURE_STREAM,
OZONE_ENTRIES_ICONS_TEXTURE_SHUTDOWN,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_DPAD_U,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_DPAD_D,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_DPAD_L,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_DPAD_R,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_STCK_U,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_STCK_D,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_STCK_L,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_STCK_R,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_STCK_P,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_SELECT,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_START,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_BTN_U,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_BTN_D,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_BTN_L,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_BTN_R,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_LB,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_RB,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_LT,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_RT,
OZONE_ENTRIES_ICONS_TEXTURE_CHECKMARK,
OZONE_ENTRIES_ICONS_TEXTURE_MENU_ADD,
OZONE_ENTRIES_ICONS_TEXTURE_BRIGHTNESS,
OZONE_ENTRIES_ICONS_TEXTURE_PAUSE,
OZONE_ENTRIES_ICONS_TEXTURE_MENU_APPLY_TOGGLE,
OZONE_ENTRIES_ICONS_TEXTURE_MENU_APPLY_COG,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_ADC,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_BIND_ALL,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_MOUSE,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_LGUN,
OZONE_ENTRIES_ICONS_TEXTURE_INPUT_TURBO,
OZONE_ENTRIES_ICONS_TEXTURE_LAST
};
enum ozone_pending_thumbnail_type
{
OZONE_PENDING_THUMBNAIL_NONE = 0,
OZONE_PENDING_THUMBNAIL_RIGHT,
OZONE_PENDING_THUMBNAIL_LEFT,
OZONE_PENDING_THUMBNAIL_BOTH
};
/* Container for a footer text label */
typedef struct
{
const char *str;
float x;
int width; /* -1 on error */
bool show;
} ozone_footer_label_t;
typedef struct ozone_theme
{
/* Background color */
float background[16];
float *background_libretro_running;
/* Float colors for quads and icons */
float header_footer_separator[16];
float text[16];
float selection[16];
float selection_border[16];
float entries_border[16];
float entries_icon[16];
float text_selected[16];
float message_background[16];
/* RGBA colors for text */
uint32_t text_rgba;
uint32_t text_sidebar_rgba;
uint32_t text_selected_rgba;
uint32_t text_sublabel_rgba;
/* Screensaver 'tint' (RGB24) */
uint32_t screensaver_tint;
/* Sidebar color */
float *sidebar_background;
float *sidebar_top_gradient;
float *sidebar_bottom_gradient;
/* Fancy cursor colors */
float *cursor_border_0;
float *cursor_border_1;
uintptr_t textures[OZONE_THEME_TEXTURE_LAST];
const char *name;
} ozone_theme_t;
/* If you change this struct, also
change ozone_alloc_node and
ozone_copy_node */
typedef struct ozone_node
{
char *fullpath; /* Entry fullpath */
char *console_name; /* Console tab name */
uintptr_t icon; /* Console tab icon */
uintptr_t content_icon; /* console content icon */
unsigned height; /* Entry height */
unsigned position_y; /* Entry position Y */
uint8_t sublabel_lines; /* Entry sublabel lines */
bool wrap; /* Wrap entry? */
} ozone_node_t;
enum ozone_handle_flags
{
OZONE_FLAG_IS_DB_MANAGER_LIST = (1 << 0),
OZONE_FLAG_IS_EXPLORE_LIST = (1 << 1),
OZONE_FLAG_IS_CONTENTLESS_CORES = (1 << 2),
OZONE_FLAG_IS_FILE_LIST = (1 << 3),
OZONE_FLAG_IS_STATE_SLOT = (1 << 4),
OZONE_FLAG_WAS_QUICK_MENU = (1 << 5),
OZONE_FLAG_LIBRETRO_RUNNING = (1 << 6),
OZONE_FLAG_FIRST_FRAME = (1 << 7),
OZONE_FLAG_NEED_COMPUTE = (1 << 8),
OZONE_FLAG_DRAW_OLD_LIST = (1 << 9),
OZONE_FLAG_HAS_ALL_ASSETS = (1 << 10),
OZONE_FLAG_IS_PLAYLIST = (1 << 11),
OZONE_FLAG_IS_PLAYLIST_OLD = (1 << 12),
OZONE_FLAG_CURSOR_IN_SIDEBAR = (1 << 13),
OZONE_FLAG_CURSOR_IN_SIDEBAR_OLD = (1 << 14),
/* false = left to right, true = right to left */
OZONE_FLAG_FADE_DIRECTION = (1 << 15),
OZONE_FLAG_DRAW_SIDEBAR = (1 << 16),
OZONE_FLAG_EMPTY_PLAYLIST = (1 << 17),
/* true = display it, false = don't */
OZONE_FLAG_OSK_CURSOR = (1 << 18),
OZONE_FLAG_MSGBOX_STATE = (1 << 19),
OZONE_FLAG_MSGBOX_STATE_OLD = (1 << 20),
OZONE_FLAG_SHOULD_DRAW_MSGBOX = (1 << 21),
OZONE_FLAG_WANT_THUMBNAIL_BAR = (1 << 22),
OZONE_FLAG_SKIP_THUMBNAIL_RESET = (1 << 23),
OZONE_FLAG_FULLSCREEN_THUMBNAILS_AVAILABLE = (1 << 24),
OZONE_FLAG_PENDING_HIDE_THUMBNAIL_BAR = (1 << 25),
OZONE_FLAG_CURSOR_MODE = (1 << 26),
OZONE_FLAG_SHOW_CURSOR = (1 << 27),
OZONE_FLAG_SHOW_SCREENSAVER = (1 << 28),
OZONE_FLAG_NO_THUMBNAIL_AVAILABLE = (1 << 29),
OZONE_FLAG_FORCE_METADATA_DISPLAY = (1 << 30)
};
enum ozone_handle_flags2
{
OZONE_FLAG2_WANT_FULLSCREEN_THUMBNAILS = (1 << 0),
OZONE_FLAG2_SHOW_FULLSCREEN_THUMBNAILS = (1 << 1),
OZONE_FLAG2_SELECTION_CORE_IS_VIEWER = (1 << 2),
OZONE_FLAG2_SELECTION_CORE_IS_VIEWER_REAL = (1 << 3),
OZONE_FLAG2_POINTER_IN_SIDEBAR = (1 << 4),
OZONE_FLAG2_LAST_POINTER_IN_SIDEBAR = (1 << 5),
OZONE_FLAG2_CURSOR_WIGGLING = (1 << 6),
OZONE_FLAG2_LAST_USE_PREFERRED_SYSTEM_COLOR_THEME = (1 << 7),
OZONE_FLAG2_RESET_DEPTH = (1 << 8),
OZONE_FLAG2_PENDING_CURSOR_IN_SIDEBAR = (1 << 9),
OZONE_FLAG2_IS_QUICK_MENU = (1 << 10),
OZONE_FLAG2_IS_PLAYLISTS_TAB = (1 << 11),
OZONE_FLAG2_IGNORE_MISSING_ASSETS = (1 << 12),
OZONE_FLAG2_BLOCK_ANIMATION = (1 << 13)
};
struct ozone_handle
{
menu_input_pointer_t pointer; /* retro_time_t alignment */
ozone_theme_t *theme;
char *pending_message;
file_list_t selection_buf_old; /* ptr alignment */
file_list_t horizontal_list; /* console tabs */ /* ptr alignment */
/* Maps console tabs to playlist database names */
ozone_node_t **playlist_db_node_map;
menu_screensaver_t *screensaver;
struct
{
font_data_impl_t footer;
font_data_impl_t title;
font_data_impl_t time;
font_data_impl_t entries_label;
font_data_impl_t entries_sublabel;
font_data_impl_t sidebar;
} fonts;
size_t (*word_wrap)(
char *s, size_t len,
const char *src, size_t src_len,
int line_width, int wideglyph_width, unsigned max_lines);
struct
{
ozone_footer_label_t ok;
ozone_footer_label_t back;
ozone_footer_label_t scan;
ozone_footer_label_t clear_setting;
ozone_footer_label_t random_select;
ozone_footer_label_t search;
ozone_footer_label_t cycle_thumbnails;
ozone_footer_label_t fullscreen_thumbnails;
ozone_footer_label_t reset_to_default;
ozone_footer_label_t manage;
ozone_footer_label_t metadata_override;
ozone_footer_label_t help;
ozone_footer_label_t resume;
} footer_labels;
struct
{
gfx_thumbnail_t right; /* uintptr_t alignment */
gfx_thumbnail_t left; /* uintptr_t alignment */
gfx_thumbnail_t savestate;
float stream_delay;
enum ozone_pending_thumbnail_type pending;
} thumbnails;
uintptr_t textures[OZONE_THEME_TEXTURE_LAST];
uintptr_t icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_LAST];
uintptr_t tab_textures[OZONE_TAB_TEXTURE_LAST];
uintptr_t header_icon;
size_t categories_selection_ptr; /* active tab id */
size_t categories_active_idx_old;
size_t playlist_index;
size_t tab_selection[OZONE_TAB_MAX_LENGTH];
size_t selection; /* currently selected entry */
size_t selection_old; /* previously selected entry (for fancy animation) */
size_t selection_old_list;
size_t fullscreen_thumbnail_selection;
size_t num_search_terms_old;
size_t pointer_categories_selection;
size_t first_onscreen_entry;
size_t last_onscreen_entry;
size_t first_onscreen_category;
size_t last_onscreen_category;
int depth;
struct
{
int header_height;
int footer_height;
int entry_padding_horizontal_half;
int entry_padding_horizontal_full;
int entry_padding_vertical;
int entry_height;
int entry_spacing;
int entry_icon_size;
int entry_icon_padding;
int sidebar_width_normal;
int sidebar_width_collapsed;
int sidebar_padding_horizontal;
int sidebar_padding_vertical;
int sidebar_entry_padding_vertical;
int sidebar_entry_height;
int sidebar_entry_icon_size;
int sidebar_entry_icon_padding;
int sidebar_gradient_height;
int cursor_size;
int thumbnail_bar_width;
int fullscreen_thumbnail_padding;
int spacer_1px;
int spacer_2px;
int spacer_3px;
int spacer_5px;
} dimensions;
unsigned footer_labels_language;
unsigned last_width;
unsigned last_height;
unsigned entries_height;
unsigned theme_dynamic_cursor_state; /* 0 -> 1 -> 0 -> 1 [...] */
unsigned selection_core_name_lines;
unsigned old_list_offset_y;
unsigned draw_entry_delay;
uint32_t flags;
float dimensions_sidebar_width; /* animated field */
float sidebar_offset;
float last_scale_factor;
float last_thumbnail_scale_factor;
float last_padding_factor;
float last_font_scale_factor_global;
float last_font_scale_factor_title;
float last_font_scale_factor_sidebar;
float last_font_scale_factor_label;
float last_font_scale_factor_sublabel;
float last_font_scale_factor_time;
float last_font_scale_factor_footer;
float pure_white[16];
struct
{
float cursor_alpha;
float scroll_y;
float scroll_y_sidebar;
float alpha;
float list_alpha;
float messagebox_alpha;
float sidebar_text_alpha;
float thumbnail_bar_position;
float fullscreen_thumbnail_alpha;
float left_thumbnail_alpha;
} animations;
struct
{
float selection_border[16];
float selection[16];
float entries_border[16];
float entries_icon[16];
float entries_checkmark[16];
float cursor_alpha[16];
float cursor_border[16];
float message_background[16];
} theme_dynamic;
float scroll_old;
int16_t pointer_active_delta;
int16_t cursor_x_old;
int16_t cursor_y_old;
uint16_t flags2;
uint8_t selection_lastplayed_lines;
uint8_t system_tab_end;
uint8_t tabs[OZONE_SYSTEM_TAB_LAST];
uint8_t sidebar_index_list[SCROLL_INDEX_SIZE];
uint8_t sidebar_index_size;
char title[NAME_MAX_LENGTH];
char selection_core_name[NAME_MAX_LENGTH];
char selection_playtime[NAME_MAX_LENGTH];
char selection_lastplayed[NAME_MAX_LENGTH];
char selection_entry_enumeration[NAME_MAX_LENGTH];
char fullscreen_thumbnail_label[NAME_MAX_LENGTH];
char assets_path[PATH_MAX_LENGTH];
char png_path[PATH_MAX_LENGTH];
char icons_path[PATH_MAX_LENGTH];
char icons_path_default[PATH_MAX_LENGTH];
char tab_path[PATH_MAX_LENGTH];
/* These have to be huge, because runloop_st->name.savestate
* has a hard-coded size of (PATH_MAX_LENGTH * 2)... */
char savestate_thumbnail_file_path[(PATH_MAX_LENGTH * 2)];
char prev_savestate_thumbnail_file_path[(PATH_MAX_LENGTH * 2)];
char thumbnails_left_status_prev;
char thumbnails_right_status_prev;
bool show_thumbnail_bar;
bool show_playlist_tabs;
bool sidebar_collapsed;
bool font_unicode;
struct
{
retro_time_t start_time;
float amplitude;
enum menu_action direction;
} cursor_wiggle_state;
};
typedef struct ozone_handle ozone_handle_t;
static float ozone_sidebar_gradient_top_light[16] = {
0.94f, 0.94f, 0.94f, 1.00f,
0.94f, 0.94f, 0.94f, 1.00f,
0.922f, 0.922f, 0.922f, 1.00f,
0.922f, 0.922f, 0.922f, 1.00f,
};
static float ozone_sidebar_gradient_bottom_light[16] = {
0.922f, 0.922f, 0.922f, 1.00f,
0.922f, 0.922f, 0.922f, 1.00f,
0.94f, 0.94f, 0.94f, 1.00f,
0.94f, 0.94f, 0.94f, 1.00f,
};
static float ozone_sidebar_gradient_top_dark[16] = {
0.2f, 0.2f, 0.2f, 1.00f,
0.2f, 0.2f, 0.2f, 1.00f,
0.18f, 0.18f, 0.18f, 1.00f,
0.18f, 0.18f, 0.18f, 1.00f,
};
static float ozone_sidebar_gradient_bottom_dark[16] = {
0.18f, 0.18f, 0.18f, 1.00f,
0.18f, 0.18f, 0.18f, 1.00f,
0.2f, 0.2f, 0.2f, 1.00f,
0.2f, 0.2f, 0.2f, 1.00f,
};
static float ozone_sidebar_gradient_top_nord[16] = {
0.2078431f, 0.2352941f, 0.2901961f, 1.0f,
0.2078431f, 0.2352941f, 0.2901961f, 1.0f,
0.1921569f, 0.2196078f, 0.2705882f, 0.9f,
0.1921569f, 0.2196078f, 0.2705882f, 0.9f,
};
static float ozone_sidebar_gradient_bottom_nord[16] = {
0.1921569f, 0.2196078f, 0.2705882f, 0.9f,
0.1921569f, 0.2196078f, 0.2705882f, 0.9f,
0.2078431f, 0.2352941f, 0.2901961f, 1.0f,
0.2078431f, 0.2352941f, 0.2901961f, 1.0f,
};
static float ozone_sidebar_gradient_top_gruvbox_dark[16] = {
0.1960784f, 0.1882353f, 0.1843137f, 1.0f,
0.1960784f, 0.1882353f, 0.1843137f, 1.0f,
0.1686275f, 0.1686275f, 0.1686275f, 0.9f,
0.1686275f, 0.1686275f, 0.1686275f, 0.9f,
};
static float ozone_sidebar_gradient_bottom_gruvbox_dark[16] = {
0.1686275f, 0.1686275f, 0.1686275f, 0.9f,
0.1686275f, 0.1686275f, 0.1686275f, 0.9f,
0.1960784f, 0.1882353f, 0.1843137f, 1.0f,
0.1960784f, 0.1882353f, 0.1843137f, 1.0f,
};
static float ozone_sidebar_gradient_top_boysenberry[16] = {
0.27058823529f, 0.09803921568f, 0.14117647058f, 1.00f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 1.00f,
0.19215686274f, 0.0f, 0.04705882352f, 1.00f,
0.19215686274f, 0.0f, 0.04705882352f, 1.00f,
};
static float ozone_sidebar_gradient_bottom_boysenberry[16] = {
0.19215686274f, 0.0f, 0.04705882352f, 1.00f,
0.19215686274f, 0.0f, 0.04705882352f, 1.00f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 1.00f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 1.00f,
};
static float ozone_sidebar_gradient_top_hacking_the_kernel[16] = {
0.0f, 0.13333333f, 0.0f, 1.0f,
0.0f, 0.13333333f, 0.0f, 1.0f,
0.0f, 0.13333333f, 0.0f, 1.0f,
0.0f, 0.13333333f, 0.0f, 1.0f,
};
static float ozone_sidebar_gradient_bottom_hacking_the_kernel[16] = {
0.0f, 0.0666666f, 0.0f, 1.0f,
0.0f, 0.0666666f, 0.0f, 1.0f,
0.0f, 0.13333333f, 0.0f, 1.0f,
0.0f, 0.13333333f, 0.0f, 1.0f,
};
static float ozone_sidebar_gradient_top_twilight_zone[16] = {
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
};
static float ozone_sidebar_gradient_bottom_twilight_zone[16] = {
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
};
static float ozone_sidebar_gradient_top_dracula[16] = {
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
};
static float ozone_sidebar_gradient_bottom_dracula[16] = {
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
};
static float ozone_sidebar_gradient_top_evergarden[16] =
COLOR_HEX_TO_FLOAT(0x1C2225, 1.0f);
static float ozone_sidebar_gradient_bottom_evergarden[16] =
COLOR_HEX_TO_FLOAT(0x1C2225, 1.0f);
static float ozone_sidebar_gradient_top_selenium[16] = {
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
};
static float ozone_sidebar_gradient_top_solarized_dark[16] = {
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
};
static float ozone_sidebar_gradient_bottom_selenium[16] = {
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
};
static float ozone_sidebar_gradient_bottom_solarized_dark[16] = {
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
};
static float ozone_sidebar_gradient_top_solarized_light[16] = {
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
};
static float ozone_sidebar_gradient_bottom_solarized_light[16] = {
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
};
static float ozone_sidebar_background_gray_dark[16] =
COLOR_HEX_TO_FLOAT(0x101010, 0.0f);
static float ozone_sidebar_background_gray_light[16] =
COLOR_HEX_TO_FLOAT(0x202020, 0.0f);
static float ozone_sidebar_background_light[16] = {
0.94f, 0.94f, 0.94f, 1.00f,
0.94f, 0.94f, 0.94f, 1.00f,
0.94f, 0.94f, 0.94f, 1.00f,
0.94f, 0.94f, 0.94f, 1.00f,
};
static float ozone_sidebar_background_dark[16] = {
0.2f, 0.2f, 0.2f, 1.00f,
0.2f, 0.2f, 0.2f, 1.00f,
0.2f, 0.2f, 0.2f, 1.00f,
0.2f, 0.2f, 0.2f, 1.00f,
};
static float ozone_sidebar_background_nord[16] = {
0.2078431f, 0.2352941f, 0.2901961f, 1.0f,
0.2078431f, 0.2352941f, 0.2901961f, 1.0f,
0.2078431f, 0.2352941f, 0.2901961f, 1.0f,
0.2078431f, 0.2352941f, 0.2901961f, 1.0f,
};
static float ozone_sidebar_background_gruvbox_dark[16] = {
0.1960784f, 0.1882353f, 0.1843137f, 1.0f,
0.1960784f, 0.1882353f, 0.1843137f, 1.0f,
0.1960784f, 0.1882353f, 0.1843137f, 1.0f,
0.1960784f, 0.1882353f, 0.1843137f, 1.0f,
};
static float ozone_sidebar_background_boysenberry[16] = {
0.27058823529f, 0.09803921568f, 0.14117647058f, 1.00f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 1.00f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 1.00f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 1.00f,
};
static float ozone_sidebar_background_hacking_the_kernel[16] = {
0.0f, 0.1333333f, 0.0f, 1.0f,
0.0f, 0.1333333f, 0.0f, 1.0f,
0.0f, 0.1333333f, 0.0f, 1.0f,
0.0f, 0.1333333f, 0.0f, 1.0f,
};
static float ozone_sidebar_background_twilight_zone[16] = {
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
};
static float ozone_sidebar_background_dracula[16] = {
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
0.2666666f, 0.2784314f, 0.3529412f, 1.0f,
};
static float ozone_sidebar_background_evergarden[16] =
COLOR_HEX_TO_FLOAT(0x1C2225, 1.0f);
static float ozone_sidebar_background_selenium[16] = {
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
0.1019608f, 0.1019608f, 0.1019608f, 1.0f,
};
static float ozone_sidebar_background_solarized_dark[16] = {
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
};
static float ozone_sidebar_background_solarized_light[16] = {
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
1.0000000f, 1.0000000f, 0.9294118f, 1.0f,
};
static float ozone_sidebar_background_purple_rain[16] = {
0.0862745f, 0.0f, 0.1294117f, 1.0f,
0.0862745f, 0.0f, 0.1294117f, 1.0f,
0.0862745f, 0.0f, 0.1294117f, 1.0f,
0.0862745f, 0.0f, 0.1294117f, 1.0f,
};
static float ozone_background_libretro_running_gray_dark[16] =
COLOR_HEX_TO_FLOAT(0x101010, 1.0f);
static float ozone_background_libretro_running_gray_light[16] =
COLOR_HEX_TO_FLOAT(0x202020, 1.0f);
static float ozone_background_libretro_running_light[16] = {
0.690f, 0.690f, 0.690f, 0.75f,
0.690f, 0.690f, 0.690f, 0.75f,
0.922f, 0.922f, 0.922f, 1.0f,
0.922f, 0.922f, 0.922f, 1.0f
};
static float ozone_background_libretro_running_dark[16] = {
0.176f, 0.176f, 0.176f, 0.75f,
0.176f, 0.176f, 0.176f, 0.75f,
0.178f, 0.178f, 0.178f, 1.0f,
0.178f, 0.178f, 0.178f, 1.0f,
};
static float ozone_background_libretro_running_nord[16] = {
0.1803922f, 0.2039216f, 0.2509804f, 0.75f,
0.1803922f, 0.2039216f, 0.2509804f, 0.75f,
0.1803922f, 0.2039216f, 0.2509804f, 1.0f,
0.1803922f, 0.2039216f, 0.2509804f, 1.0f,
};
static float ozone_background_libretro_running_gruvbox_dark[16] = {
0.1568627f, 0.1568627f, 0.1568627f, 0.75f,
0.1568627f, 0.1568627f, 0.1568627f, 0.75f,
0.1568627f, 0.1568627f, 0.1568627f, 1.0f,
0.1568627f, 0.1568627f, 0.1568627f, 1.0f,
};
static float ozone_background_libretro_running_boysenberry[16] = {
0.27058823529f, 0.09803921568f, 0.14117647058f, 0.75f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 0.75f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 0.75f,
0.27058823529f, 0.09803921568f, 0.14117647058f, 0.75f,
};
static float ozone_background_libretro_running_hacking_the_kernel[16] = {
0.0f, 0.0666666f, 0.0f, 0.75f,
0.0f, 0.0666666f, 0.0f, 0.75f,
0.0f, 0.0666666f, 0.0f, 1.0f,
0.0f, 0.0666666f, 0.0f, 1.0f,
};
static float ozone_background_libretro_running_twilight_zone[16] = {
0.0078431f, 0.0f, 0.0156862f, 0.75f,
0.0078431f, 0.0f, 0.0156862f, 0.75f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
0.0078431f, 0.0f, 0.0156862f, 1.0f,
};
static float ozone_background_libretro_running_dracula[16] = {
0.1568627f, 0.1647058f, 0.2117647f, 0.75f,
0.1568627f, 0.1647058f, 0.2117647f, 0.75f,
0.1568627f, 0.1647058f, 0.2117647f, 1.0f,
0.1568627f, 0.1647058f, 0.2117647f, 1.0f,
};
static float ozone_background_libretro_running_evergarden[16] = {
0.1568627f, 0.1647058f, 0.2117647f, 0.75f,
0.1568627f, 0.1647058f, 0.2117647f, 0.75f,
0.1568627f, 0.1647058f, 0.2117647f, 1.0f,
0.1568627f, 0.1647058f, 0.2117647f, 1.0f,
};
static float ozone_background_libretro_running_selenium[16] = {
0.1647059f, 0.1647059f, 0.1647059f, 1.0f,
0.1647059f, 0.1647059f, 0.1647059f, 1.0f,
0.1647059f, 0.1647059f, 0.1647059f, 1.0f,
0.1647059f, 0.1647059f, 0.1647059f, 1.0f,
};
static float ozone_background_libretro_running_solarized_dark[16] = {
0.0000000f, 0.1294118f, 0.1725490f, .85f,
0.0000000f, 0.1294118f, 0.1725490f, .85f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
0.0000000f, 0.1294118f, 0.1725490f, 1.0f,
};