summaryrefslogtreecommitdiff
path: root/src/ini_type.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-06 21:11:42 +0100
committerMichael Lutz <michi@icosahedron.de>2020-12-27 13:19:25 +0100
commitdd138fc460dcbab37452e90ff070a31516994aa2 (patch)
tree170edd04094e997abe891858a8e4753071983fee /src/ini_type.h
parent860c270c73048b4930ac8cbebcd60be746eb9782 (diff)
downloadopenttd-dd138fc460dcbab37452e90ff070a31516994aa2.tar.xz
Codechange: Stringify config file paths.
Diffstat (limited to 'src/ini_type.h')
-rw-r--r--src/ini_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ini_type.h b/src/ini_type.h
index b5f8398d9..163717450 100644
--- a/src/ini_type.h
+++ b/src/ini_type.h
@@ -64,7 +64,7 @@ struct IniLoadFile {
IniGroup *GetGroup(const std::string &name, bool create_new = true);
void RemoveGroup(const char *name);
- void LoadFromDisk(const char *filename, Subdirectory subdir);
+ void LoadFromDisk(const std::string &filename, Subdirectory subdir);
/**
* Open the INI file.
@@ -88,7 +88,7 @@ struct IniLoadFile {
struct IniFile : IniLoadFile {
IniFile(const char * const *list_group_names = nullptr);
- bool SaveToDisk(const char *filename);
+ bool SaveToDisk(const std::string &filename);
virtual FILE *OpenFile(const char *filename, Subdirectory subdir, size_t *size);
virtual void ReportFileError(const char * const pre, const char * const buffer, const char * const post);