make getGameVersion public (#797)

This commit is contained in:
Oleksandr Nemesh 2024-05-27 21:29:42 +03:00 committed by GitHub
parent 6510df7c85
commit 3e03978b1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -140,6 +140,12 @@ namespace geode {
void queueInMainThread(ScheduledFunction func);
/**
* Returns the current game version.
* @return The game version
*/
std::string getGameVersion();
friend class LoaderImpl;
friend Mod* takeNextLoaderMod();

View file

@ -73,6 +73,10 @@ void Loader::queueInMainThread(ScheduledFunction func) {
return m_impl->queueInMainThread(std::move(func));
}
std::string Loader::getGameVersion() {
return m_impl->getGameVersion();
}
Mod* Loader::takeNextMod() {
return m_impl->takeNextMod();
}