Commit c1bab436 authored by mercury233's avatar mercury233

temp fix

parent edd1474b
......@@ -78,12 +78,10 @@ bool DataManager::LoadStrings(const char* file) {
char linebuf[256];
char strbuf[256];
int value;
fseek(fp, 0, SEEK_END);
int fsize = ftell(fp);
fseek(fp, 0, SEEK_SET);
fgets(linebuf, 256, fp);
while(ftell(fp) < fsize) {
while(true) {
fgets(linebuf, 256, fp);
if(feof(fp)) break;
if(linebuf[0] != '!')
continue;
sscanf(linebuf, "!%s", strbuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment