mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-05 01:45:05 +01:00
365d8c57c7
Placing the array wholesale into the header places a copy of the whole array into every translation unit that uses the data, which is wasteful. Particularly given that this array is referenced from three different translation units. This also changes the array to contain pairs of const char*, rather than QString instances. This way, the string data is able to be fixed into the read-only segment of the program, as well as eliminate static constructors/heap allocation immediately on program start.
19 lines
380 B
C++
19 lines
380 B
C++
// Copyright 2016 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "ui_settings.h"
|
|
|
|
namespace UISettings {
|
|
|
|
const Themes themes{{
|
|
{"Default", "default"},
|
|
{"Dark", "qdarkstyle"},
|
|
{"Colorful", "colorful"},
|
|
{"Colorful Dark", "colorful_dark"},
|
|
}};
|
|
|
|
Values values = {};
|
|
|
|
} // namespace UISettings
|