127 |
|
return 1; |
128 |
|
} |
129 |
|
} |
130 |
+ |
else |
131 |
+ |
{ |
132 |
+ |
error = "The argument " + arg + " is not a valid argument."; |
133 |
+ |
|
134 |
+ |
#ifdef _WIN32 |
135 |
+ |
MessageBox(NULL, error.c_str(), "Unknown Arguments", MB_ICONWARNING |
136 |
+ |
); |
137 |
+ |
#else |
138 |
+ |
message(NULL, error, "Unknown Arguments", GTK_MESSAGE_WARNING); |
139 |
+ |
#endif |
140 |
+ |
} |
141 |
|
} |
142 |
|
|
143 |
|
#ifdef _WIN32 |
204 |
|
GetCurrentDirectory(MAX_PATH + 1, directory); |
205 |
|
if (debug) cerr << "directory = " << directory << "\n"; |
206 |
|
|
207 |
< |
char* data = new char[MAX_PATH + 1]; |
207 |
> |
char* data = new char[strlen(directory) + 12]; |
208 |
|
sprintf(data, "%s\\data\\*.mix", directory); |
209 |
|
delete [] directory; |
210 |
|
if (debug) cerr << "data = " << data << "\n"; |
231 |
|
if (GetListBoxInfo(GetDlgItem(hwndDlg, IDC_SELECTED)) == 0) |
232 |
|
{ |
233 |
|
MessageBox(hwndDlg, "You need at least one map.", "No Maps", |
234 |
< |
MB_ICONEXCLAMATION); |
234 |
> |
MB_ICONINFORMATION); |
235 |
|
|
236 |
|
return false; |
237 |
|
} |