stratagus-game-launcher.h - Path to data must be escaped on Windows

This fix problems that on Windows wargus.exe binary do nothing...
This commit is contained in:
Pali Rohár 2012-08-20 15:25:08 +02:00
parent 5266501f04
commit 9e666b6bbd

View file

@ -286,7 +286,7 @@ int main(int argc, char * argv[]) {
if ( chdir(stratagus_path) != 0 ) {
error(TITLE, STRATAGUS_NOT_FOUND);
}
strcpy(scripts_path, data_path);
sprintf(scripts_path, "\"%s\"", data_path);
sprintf(stratagus_bin, "%s\\stratagus.exe", stratagus_path);
#else
strcpy(data_path, DATA_PATH);