If LastFolder isn't set, pick enginePath, not userGamePath

This commit is contained in:
Marco Cawthorne 2021-08-04 16:23:22 +02:00
parent b2af29f067
commit 53992b8ed2
6 changed files with 20076 additions and 604 deletions

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -436,13 +436,12 @@ void DoAbout()
}
{
char const *label_text = "WorldSpawn\n"
__DATE__ "\n\n"
"QER taken to the space age.\n\n"
"Developed by Vera Visions LLC.\n"
"Programming by Marco Hladik\n"
"Licensed by id software\n\n"
"Copyright (C) 2015-2021";
char const *label_text = "WorldSpawn 1.0\n"
"Build " __DATE__ "\n\n"
"Copyright (c) Vera Visions, LLC.\n\n"
"This product contains software\n"
"technology from id Software, Inc.\n\n"
"id Technology (c) 2000 id Software, Inc.";
auto label = ui::Label(label_text);

View file

@ -1953,7 +1953,7 @@ const char *getLastFolderPath()
if (g_strLastFolder.empty()) {
GlobalPreferenceSystem().registerPreference("LastFolder", make_property_string(g_strLastFolder));
if (g_strLastFolder.empty()) {
g_strLastFolder = g_qeglobals.m_userGamePath;
g_strLastFolder = EnginePath_get();
}
}
return g_strLastFolder.c_str();

8
worldspawn.desktop Executable file
View file

@ -0,0 +1,8 @@
[Desktop Entry]
Name=WorldSpawn
Comment=idTech BSP Level Editor
Exec=worldspawn %f
Icon=worldspawn
Terminal=true
Type=Application
Categories=Development;