SLUDGE: Replace sludge stream reading functions by scummvm ones
This commit is contained in:
parent
b920f61a11
commit
8c59f8deac
21 changed files with 363 additions and 419 deletions
|
@ -115,7 +115,7 @@ void readIniFile(char *filename) {
|
|||
bool doingSecond = false;
|
||||
|
||||
do {
|
||||
readChar = getch(&fd);
|
||||
readChar = fd.readByte();
|
||||
if (fd.eos()) {
|
||||
readChar = '\n';
|
||||
keepGoing = false;
|
||||
|
@ -193,7 +193,7 @@ void makeLanguageTable(Common::File *table) {
|
|||
return;
|
||||
|
||||
for (unsigned int i = 0; i <= gameSettings.numLanguages; i++) {
|
||||
languageTable[i] = i ? get2bytes(table) : 0;
|
||||
languageTable[i] = i ? table->readUint16BE() : 0;
|
||||
debug(kSludgeDebugDataLoad, "languageTable %i: %i", i,
|
||||
languageTable[i]);
|
||||
languageName[i] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue