summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-10-11 09:13:25 -0600
committerLywx <kiritodev01@gmail.com>2024-10-11 11:04:45 -0600
commitf5b0e02f95c8369681ca4c0507d59a6722f6bc88 (patch)
tree1a90fe6b10a1808d7c4c635f8c9f00ea059886f6
parent447fd8b29057e8dcc223507e6b7d6bc448c6f7d8 (diff)
Update Engine.cpp
-rw-r--r--src/port/Engine.cpp3
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());
}
}