Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
mupen64plus-libretro-nx
Commits
7280cc27
Commit
7280cc27
authored
Aug 11, 2021
by
m4xw
Browse files
Initial new core option categorization and ordering
parent
c26cba3f
Pipeline
#50983
passed with stages
in 13 minutes and 49 seconds
Changes
3
Pipelines
32
Expand all
Hide whitespace changes
Inline
Side-by-side
custom/mupen64plus-next_common.h
View file @
7280cc27
...
...
@@ -83,6 +83,8 @@ extern void gln64_thr_gl_invoke_command_loop();
extern
bool
threaded_gl_safe_shutdown
;
// Core options
extern
uint32_t
CoreOptionVersion
;
extern
uint32_t
CoreOptionCategoriesSupported
;
// GLN64
extern
uint32_t
bilinearMode
;
extern
uint32_t
EnableHybridFilter
;
...
...
libretro/libretro.c
View file @
7280cc27
...
...
@@ -156,6 +156,8 @@ char* retro_dd_path_rom = NULL;
char
*
retro_transferpak_rom_path
=
NULL
;
char
*
retro_transferpak_ram_path
=
NULL
;
uint32_t
CoreOptionVersion
=
0
;
uint32_t
CoreOptionCategoriesSupported
=
0
;
uint32_t
bilinearMode
=
0
;
uint32_t
EnableHybridFilter
=
0
;
uint32_t
EnableDitheringPattern
=
0
;
...
...
@@ -252,10 +254,11 @@ static void setup_variables(void)
{
0
,
0
}
};
libretro_set_core_options
(
environ_cb
);
libretro_set_core_options
(
environ_cb
,
(
bool
*
)
&
CoreOptionCategoriesSupported
);
environ_cb
(
RETRO_ENVIRONMENT_SET_CONTROLLER_INFO
,
(
void
*
)
ports
);
}
// Deprecated with Core Option Categories
static
void
set_variable_visibility
(
void
)
{
// For simplicity we create a prepared var per plugin, maybe create a macro for this?
...
...
@@ -1658,7 +1661,10 @@ static void update_variables(bool startup)
#endif // HAVE_THR_AL
update_controllers
();
set_variable_visibility
();
// Compat hiding of options
if
(
!
CoreOptionCategoriesSupported
)
set_variable_visibility
();
}
static
void
format_saved_memory
(
void
)
...
...
libretro/libretro_core_options.h
View file @
7280cc27
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment