From f09ceaa735080b8cde5f9102e7f061530d9b474e Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 15 Jan 2017 21:46:32 +0100 Subject: Move IOFile to a separate file Reduces the number of files that need to be recompiled when making changes to FileUtil.h. --- Source/Core/VideoCommon/ImageWrite.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/VideoCommon/ImageWrite.cpp') diff --git a/Source/Core/VideoCommon/ImageWrite.cpp b/Source/Core/VideoCommon/ImageWrite.cpp index e7930a18c6..f944a37fb8 100644 --- a/Source/Core/VideoCommon/ImageWrite.cpp +++ b/Source/Core/VideoCommon/ImageWrite.cpp @@ -7,6 +7,7 @@ #include #include "Common/CommonTypes.h" +#include "Common/File.h" #include "Common/FileUtil.h" #include "Common/MsgHandler.h" #include "VideoCommon/ImageWrite.h" -- cgit v1.2.3 From cf94ce63051458a2d8ac8b340a1020b863f1a6dd Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 15 Jan 2017 22:46:43 +0100 Subject: Add a namespace to OpenFStream For consistency with the other functions in FileUtil.h. --- Source/Core/VideoCommon/ImageWrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/ImageWrite.cpp') diff --git a/Source/Core/VideoCommon/ImageWrite.cpp b/Source/Core/VideoCommon/ImageWrite.cpp index f944a37fb8..585ba5e13b 100644 --- a/Source/Core/VideoCommon/ImageWrite.cpp +++ b/Source/Core/VideoCommon/ImageWrite.cpp @@ -16,7 +16,7 @@ bool SaveData(const std::string& filename, const std::string& data) { std::ofstream f; - OpenFStream(f, filename, std::ios::binary); + File::OpenFStream(f, filename, std::ios::binary); f << data; return true; -- cgit v1.2.3