summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/NandPaths.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/NandPaths.cpp')
-rw-r--r--Source/Core/Common/Src/NandPaths.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/NandPaths.cpp b/Source/Core/Common/Src/NandPaths.cpp
index cec79414a7..eb0673afe0 100644
--- a/Source/Core/Common/Src/NandPaths.cpp
+++ b/Source/Core/Common/Src/NandPaths.cpp
@@ -86,7 +86,8 @@ bool CheckTitleTIK(u64 _titleID)
static void CreateReplacementFile(std::string &filename)
{
- std::ofstream replace(filename.c_str());
+ std::ofstream replace;
+ OpenFStream(replace, filename, std::ios_base::out);
replace <<"\" __22__\n";
replace << "* __2a__\n";
//replace << "/ __2f__\n";
@@ -108,7 +109,8 @@ void ReadReplacements(replace_v& replacements)
if (!File::Exists(filename))
CreateReplacementFile(filename);
- std::ifstream f(filename.c_str());
+ std::ifstream f;
+ OpenFStream(f, filename, std::ios_base::in);
char letter;
std::string replacement;