mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 08:40:59 +00:00
Fixes a bug when loading the theme config file from a directory instead of the zip file.
svn-id: r20310
This commit is contained in:
parent
7b1e399ab3
commit
d4b3467ac8
@ -104,6 +104,14 @@ char *SeekableReadStream::readLine(char *buf, size_t bufSize) {
|
||||
|
||||
c = readByte();
|
||||
}
|
||||
|
||||
// This should fix a bug while using readLine with Common::File
|
||||
// it seems that it sets the eos flag after an invalid read
|
||||
// and at the same time the ioFailed flag
|
||||
// the config file parser fails out of that reason for the new themes
|
||||
if (eos()) {
|
||||
clearIOFailed();
|
||||
}
|
||||
|
||||
*p = 0;
|
||||
return buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user