mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
fix search paths - season 1 episode 3
This commit is contained in:
parent
fe14737ee4
commit
bb431ee1dc
2 changed files with 3 additions and 4 deletions
|
@ -225,8 +225,6 @@ void Loader::Impl::updateModResources(Mod* mod) {
|
|||
if (mod->getMetadata().getSpritesheets().empty())
|
||||
return;
|
||||
|
||||
auto searchPath = mod->getResourcesDir();
|
||||
|
||||
log::debug("Adding resources for {}", mod->getID());
|
||||
|
||||
// add spritesheets
|
||||
|
|
|
@ -42,8 +42,9 @@ Result<> Mod::Impl::setup() {
|
|||
if (!loadRes) {
|
||||
log::warn("Unable to load data for \"{}\": {}", m_metadata.getID(), loadRes.unwrapErr());
|
||||
}
|
||||
if (LoaderImpl::get()->m_isSetup) {
|
||||
Loader::get()->updateResources(false);
|
||||
if (!m_resourcesLoaded) {
|
||||
LoaderImpl::get()->updateModResources(m_self);
|
||||
m_resourcesLoaded = true;
|
||||
}
|
||||
|
||||
return Ok();
|
||||
|
|
Loading…
Reference in a new issue