return true;
}
-
-const char* const EXECUTABLE_TYPE =
-#if defined(__linux__) || defined (__FreeBSD__)
-"x86"
-#elif defined(__APPLE__)
-"ppc"
-#elif defined(WIN32)
-"exe"
-#else
-#error "unknown platform"
-#endif
-;
-
void bsp_init()
{
build_set_variable("RadiantPath", AppPath_get());
- build_set_variable("ExecutableType", EXECUTABLE_TYPE);
+ build_set_variable("ExecutableType", RADIANT_EXECUTABLE);
build_set_variable("EnginePath", EnginePath_get());
build_set_variable("MonitorAddress", (g_WatchBSP_Enabled) ? "127.0.0.1:39000" : "");
build_set_variable("GameName", gamename_get());
- build_set_variable("MapFile", Map_Name(g_map));
+ const char* mapname = Map_Name(g_map);
+ StringOutputStream name(256);
+ name << StringRange(mapname, path_get_filename_base_end(mapname)) << ".bsp";
+
+ build_set_variable("MapFile", mapname);
+ build_set_variable("BspFile", name.c_str());
}
void bsp_shutdown()
#endif
globalOutputStream() << "Writing the compile script to '" << batpath << "'\n";
globalOutputStream() << "The build output will be saved in '" << junkpath << "'\n";
- Q_Exec(batpath, NULL, NULL, true);
+ Q_Exec(batpath, NULL, NULL, true, false);
}
}
void Sys_SetTitle(const char *text, bool modified)
{
StringOutputStream title;
- title << ConvertLocaleToUTF8(text);
+ title << text;
if(modified)
{