mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
Codechange: Ini(Load|Save)WindowSettings expect a WindowDesc*, no void*. (#14029)
This commit is contained in:
@@ -878,7 +878,7 @@ static void IniSaveSettingList(IniFile &ini, const char *grpname, StringList &li
|
||||
* @param grpname character string identifying the section-header of the ini file that will be parsed
|
||||
* @param desc Destination WindowDesc
|
||||
*/
|
||||
void IniLoadWindowSettings(IniFile &ini, const char *grpname, void *desc)
|
||||
void IniLoadWindowSettings(IniFile &ini, const char *grpname, WindowDesc *desc)
|
||||
{
|
||||
IniLoadSettings(ini, _window_settings, grpname, desc, false);
|
||||
}
|
||||
@@ -889,7 +889,7 @@ void IniLoadWindowSettings(IniFile &ini, const char *grpname, void *desc)
|
||||
* @param grpname character string identifying the section-header of the ini file
|
||||
* @param desc Source WindowDesc
|
||||
*/
|
||||
void IniSaveWindowSettings(IniFile &ini, const char *grpname, void *desc)
|
||||
void IniSaveWindowSettings(IniFile &ini, const char *grpname, WindowDesc *desc)
|
||||
{
|
||||
IniSaveSettings(ini, _window_settings, grpname, desc, false);
|
||||
}
|
||||
|
@@ -15,6 +15,7 @@
|
||||
#include "newgrf_config.h"
|
||||
|
||||
struct IniFile;
|
||||
struct WindowDesc;
|
||||
|
||||
void IConsoleSetSetting(const char *name, const char *value, bool force_newgame = false);
|
||||
void IConsoleSetSetting(const char *name, int32_t value);
|
||||
@@ -24,8 +25,8 @@ void IConsoleListSettings(const char *prefilter);
|
||||
void LoadFromConfig(bool minimal = false);
|
||||
void SaveToConfig();
|
||||
|
||||
void IniLoadWindowSettings(IniFile &ini, const char *grpname, void *desc);
|
||||
void IniSaveWindowSettings(IniFile &ini, const char *grpname, void *desc);
|
||||
void IniLoadWindowSettings(IniFile &ini, const char *grpname, WindowDesc *desc);
|
||||
void IniSaveWindowSettings(IniFile &ini, const char *grpname, WindowDesc *desc);
|
||||
|
||||
StringList GetGRFPresetList();
|
||||
GRFConfigList LoadGRFPresetFromConfig(const char *config_name);
|
||||
|
Reference in New Issue
Block a user