mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-13 20:05:52 +00:00
CGameOptions: Mark GameOptionsRegistry as constexpr
Same behavior but eliminates potential runtime initializers.
This commit is contained in:
parent
d5e57b5348
commit
3c9fef492a
@ -49,7 +49,7 @@ constexpr std::array<SGameOption, 4> ControllerOpts{{
|
||||
{EGameOption::RestoreDefaults, 35, 0.f, 1.f, 1.f, EOptionType::RestoreDefaults},
|
||||
}};
|
||||
|
||||
const std::array<std::pair<size_t, const SGameOption*>, 5> GameOptionsRegistry{{
|
||||
constexpr std::array<std::pair<size_t, const SGameOption*>, 5> GameOptionsRegistry{{
|
||||
{VisorOpts.size(), VisorOpts.data()},
|
||||
{DisplayOpts.size(), DisplayOpts.data()},
|
||||
{SoundOpts.size(), SoundOpts.data()},
|
||||
|
Loading…
x
Reference in New Issue
Block a user