mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-19 08:52:10 +00:00
Compilation fix 3
This commit is contained in:
parent
12f4f35cfa
commit
851ae920b9
3 changed files with 4 additions and 5 deletions
|
@ -24,7 +24,6 @@ void strcpy_trunc(char (&dst)[size], const std::string& src)
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <stat.h>
|
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
|
@ -512,10 +512,9 @@ void Emulator::SavePoints(const std::string& path)
|
||||||
|
|
||||||
void Emulator::LoadPoints(const std::string& path)
|
void Emulator::LoadPoints(const std::string& path)
|
||||||
{
|
{
|
||||||
if (!rExists(path)) return;
|
struct stat buf;
|
||||||
//struct stat buf;
|
if (!stat(path.c_str(), &buf))
|
||||||
//if (!stat(path.c_str(), &buf))
|
return;
|
||||||
//return;
|
|
||||||
std::ifstream f(path, std::ios::binary);
|
std::ifstream f(path, std::ios::binary);
|
||||||
if (!f.is_open())
|
if (!f.is_open())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include <sys/stat.h>
|
||||||
#include "Utilities/GNU.h"
|
#include "Utilities/GNU.h"
|
||||||
|
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue