aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Cawley2019-11-03 22:43:08 +0000
committerDavid Turner2019-11-30 20:50:27 +0000
commit1af858466684d0e7c4f23389a5433aa8741592fa (patch)
tree39c429d0deb13b1853509834ad3e64aecf57b7e5
parent00fecbb6e638a943c6f45cca84986ba38803ad91 (diff)
downloadscummvm-rg350-1af858466684d0e7c4f23389a5433aa8741592fa.tar.gz
scummvm-rg350-1af858466684d0e7c4f23389a5433aa8741592fa.tar.bz2
scummvm-rg350-1af858466684d0e7c4f23389a5433aa8741592fa.zip
GPH/OPENPANDORA: Remove unnecessary stat() calls
Since commit 04c57ba, this should no longer be necessary.
-rw-r--r--backends/platform/gph/gph-backend.cpp11
-rw-r--r--backends/platform/openpandora/op-backend.cpp11
2 files changed, 0 insertions, 22 deletions
diff --git a/backends/platform/gph/gph-backend.cpp b/backends/platform/gph/gph-backend.cpp
index 96f42627b5..3a5180149f 100644
--- a/backends/platform/gph/gph-backend.cpp
+++ b/backends/platform/gph/gph-backend.cpp
@@ -43,13 +43,8 @@
#include "audio/mixer_intern.h"
-#include <stdio.h>
-#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <time.h> // for getTimeAndDate()
/* Dump console info to files. */
#define DUMP_STDOUT
@@ -77,12 +72,6 @@ void OSystem_GPH::initBackend() {
strcpy(savePath, workDirName);
strcat(savePath, "/saves");
printf("Current save directory: %s\n", savePath);
- struct stat sb;
- if (stat(savePath, &sb) == -1)
- if (errno == ENOENT) // Create the dir if it does not exist
- if (mkdir(savePath, 0755) != 0)
- warning("mkdir for '%s' failed!", savePath);
-
_savefileManager = new DefaultSaveFileManager(savePath);
#ifdef DUMP_STDOUT
diff --git a/backends/platform/openpandora/op-backend.cpp b/backends/platform/openpandora/op-backend.cpp
index 0d81ef8755..1d620ff73b 100644
--- a/backends/platform/openpandora/op-backend.cpp
+++ b/backends/platform/openpandora/op-backend.cpp
@@ -42,13 +42,8 @@
#include "audio/mixer_intern.h"
-#include <stdio.h>
-#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <time.h> // for getTimeAndDate()
/* Dump console info to files. */
#define DUMP_STDOUT
@@ -76,12 +71,6 @@ void OSystem_OP::initBackend() {
strcpy(savePath, workDirName);
strcat(savePath, "/../saves");
printf("Current save directory: %s\n", savePath);
- struct stat sb;
- if (stat(savePath, &sb) == -1)
- if (errno == ENOENT) // Create the dir if it does not exist
- if (mkdir(savePath, 0755) != 0)
- warning("mkdir for '%s' failed!", savePath);
-
_savefileManager = new DefaultSaveFileManager(savePath);
#ifdef DUMP_STDOUT