From 851ae920b9346b6c67f06f224047f522a40df0d2 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 29 Aug 2014 16:27:25 +0400 Subject: [PATCH] Compilation fix 3 --- Utilities/GNU.h | 1 - rpcs3/Emu/System.cpp | 7 +++---- rpcs3/stdafx.h | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Utilities/GNU.h b/Utilities/GNU.h index 0546d664af..4087004e4f 100644 --- a/Utilities/GNU.h +++ b/Utilities/GNU.h @@ -24,7 +24,6 @@ void strcpy_trunc(char (&dst)[size], const std::string& src) #include #include #include -#include #ifndef __APPLE__ #include diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index c7983a224a..09d02891f1 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -512,10 +512,9 @@ void Emulator::SavePoints(const std::string& path) void Emulator::LoadPoints(const std::string& path) { - if (!rExists(path)) return; - //struct stat buf; - //if (!stat(path.c_str(), &buf)) - //return; + struct stat buf; + if (!stat(path.c_str(), &buf)) + return; std::ifstream f(path, std::ios::binary); if (!f.is_open()) return; diff --git a/rpcs3/stdafx.h b/rpcs3/stdafx.h index 232bfd704c..fdac429bb2 100644 --- a/rpcs3/stdafx.h +++ b/rpcs3/stdafx.h @@ -32,6 +32,7 @@ #include #include +#include #include "Utilities/GNU.h" typedef unsigned int uint;