[Scummvm-git-logs] scummvm master -> 5fdb5edd20cf90ccd1b52362d2048f4dc3321c5c

ccawley2011 noreply at scummvm.org
Tue Mar 5 22:48:49 UTC 2024


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:
5fdb5edd20 DS: Disable stdio buffering from newlib


Commit: 5fdb5edd20cf90ccd1b52362d2048f4dc3321c5c
    https://github.com/scummvm/scummvm/commit/5fdb5edd20cf90ccd1b52362d2048f4dc3321c5c
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2024-03-05T22:47:35Z

Commit Message:
DS: Disable stdio buffering from newlib

Changed paths:
    backends/platform/ds/osystem_ds.cpp


diff --git a/backends/platform/ds/osystem_ds.cpp b/backends/platform/ds/osystem_ds.cpp
index 4f8ee2bc1de..390b21d6e89 100644
--- a/backends/platform/ds/osystem_ds.cpp
+++ b/backends/platform/ds/osystem_ds.cpp
@@ -55,6 +55,14 @@ OSystem_DS::OSystem_DS()
 
 	nitroFSInit(NULL);
 	_fsFactory = new DevoptabFilesystemFactory();
+
+	DevoptabFilesystemFactory *fsFactory = new DevoptabFilesystemFactory();
+
+	// Disable newlib's buffering, since libfat handles caching.
+	fsFactory->configureBuffering(DrivePOSIXFilesystemNode::kBufferingModeDisabled, 0);
+
+	_fsFactory = fsFactory;
+
 }
 
 OSystem_DS::~OSystem_DS() {




More information about the Scummvm-git-logs mailing list