From 79536ddb111642ebb8dc450fe54b409591ebba2b Mon Sep 17 00:00:00 2001 From: Mat M Date: Mon, 4 May 2020 06:21:56 -0400 Subject: [PATCH] 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. --- src/core/hle/service/cfg/cfg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index a7be7d277..924c28395 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include +#include #include #include #include @@ -126,7 +127,7 @@ static const std::array STEREO_CAMERA_SETTINGS = { static_assert(sizeof(STEREO_CAMERA_SETTINGS) == 0x20, "STEREO_CAMERA_SETTINGS must be exactly 0x20 bytes"); -static const std::vector cfg_system_savedata_id = { +constexpr std::array cfg_system_savedata_id{ 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x01, 0x00, };