mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-10-06 19:16:31 +02:00
Fix warnings in core and common
This commit is contained in:
1 parent
ee7cfc71bd
commit
ca2f0de08a
5 files changed
+7
-17
No files matched your search
@@ -763,12 +763,12 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string &new
|
||||
// return dir;
|
||||
//}
|
||||
|
||||
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)
|
||||
{
|
||||
return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size());
|
||||
}
|
||||
|
||||
bool ReadFileToString(bool text_file, const char *filename, std::string &str)
|
||||
size_t ReadFileToString(bool text_file, const char *filename, std::string &str)
|
||||
{
|
||||
FileUtil::IOFile file(filename, text_file ? "r" : "rb");
|
||||
auto const f = file.GetHandle();
|
||||
|
||||
Reference in new issue
Block a user