[Scummvm-git-logs] scummvm master -> 0644ad9e9ae5d3ce3e71d49ee9ca9515f6c56f91
sev-
noreply at scummvm.org
Thu Nov 2 21:14:02 UTC 2023
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:
0644ad9e9a COMMON: Print out opened file path on debug level 5
Commit: 0644ad9e9ae5d3ce3e71d49ee9ca9515f6c56f91
https://github.com/scummvm/scummvm/commit/0644ad9e9ae5d3ce3e71d49ee9ca9515f6c56f91
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-11-02T22:12:58+01:00
Commit Message:
COMMON: Print out opened file path on debug level 5
This potentially let us narrow down reports where users have stray files
in their paths like extrapath.
Changed paths:
common/fs.cpp
diff --git a/common/fs.cpp b/common/fs.cpp
index 35536e417aa..7b68f566051 100644
--- a/common/fs.cpp
+++ b/common/fs.cpp
@@ -20,6 +20,7 @@
*/
#include "common/system.h"
+#include "common/debug.h"
#include "common/punycode.h"
#include "common/textconsole.h"
#include "backends/fs/abstract-fs.h"
@@ -379,6 +380,9 @@ SeekableReadStream *FSDirectory::createReadStreamForMember(const Path &path) con
FSNode *node = lookupCache(_fileCache, path);
if (!node)
return nullptr;
+
+ debug(5, "FSDirectory::createReadStreamForMember('%s') -> '%s'", path.toString().c_str(), node->getPath().c_str());
+
SeekableReadStream *stream = node->createReadStream();
if (!stream)
warning("FSDirectory::createReadStreamForMember: Can't create stream for file '%s'", Common::toPrintable(path.toString()).c_str());
More information about the Scummvm-git-logs
mailing list