2023-01-21 09:42:39 -05:00
|
|
|
|
2022-12-14 06:11:19 -05:00
|
|
|
#include <Geode/loader/Loader.hpp>
|
2022-12-14 09:17:52 -05:00
|
|
|
#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();
|
|
|
|
}
|
|
|
|
}
|
2022-07-30 12:24:03 -04:00
|
|
|
|
2022-12-14 06:11:19 -05:00
|
|
|
namespace {
|
|
|
|
// to make sure the instance is set into the sharedMod<> in load time
|
|
|
|
static auto mod = geode::getMod();
|
2023-01-21 09:00:14 -05:00
|
|
|
}
|