[Scummvm-git-logs] scummvm master -> 4ea7564432a81755d3fafa6778b953d32f6c8785
whoozle
noreply at scummvm.org
Sat Mar 7 23:07:06 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
4ea7564432 PHOENIXVR: make textes optional
Commit: 4ea7564432a81755d3fafa6778b953d32f6c8785
https://github.com/scummvm/scummvm/commit/4ea7564432a81755d3fafa6778b953d32f6c8785
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-03-07T23:06:30Z
Commit Message:
PHOENIXVR: make textes optional
Changed paths:
engines/phoenixvr/phoenixvr.cpp
diff --git a/engines/phoenixvr/phoenixvr.cpp b/engines/phoenixvr/phoenixvr.cpp
index a3ff2d76cbe..b0f61a1a366 100644
--- a/engines/phoenixvr/phoenixvr.cpp
+++ b/engines/phoenixvr/phoenixvr.cpp
@@ -769,23 +769,23 @@ Common::Error PhoenixVREngine::run() {
}
{
Common::File textes;
- if (!textes.open(Common::Path("textes.txt")))
- error("can't read textes.txt");
- while (!textes.eos()) {
- auto text = textes.readLine();
- if (text.empty() || text[0] != '*')
- continue;
- uint pos = 1;
- while (pos < text.size() && Common::isSpace(text[pos]))
- ++pos;
- int textId = atoi(text.c_str() + pos);
- while (pos < text.size() && Common::isDigit(text[pos]))
- ++pos;
- while (pos < text.size() && Common::isSpace(text[pos]))
- ++pos;
- _textes.setVal(textId, text.substr(pos));
+ if (textes.open(Common::Path("textes.txt"))) {
+ while (!textes.eos()) {
+ auto text = textes.readLine();
+ if (text.empty() || text[0] != '*')
+ continue;
+ uint pos = 1;
+ while (pos < text.size() && Common::isSpace(text[pos]))
+ ++pos;
+ int textId = atoi(text.c_str() + pos);
+ while (pos < text.size() && Common::isDigit(text[pos]))
+ ++pos;
+ while (pos < text.size() && Common::isSpace(text[pos]))
+ ++pos;
+ _textes.setVal(textId, text.substr(pos));
+ }
+ debug("loaded %u textes", _textes.size());
}
- debug("loaded %u textes", _textes.size());
}
setNextScript("script.lst");
More information about the Scummvm-git-logs
mailing list