Browse Source

Remove redundant comments from Dreamcast ifdef guards

Signed-off-by: Panagiotis Georgiadis <pgeorgia@redhat.com>
pull/8489/head
Panagiotis Georgiadis 1 month ago
parent
commit
3bc5033048
No known key found for this signature in database
GPG Key ID: A5B9AF563B15B24F
  1. 7
      Source/engine/assets.cpp

7
Source/engine/assets.cpp

@ -331,10 +331,7 @@ std::vector<std::string> GetMPQSearchPaths()
{
std::vector<std::string> paths;
paths.push_back(paths::BasePath());
#ifdef __DREAMCAST__
// On Dreamcast, PrefPath is /ram/ (for saves) - MPQs are only on /cd/
// Don't search /ram/ for MPQ files
#else
#ifndef __DREAMCAST__
paths.push_back(paths::PrefPath());
if (paths[0] == paths[1])
paths.pop_back();
@ -497,7 +494,6 @@ void LoadModArchives(std::span<const std::string_view> modnames)
std::string targetPath;
for (const std::string_view modname : modnames) {
#ifndef __DREAMCAST__
// On Dreamcast, PrefPath is /ram/ which is only for saves, not mod assets
targetPath = StrCat(paths::PrefPath(), "mods" DIRECTORY_SEPARATOR_STR, modname, DIRECTORY_SEPARATOR_STR);
if (FileExists(targetPath)) {
OverridePaths.emplace_back(targetPath);
@ -509,7 +505,6 @@ void LoadModArchives(std::span<const std::string_view> modnames)
}
}
#ifndef __DREAMCAST__
// On Dreamcast, PrefPath is /ram/ which is only for saves - don't use for asset overrides
OverridePaths.emplace_back(paths::PrefPath());
#endif

Loading…
Cancel
Save