nixpkgs/pkgs/games/doom-ports/doomseeker/fix_paths.patch
souxd 547fea8f6f doomseeker: 2018-03-05 -> 2023-08-09
new file:   pkgs/games/doom-ports/doomseeker/add_gitinfo.patch
	modified:   pkgs/games/doom-ports/doomseeker/default.nix
	new file:   pkgs/games/doom-ports/doomseeker/dont_update_gitinfo.patch
	modified:   pkgs/games/doom-ports/doomseeker/fix_paths.patch
2023-12-01 15:04:30 -03:00

31 lines
1.1 KiB
Diff

diff --git a/src/core/pathfinder/pathfinder.cpp b/src/core/pathfinder/pathfinder.cpp
index f277283a..454a8145 100644
--- a/src/core/pathfinder/pathfinder.cpp
+++ b/src/core/pathfinder/pathfinder.cpp
@@ -137,9 +137,7 @@ PathFinder PathFinder::genericPathFinder(const QStringList &suffixes)
<< DataPaths::programFilesDirectory(DataPaths::x64)
<< DataPaths::programFilesDirectory(DataPaths::x86);
#else
- paths << "/usr/bin" << "/usr/local/bin" << "/usr/share/bin"
- << "/usr/games/" << "/usr/local/games/"
- << "/usr/share/games/" << QCoreApplication::applicationDirPath() << ".";
+ paths << gDefaultDataPaths->workingDirectory() << ".";
#endif
QStringList pathsCopy(paths);
for (const QString &path : pathsCopy)
diff --git a/src/core/pathfinder/wadpathfinder.cpp b/src/core/pathfinder/wadpathfinder.cpp
index 07df0b64..6300542d 100644
--- a/src/core/pathfinder/wadpathfinder.cpp
+++ b/src/core/pathfinder/wadpathfinder.cpp
@@ -84,10 +84,6 @@ public:
QStringList defaultPaths()
{
QStringList paths;
- #ifdef Q_OS_UNIX
- paths << "/usr/local/share/games/doom/"
- << "/usr/share/games/doom/";
- #endif
return paths;
}
};