[Scummvm-git-logs] scummvm branch-2-8 -> 079dca873df5c3433bb73bd534532c08576982ef

ccawley2011 noreply at scummvm.org
Tue Mar 5 22:53:20 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:
079dca873d DS: Disable stdio buffering from newlib


Commit: 079dca873df5c3433bb73bd534532c08576982ef
    https://github.com/scummvm/scummvm/commit/079dca873df5c3433bb73bd534532c08576982ef
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2024-03-05T22:53:13Z

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