mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01:00
service/cfg: Convert file-scope std::vector to std::array (#5320)
Same behavior, but without a static runtime constructor that needs to run at program start.
This commit is contained in:
parent
30414eeb4b
commit
79536ddb11
@ -3,6 +3,7 @@
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <tuple>
|
||||
#include <boost/serialization/array.hpp>
|
||||
#include <boost/serialization/unique_ptr.hpp>
|
||||
@ -126,7 +127,7 @@ static const std::array<float, 8> STEREO_CAMERA_SETTINGS = {
|
||||
static_assert(sizeof(STEREO_CAMERA_SETTINGS) == 0x20,
|
||||
"STEREO_CAMERA_SETTINGS must be exactly 0x20 bytes");
|
||||
|
||||
static const std::vector<u8> cfg_system_savedata_id = {
|
||||
constexpr std::array<u8, 8> cfg_system_savedata_id{
|
||||
0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x01, 0x00,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user