Rev 52 | Rev 59 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 52 | Rev 56 | ||
|---|---|---|---|
| Line 140... | Line 140... | ||
| 140 | is_success = LocalizedTexts_Init (L"%s/data/languages/%s.ini", app_path, os_language); |
140 | is_success = LocalizedTexts_Init (L"%s/data/languages/%s.ini", app_path, os_language); |
| 141 | } |
141 | } |
| 142 | 142 | ||
| 143 | // consistency check: don't go further if texts aren't available |
143 | // consistency check: don't go further if texts aren't available |
| 144 | if (!is_success) |
144 | if (!is_success) |
| - | 145 | { |
|
| - | 146 | 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); |
|
| 145 | return (-1); // bomb out on error |
147 | return (-1); // bomb out on error |
| - | 148 | } |
|
| 146 | 149 | ||
| 147 | // create the main menu line |
150 | // create the main menu line |
| 148 | hMenu = CreateMenu (); |
151 | hMenu = CreateMenu (); |
| 149 | hDropDownMenu = CreateMenu (); // create the first drop-down item |
152 | hDropDownMenu = CreateMenu (); // create the first drop-down item |
| 150 | AppendMenu (hDropDownMenu, MF_STRING, MENUID_GAME_NEWGAME, LOCALIZE (L"Menu_GameNewGame")); |
153 | AppendMenu (hDropDownMenu, MF_STRING, MENUID_GAME_NEWGAME, LOCALIZE (L"Menu_GameNewGame")); |