Codechange: Use std::vector for GRFConfig lists. (#10835)
This replaces the C-style custom managed linked-list and allows use of iterators etc.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "company_type.h"
|
||||
#include "string_type.h"
|
||||
#include "newgrf_config.h"
|
||||
|
||||
struct IniFile;
|
||||
|
||||
@@ -27,8 +28,8 @@ void IniLoadWindowSettings(IniFile &ini, const char *grpname, void *desc);
|
||||
void IniSaveWindowSettings(IniFile &ini, const char *grpname, void *desc);
|
||||
|
||||
StringList GetGRFPresetList();
|
||||
struct GRFConfig *LoadGRFPresetFromConfig(const char *config_name);
|
||||
void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config);
|
||||
GRFConfigList LoadGRFPresetFromConfig(const char *config_name);
|
||||
void SaveGRFPresetToConfig(const char *config_name, GRFConfigList &config);
|
||||
void DeleteGRFPresetFromConfig(const char *config_name);
|
||||
|
||||
void SetDefaultCompanySettings(CompanyID cid);
|
||||
|
||||
Reference in New Issue
Block a user