aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorCameron Cawley2017-09-14 17:40:22 +0100
committerEugene Sandulenko2017-10-01 20:19:42 +0200
commit51949bbc9e7cefc539cff4316f0726636192dfc9 (patch)
treeb823a3f8cde2a2a4b298b5ff601f1b4f3f4ef07c /backends/platform
parentd75dab4e55f15133eaef3c25f616e04566427101 (diff)
downloadscummvm-rg350-51949bbc9e7cefc539cff4316f0726636192dfc9.tar.gz
scummvm-rg350-51949bbc9e7cefc539cff4316f0726636192dfc9.tar.bz2
scummvm-rg350-51949bbc9e7cefc539cff4316f0726636192dfc9.zip
RISCOS: Add RISC OS filesystem
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/riscos/riscos.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/backends/platform/sdl/riscos/riscos.cpp b/backends/platform/sdl/riscos/riscos.cpp
index 08609396f1..0cdbceb902 100644
--- a/backends/platform/sdl/riscos/riscos.cpp
+++ b/backends/platform/sdl/riscos/riscos.cpp
@@ -20,16 +20,14 @@
*
*/
-#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
-
#include "common/scummsys.h"
#ifdef RISCOS
#include "backends/platform/sdl/riscos/riscos.h"
#include "backends/saves/default/default-saves.h"
-#include "backends/fs/posix/posix-fs-factory.h"
-#include "backends/fs/posix/posix-fs.h"
+#include "backends/fs/riscos/riscos-fs-factory.h"
+#include "backends/fs/riscos/riscos-fs.h"
#include <kernel.h>
#include <swis.h>
@@ -40,7 +38,7 @@
void OSystem_RISCOS::init() {
// Initialze File System Factory
- _fsFactory = new POSIXFilesystemFactory();
+ _fsFactory = new RISCOSFilesystemFactory();
// Invoke parent implementation of this method
OSystem_SDL::init();
@@ -50,7 +48,7 @@ void OSystem_RISCOS::initBackend() {
// Create the savefile manager
if (_savefileManager == 0) {
Common::String savePath = "/<Choices$Write>/ScummVM/Saves";
- if (Posix::assureDirectoryExists(savePath))
+ if (Riscos::assureDirectoryExists(savePath))
_savefileManager = new DefaultSaveFileManager(savePath);
}
@@ -89,7 +87,7 @@ Common::WriteStream *OSystem_RISCOS::createLogFile() {
Common::String logFile = "/<Choices$Write>/ScummVM/Logs";
- if (!Posix::assureDirectoryExists(logFile)) {
+ if (!Riscos::assureDirectoryExists(logFile)) {
return 0;
}