Skip to content

Commit

Permalink
fix: Android build (#629)
Browse files Browse the repository at this point in the history
* Fix Android Compile
  • Loading branch information
SkullzOTS authored Nov 14, 2023
1 parent 82ecd7c commit 93512df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/framework/core/modulemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ void ModuleManager::enableAutoReload() {
for (const auto& path : g_resources.listDirectoryFiles("/" + module->getName(), true, false, true)) {
ticks_t time = g_resources.getFileTime(path);
if (time > 0) {
data.files.emplace_back(std::make_shared<FileInfo>(path, time));
auto fileInfo = std::make_shared<FileInfo>();
fileInfo->path = path;
fileInfo->time = time;
data.files.emplace_back(fileInfo);
hasFile = true;
}
}
Expand Down Expand Up @@ -204,4 +207,4 @@ void ModuleManager::enableAutoReload() {
}
}
}, 750);
}
}

0 comments on commit 93512df

Please sign in to comment.