mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 06:00:48 +00:00
More skip_whitespace -> Common::ltrim(). For real now.
svn-id: r25577
This commit is contained in:
parent
75ae7cdb73
commit
d910b545c5
@ -313,7 +313,7 @@ int16 scriptFillBuffers(ArchivedFile *file) {
|
||||
vCE = readArchivedFileText(vCA, 200, file);
|
||||
if (vCE == 0) return 0;
|
||||
|
||||
skip_whitespace(vCE);
|
||||
Common::ltrim(vCE);
|
||||
} while (strlen(vCE) == 0 || vCE[0] == '#');
|
||||
|
||||
while (strlen(vCE) > 0 && _si < 20) {
|
||||
@ -327,7 +327,7 @@ int16 scriptFillBuffers(ArchivedFile *file) {
|
||||
|
||||
}
|
||||
|
||||
vCE = skip_whitespace(vCE);
|
||||
vCE = Common::ltrim(vCE);
|
||||
_si++;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,6 @@ void memFree(void *m);
|
||||
void errorFileNotFound(const char*);
|
||||
|
||||
void beep();
|
||||
char *skip_whitespace(char *s);
|
||||
|
||||
enum {
|
||||
kDebugDisk = 1 << 0,
|
||||
|
@ -182,7 +182,7 @@ char *parseDialogueString() {
|
||||
vD0 = parseNextLine(vC8, 200);
|
||||
if (vD0 == 0) return NULL;
|
||||
|
||||
vD0 = skip_whitespace(vD0);
|
||||
vD0 = Common::ltrim(vD0);
|
||||
|
||||
} while (strlen(vD0) == 0);
|
||||
|
||||
|
@ -724,7 +724,7 @@ bool Graphics::displayWrappedString(char *text, uint16 x, uint16 y, uint16 maxwi
|
||||
rx += getStringWidth(token) + getStringWidth(" ");
|
||||
linewidth += getStringWidth(" ");
|
||||
|
||||
text = skip_whitespace(text);
|
||||
text = Common::ltrim(text);
|
||||
}
|
||||
|
||||
// printf("done\n");
|
||||
@ -781,7 +781,7 @@ void Graphics::getStringExtent(char *text, uint16 maxwidth, int16* width, int16*
|
||||
}
|
||||
|
||||
w += getStringWidth(" ");
|
||||
text = skip_whitespace(text);
|
||||
text = Common::ltrim(text);
|
||||
}
|
||||
|
||||
if (*width < w) *width = w;
|
||||
|
@ -46,7 +46,7 @@ uint16 tableFillBuffers(Common::SeekableReadStream &stream) {
|
||||
line = stream.readLine(buf, 200);
|
||||
if (line == NULL) return 0;
|
||||
|
||||
line = skip_whitespace(line);
|
||||
line = Common::ltrim(line);
|
||||
} while (strlen(line) == 0 || line[0] == '#');
|
||||
|
||||
uint16 count = 0;
|
||||
@ -61,7 +61,7 @@ uint16 tableFillBuffers(Common::SeekableReadStream &stream) {
|
||||
|
||||
}
|
||||
|
||||
line = skip_whitespace(line);
|
||||
line = Common::ltrim(line);
|
||||
count++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user