mirror of https://github.com/AxioDL/metaforce.git
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},
|
{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()},
|
{VisorOpts.size(), VisorOpts.data()},
|
||||||
{DisplayOpts.size(), DisplayOpts.data()},
|
{DisplayOpts.size(), DisplayOpts.data()},
|
||||||
{SoundOpts.size(), SoundOpts.data()},
|
{SoundOpts.size(), SoundOpts.data()},
|
||||||
|
|
Loading…
Reference in New Issue