v1.4.0: removed a bunch more toString methods/calls that were unneeded

This commit is contained in:
Evan Debenham
2022-08-08 13:31:05 -04:00
parent 64d1b93862
commit be0125497f
17 changed files with 35 additions and 119 deletions

View File

@@ -63,12 +63,12 @@ public class IOSLauncher extends IOSApplication.Delegate {
});
try {
Game.version = NSBundle.getMainBundle().getInfoDictionaryObject("CFBundleVersionString").toString();
Game.version = NSBundle.getMainBundle().getInfoDictionaryObject("CFBundleVersionString").description();
} catch (Exception e) {
Game.version = "???";
}
try {
Game.versionCode = Integer.parseInt(NSBundle.getMainBundle().getInfoDictionaryObject("CFBundleVersion").toString());
Game.versionCode = Integer.parseInt(NSBundle.getMainBundle().getInfoDictionaryObject("CFBundleVersion").description());
} catch (Exception e) {
Game.versionCode = 0;
}