0.2 file not found -> exits

This commit is contained in:
Johnny Bergström 2005-01-22 13:27:57 +00:00
parent 27e4174be6
commit e097932ac9

View File

@ -111,13 +111,8 @@ bool LoadRankFromFile(HWND hDlg) {
if ( !g_rank.begin() ) if ( !g_rank.begin() )
{ {
if (!g_rank.loadRank(STATS_FILENAME)) { if (!g_rank.loadRank(STATS_FILENAME)) {
HWND listbox = GetDlgItem(hDlg, IDC_LIST); MessageBox(hDlg, "File load failed! Make sure you have csstats.dat in the same directory as this executable. Exiting...", "Where IS that file of yours?", MB_OK);
SendMessage( // returns LRESULT in lResult PostQuitMessage(0);
listbox, // handle to destination control
LB_ADDSTRING, // message ID
0, // = (WPARAM) () wParam;
(LPARAM) "File load failed!" // = (LPARAM) () lParam;
);
return false; return false;
} }
} }