Codechange: make Searchpath a scoped enum

This commit is contained in:
Peter Nelson
2026-04-05 19:55:59 +01:00
committed by Peter Nelson
parent 5aae8e2d64
commit 78bc829886
7 changed files with 81 additions and 81 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ static constexpr size_t CHANGELOG_VERSIONS_LIMIT = 20;
static std::optional<std::string> FindGameManualFilePath(std::string_view filename, Subdirectory subdir)
{
static const Searchpath searchpaths[] = {
SP_APPLICATION_BUNDLE_DIR, SP_INSTALLATION_DIR, SP_SHARED_DIR, SP_BINARY_DIR, SP_WORKING_DIR
Searchpath::ApplicationBundleDir, Searchpath::InstallationDir, Searchpath::SharedDir, Searchpath::BinaryDir, Searchpath::WorkingDir
};
for (Searchpath sp : searchpaths) {