Rev 11 | Rev 59 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11 | Rev 56 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | // open the INI file |
24 | // open the INI file |
25 | inifile = INIFile_LoadINIFile (lngfile_pathname); |
25 | inifile = INIFile_LoadINIFile (lngfile_pathname); |
26 | 26 | ||
27 | // consistency check |
27 | // consistency check |
28 | if (inifile == NULL) |
28 | if (inifile == NULL) |
29 | { |
- | |
30 | MessageBox (NULL, L"Chess Giants was unable to load its data files.\nThe game cannot start.\n\nPlease reinstall this program to fix the problem.", L"Chess Giants", MB_ICONERROR | MB_OK); |
- | |
31 | return (false); |
29 | return (false); |
32 | } |
- | |
33 | 30 | ||
34 | // read the number of known localized texts and mallocate enough space for them |
31 | // read the number of known localized texts and mallocate enough space for them |
35 | text_count = INIFile_GetNumberOfEntries (inifile, L"texts"); |
32 | text_count = INIFile_GetNumberOfEntries (inifile, L"texts"); |
36 | texts = (text_t *) SAFE_malloc (text_count, sizeof (text_t), true); |
33 | texts = (text_t *) SAFE_malloc (text_count, sizeof (text_t), true); |
37 | 34 |