diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2024-10-15 20:29:26 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 20:29:26 -0600 |
| commit | 4fbb031dd95f2a84e73fbca269f517e98808d293 (patch) | |
| tree | 55ed05a34242658698107ac2e9461b4c4bd0999d /src/port/Engine.cpp | |
| parent | af81bad1f34ee6af52a70ff8bf7ad4e1ee624a93 (diff) | |
Refactors (#114)
* Update Engine.cpp
* fix
* Add Actors
* Refactor
* Update Game.cpp
* Refactors as per review
Diffstat (limited to 'src/port/Engine.cpp')
| -rw-r--r-- | src/port/Engine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 163b573f4..22c14b38f 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -49,7 +49,8 @@ GameEngine::GameEngine() { !patches_path.empty() && std::filesystem::exists(patches_path)) { if (std::filesystem::is_directory(patches_path)) { for (const auto& p : std::filesystem::recursive_directory_iterator(patches_path)) { - if (StringHelper::IEquals(p.path().extension().string(), ".otr")) { + auto ext = p.path().extension().string(); + if (StringHelper::IEquals(ext, ".otr") || StringHelper::IEquals(ext, ".o2r")) { OTRFiles.push_back(p.path().generic_string()); } } |
