diff --git a/src/ccutil/genericvector.h b/src/ccutil/genericvector.h index d97630af..49c389b1 100644 --- a/src/ccutil/genericvector.h +++ b/src/ccutil/genericvector.h @@ -28,6 +28,7 @@ #include "helpers.h" #include "serialis.h" +#include "strngs.h" #include "tesscallback.h" // Use PointerVector below in preference to GenericVector, as that @@ -390,11 +391,16 @@ inline bool LoadDataFromFile(const char* filename, GenericVector* data) { return result; } +inline bool LoadDataFromFile(const STRING& filename, + GenericVector* data) { + return LoadDataFromFile(filename.string(), data); +} + // The default FileWriter writes the vector of char to the filename file, // returning false on error. inline bool SaveDataToFile(const GenericVector& data, - const char* filename) { - FILE* fp = fopen(filename, "wb"); + const STRING& filename) { + FILE* fp = fopen(filename.string(), "wb"); if (fp == nullptr) { return false; }