mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
20 lines
493 B
C++
20 lines
493 B
C++
|
|
#include <Geode/loader/Loader.hpp>
|
|
#include <Geode/loader/Mod.hpp>
|
|
|
|
namespace geode {
|
|
/**
|
|
* To bypass the need for cyclic dependencies,
|
|
* this function does the exact same as Mod::get()
|
|
* However, it can be externed, unlike Mod::get()
|
|
* @returns Same thing Mod::get() returns
|
|
*/
|
|
Mod* getMod() {
|
|
return Mod::get();
|
|
}
|
|
}
|
|
|
|
namespace {
|
|
// to make sure the instance is set into the sharedMod<> in load time
|
|
static auto mod = geode::getMod();
|
|
}
|