mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-15 03:25:01 -05:00
fix internal mod setup crashing on wine
This commit is contained in:
parent
9bedf1bacc
commit
2b60027636
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,11 @@ Result<> Mod::Impl::setup() {
|
|||
}
|
||||
if (!m_resourcesLoaded) {
|
||||
auto searchPathRoot = dirs::getModRuntimeDir() / m_metadata.getID() / "resources";
|
||||
CCFileUtils::get()->addSearchPath(searchPathRoot.string().c_str());
|
||||
|
||||
// Hi, linux bros!
|
||||
Loader::get()->queueInMainThread([searchPathRoot]() {
|
||||
CCFileUtils::get()->addSearchPath(searchPathRoot.string().c_str());
|
||||
});
|
||||
|
||||
const auto binariesDir = searchPathRoot / m_metadata.getID() / "binaries" / PlatformID::toShortString(GEODE_PLATFORM_TARGET);
|
||||
if (ghc::filesystem::exists(binariesDir))
|
||||
|
|
Loading…
Reference in a new issue