Merge branch 'master' into jgrpp
# Conflicts: # cmake/CompileFlags.cmake # src/crashlog.cpp # src/fileio.cpp # src/fileio_func.h # src/fios_gui.cpp # src/ini_load.cpp # src/ini_type.h # src/lang/english.txt # src/lang/german.txt # src/lang/korean.txt # src/network/network_client.cpp # src/order_base.h # src/order_cmd.cpp # src/os/windows/win32.cpp # src/road_cmd.cpp # src/saveload/saveload.cpp # src/saveload/saveload.h # src/settings.cpp # src/station_cmd.cpp # src/stdafx.h # src/table/settings.ini # src/tree_cmd.cpp # src/tree_gui.cpp # src/vehicle_base.h # src/video/cocoa/cocoa_v.mm # src/video/cocoa/event.mm # src/video/cocoa/wnd_quartz.mm # src/viewport.cpp # src/widgets/tree_widget.h
This commit is contained in:
@@ -89,7 +89,6 @@ GRFConfig::~GRFConfig()
|
||||
free(this->filename);
|
||||
delete this->error;
|
||||
}
|
||||
free(this->full_filename);
|
||||
|
||||
for (uint i = 0; i < this->param_info.size(); i++) delete this->param_info[i];
|
||||
}
|
||||
@@ -683,7 +682,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename) override;
|
||||
bool AddFile(const std::string &filename, size_t basepath_length, const std::string &tar_filename) override;
|
||||
|
||||
/** Do the scan for GRFs. */
|
||||
static uint DoScan()
|
||||
@@ -731,9 +730,9 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
bool GRFFileScanner::AddFile(const char *filename, size_t basepath_length, const char *tar_filename)
|
||||
bool GRFFileScanner::AddFile(const std::string &filename, size_t basepath_length, const std::string &tar_filename)
|
||||
{
|
||||
GRFConfig *c = new GRFConfig(filename + basepath_length);
|
||||
GRFConfig *c = new GRFConfig(filename.c_str() + basepath_length);
|
||||
|
||||
bool added = FillGRFDetails(c, false);
|
||||
if (added) {
|
||||
|
Reference in New Issue
Block a user