equal
deleted
inserted
replaced
1569 _pause = 2; |
1569 _pause = 2; |
1570 |
1570 |
1571 return true; |
1571 return true; |
1572 } |
1572 } |
1573 |
1573 |
1574 void GetOldSaveGameName(char *title, const char *file) |
1574 void GetOldSaveGameName(char *title, const char *path, const char *file) |
1575 { |
1575 { |
1576 FILE *f = fopen(file, "rb"); |
1576 char filename[MAX_PATH]; |
1577 title[0] = 0; |
1577 FILE *f; |
1578 title[48] = 0; |
1578 |
|
1579 snprintf(filename, lengthof(filename), "%s" PATHSEP "%s", path, file); |
|
1580 f = fopen(filename, "rb"); |
|
1581 title[0] = '\0'; |
|
1582 title[48] = '\0'; |
1579 |
1583 |
1580 if (f == NULL) return; |
1584 if (f == NULL) return; |
1581 |
1585 |
1582 if (fread(title, 1, 48, f) != 48) snprintf(title, 48, "Corrupt file"); |
1586 if (fread(title, 1, 48, f) != 48) snprintf(title, 48, "Corrupt file"); |
1583 |
1587 |
1584 fclose(f); |
1588 fclose(f); |
1585 } |
1589 } |
1586 |
|
1587 void GetOldScenarioGameName(char *title, const char *file) |
|
1588 { |
|
1589 GetOldSaveGameName(title, file); |
|
1590 } |
|