|
|
@ -6,9 +6,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <fstream>
|
|
|
|
#include <fstream>
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
#include <cstring>
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "common/common.h"
|
|
|
|
#include "common/common.h"
|
|
|
|
#include "common/string_util.h"
|
|
|
|
#include "common/string_util.h"
|
|
|
@ -128,8 +128,8 @@ std::string GetBundleDirectory();
|
|
|
|
std::string &GetExeDirectory();
|
|
|
|
std::string &GetExeDirectory();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
bool WriteStringToFile(bool text_file, const std::string &str, const char *filename);
|
|
|
|
size_t WriteStringToFile(bool text_file, const std::string &str, const char *filename);
|
|
|
|
bool ReadFileToString(bool text_file, const char *filename, std::string &str);
|
|
|
|
size_t ReadFileToString(bool text_file, const char *filename, std::string &str);
|
|
|
|
|
|
|
|
|
|
|
|
// simple wrapper for cstdlib file functions to
|
|
|
|
// simple wrapper for cstdlib file functions to
|
|
|
|
// hopefully will make error checking easier
|
|
|
|
// hopefully will make error checking easier
|
|
|
|