mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
Merge pull request #479 from dankmeme01/main
implement getGameVersion on mac
This commit is contained in:
commit
e2ff9c8719
1 changed files with 6 additions and 1 deletions
|
@ -145,7 +145,12 @@ void Loader::Impl::addNativeBinariesPath(ghc::filesystem::path const& path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Loader::Impl::getGameVersion() {
|
std::string Loader::Impl::getGameVersion() {
|
||||||
return GEODE_STR(GEODE_GD_VERSION); // TODO implement
|
NSBundle* mainBundle = [NSBundle mainBundle];
|
||||||
|
NSDictionary* infoDictionary = [mainBundle infoDictionary];
|
||||||
|
|
||||||
|
NSString *version = infoDictionary[@"CFBundleShortVersionString"];
|
||||||
|
|
||||||
|
return std::string([version UTF8String]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
Loading…
Reference in a new issue