Codechange: split settings.ini over several files (#9421)
This reduced the load on compilers, as currently for example MacOS doesn't like the huge settings-tables. Additionally, nobody can find settings, as the list is massive and unordered. By splitting it, it becomes a little bit more sensible.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "../linkgraph/linkgraphschedule.h"
|
||||
#include "../network/network.h"
|
||||
#include "../settings_internal.h"
|
||||
#include "../settings_table.h"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
@@ -165,7 +166,6 @@ public:
|
||||
SaveLoadTable GetLinkGraphJobDesc()
|
||||
{
|
||||
static std::vector<SaveLoad> saveloads;
|
||||
static const char *prefix = "linkgraph.";
|
||||
|
||||
static const SaveLoad job_desc[] = {
|
||||
SLE_VAR(LinkGraphJob, join_date, SLE_INT32),
|
||||
@@ -184,7 +184,7 @@ SaveLoadTable GetLinkGraphJobDesc()
|
||||
|
||||
/* Build the SaveLoad array on first call and don't touch it later on */
|
||||
if (saveloads.size() == 0) {
|
||||
GetSettingSaveLoadByPrefix(prefix, saveloads);
|
||||
GetSaveLoadFromSettingTable(_linkgraph_settings, saveloads);
|
||||
|
||||
for (auto &sl : saveloads) {
|
||||
sl.address_proc = proc;
|
||||
|
Reference in New Issue
Block a user