[Scummvm-git-logs] scummvm master -> 16d0687b66dc3d6996dc26fb8adf28af08b20fbd
rsn8887
rsn8887 at users.noreply.github.com
Mon Mar 16 19:53:13 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
16d0687b66 SWITCH: Use ScummVM file buffering instead of newlib's implementation
Commit: 16d0687b66dc3d6996dc26fb8adf28af08b20fbd
https://github.com/scummvm/scummvm/commit/16d0687b66dc3d6996dc26fb8adf28af08b20fbd
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2020-03-16T14:53:09-05:00
Commit Message:
SWITCH: Use ScummVM file buffering instead of newlib's implementation
Fixes #11384.
Changed paths:
backends/platform/sdl/switch/switch.cpp
diff --git a/backends/platform/sdl/switch/switch.cpp b/backends/platform/sdl/switch/switch.cpp
index ba30f77ec9..df1f04d58e 100644
--- a/backends/platform/sdl/switch/switch.cpp
+++ b/backends/platform/sdl/switch/switch.cpp
@@ -28,8 +28,8 @@
#include "backends/platform/sdl/switch/switch.h"
#include "backends/events/switchsdl/switchsdl-events.h"
#include "backends/saves/posix/posix-saves.h"
-#include "backends/fs/posix/posix-fs-factory.h"
-#include "backends/fs/posix/posix-fs.h"
+#include "backends/fs/posix-drives/posix-drives-fs-factory.h"
+#include "backends/fs/posix-drives/posix-drives-fs.h"
#include "backends/keymapper/hardware-input.h"
static const Common::HardwareInputTableEntry switchJoystickButtons[] = {
@@ -62,8 +62,11 @@ static const Common::AxisTableEntry switchJoystickAxes[] = {
void OSystem_Switch::init() {
- // Initialze File System Factory
- _fsFactory = new POSIXFilesystemFactory();
+ DrivesPOSIXFilesystemFactory *fsFactory = new DrivesPOSIXFilesystemFactory();
+ fsFactory->addDrive("sdmc:");
+ fsFactory->configureBuffering(DrivePOSIXFilesystemNode::kBufferingModeScummVM, 2048);
+
+ _fsFactory = fsFactory;
// Invoke parent implementation of this method
OSystem_SDL::init();
More information about the Scummvm-git-logs
mailing list