mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-31 07:10:28 -04:00
Merge branch 'main' of https://github.com/geode-sdk/geode
This commit is contained in:
commit
320216604f
1 changed files with 10 additions and 0 deletions
|
@ -338,6 +338,16 @@ Result<> Mod::Impl::loadBinary() {
|
|||
if (m_enabled)
|
||||
return Ok();
|
||||
|
||||
if (!ghc::filesystem::exists(this->getBinaryPath())) {
|
||||
return Err(
|
||||
fmt::format(
|
||||
"Failed to load {}: No binary could be found for current platform.\n"
|
||||
"This mod doesn't support this platform" GEODE_WINDOWS(" or something deleted it (like an antivirus)") ".",
|
||||
m_metadata.getID()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
LoaderImpl::get()->provideNextMod(m_self);
|
||||
|
||||
m_enabled = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue