• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision953a6f150f02a7aea23b0c1fdddf61e905ea3a3a (tree)
Time2023-07-07 01:44:20
Authorsebastian_bugiu
Commitersebastian_bugiu

Log Message

Disabled config.allowIpod as it also loaded OpenAL framework which we don't have on xrOS.

Change Summary

Incremental Difference

diff -r 5de45aa85154 -r 953a6f150f02 HotshotVR/HotshotVR.xcodeproj/project.pbxproj
--- a/HotshotVR/HotshotVR.xcodeproj/project.pbxproj Tue Jul 04 23:15:57 2023 +0300
+++ b/HotshotVR/HotshotVR.xcodeproj/project.pbxproj Thu Jul 06 19:44:20 2023 +0300
@@ -7,6 +7,8 @@
77 objects = {
88
99 /* Begin PBXBuildFile section */
10+ 9E5026292A5723DE00AA3406 /* HotshotFramework.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E5026282A5723DE00AA3406 /* HotshotFramework.xcframework */; };
11+ 9E50262A2A5723E900AA3406 /* HotshotFramework.xcframework in Copy Frameworks (1 item) */ = {isa = PBXBuildFile; fileRef = 9E5026282A5723DE00AA3406 /* HotshotFramework.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1012 9E8C2B812A483C9600C4A88A /* RealityKitContent in Frameworks */ = {isa = PBXBuildFile; productRef = 9E8C2B802A483C9600C4A88A /* RealityKitContent */; };
1113 9E8C2B832A483C9600C4A88A /* HotshotVRApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E8C2B822A483C9600C4A88A /* HotshotVRApp.swift */; };
1214 9E8C2B852A483C9600C4A88A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E8C2B842A483C9600C4A88A /* ContentView.swift */; };
@@ -15,8 +17,6 @@
1517 9E8C2B8C2A483C9700C4A88A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9E8C2B8B2A483C9700C4A88A /* Preview Assets.xcassets */; };
1618 9E8C2B952A49559B00C4A88A /* OgreContentConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E8C2B942A49559B00C4A88A /* OgreContentConfiguration.swift */; };
1719 9E8C2B9B2A49D30800C4A88A /* HotshotNativeApp.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E8C2B9A2A49D30800C4A88A /* HotshotNativeApp.m */; };
18- 9E8C2BE62A54A7EC00C4A88A /* HotshotFramework.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E8C2BE52A54A7EC00C4A88A /* HotshotFramework.xcframework */; };
19- 9E8C2BE72A54A7F100C4A88A /* HotshotFramework.xcframework in Copy Frameworks (1 item) */ = {isa = PBXBuildFile; fileRef = 9E8C2BE52A54A7EC00C4A88A /* HotshotFramework.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2020 /* End PBXBuildFile section */
2121
2222 /* Begin PBXCopyFilesBuildPhase section */
@@ -26,7 +26,7 @@
2626 dstPath = "";
2727 dstSubfolderSpec = 10;
2828 files = (
29- 9E8C2BE72A54A7F100C4A88A /* HotshotFramework.xcframework in Copy Frameworks (1 item) */,
29+ 9E50262A2A5723E900AA3406 /* HotshotFramework.xcframework in Copy Frameworks (1 item) */,
3030 );
3131 name = "Copy Frameworks (1 item)";
3232 runOnlyForDeploymentPostprocessing = 0;
@@ -34,6 +34,7 @@
3434 /* End PBXCopyFilesBuildPhase section */
3535
3636 /* Begin PBXFileReference section */
37+ 9E5026282A5723DE00AA3406 /* HotshotFramework.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = HotshotFramework.xcframework; sourceTree = "<group>"; };
3738 9E8C2B7B2A483C9600C4A88A /* HotshotVR.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HotshotVR.app; sourceTree = BUILT_PRODUCTS_DIR; };
3839 9E8C2B7F2A483C9600C4A88A /* RealityKitContent */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = RealityKitContent; sourceTree = "<group>"; };
3940 9E8C2B822A483C9600C4A88A /* HotshotVRApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HotshotVRApp.swift; sourceTree = "<group>"; };
@@ -45,7 +46,6 @@
4546 9E8C2B992A49D30800C4A88A /* HotshotVR-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HotshotVR-Bridging-Header.h"; sourceTree = "<group>"; };
4647 9E8C2B9A2A49D30800C4A88A /* HotshotNativeApp.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HotshotNativeApp.m; sourceTree = "<group>"; };
4748 9E8C2B9C2A49D37A00C4A88A /* HotshotNativeApp.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HotshotNativeApp.h; sourceTree = "<group>"; };
48- 9E8C2BE52A54A7EC00C4A88A /* HotshotFramework.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = HotshotFramework.xcframework; sourceTree = "<group>"; };
4949 /* End PBXFileReference section */
5050
5151 /* Begin PBXFrameworksBuildPhase section */
@@ -53,7 +53,7 @@
5353 isa = PBXFrameworksBuildPhase;
5454 buildActionMask = 2147483647;
5555 files = (
56- 9E8C2BE62A54A7EC00C4A88A /* HotshotFramework.xcframework in Frameworks */,
56+ 9E5026292A5723DE00AA3406 /* HotshotFramework.xcframework in Frameworks */,
5757 9E8C2B812A483C9600C4A88A /* RealityKitContent in Frameworks */,
5858 );
5959 runOnlyForDeploymentPostprocessing = 0;
@@ -114,7 +114,7 @@
114114 9E8C2B962A4988BB00C4A88A /* Frameworks */ = {
115115 isa = PBXGroup;
116116 children = (
117- 9E8C2BE52A54A7EC00C4A88A /* HotshotFramework.xcframework */,
117+ 9E5026282A5723DE00AA3406 /* HotshotFramework.xcframework */,
118118 );
119119 name = Frameworks;
120120 sourceTree = "<group>";
diff -r 5de45aa85154 -r 953a6f150f02 HotshotVR/HotshotVR.xcodeproj/project.xcworkspace/xcuserdata/sebastian.xcuserdatad/UserInterfaceState.xcuserstate
Binary file HotshotVR/HotshotVR.xcodeproj/project.xcworkspace/xcuserdata/sebastian.xcuserdatad/UserInterfaceState.xcuserstate has changed
diff -r 5de45aa85154 -r 953a6f150f02 HotshotVR/HotshotVR/HotshotVRApp.swift
--- a/HotshotVR/HotshotVR/HotshotVRApp.swift Tue Jul 04 23:15:57 2023 +0300
+++ b/HotshotVR/HotshotVR/HotshotVRApp.swift Thu Jul 06 19:44:20 2023 +0300
@@ -20,6 +20,7 @@
2020 NSLog("didFinishLaunchingWithOptions called")
2121 var sdk:HotshotFrameworkDemo!
2222 sdk = HotshotFrameworkDemo()
23+// HotshotFrameworkDemo.hello()
2324 sdk.finishedLaunching(application)
2425 NSLog("RoboVM version %@", sdk.roboVmVersion())
2526 return true;
@@ -44,11 +45,15 @@
4445
4546 let mtlDevice = layerRenderer.device
4647 var hotshotNativeApp = HotshotNativeApp()
47- hotshotNativeApp.load()
48+// sdk.finishedLaunching(application)
49+// hotshotNativeApp.load()
4850 // MTLDevice mDevice = MTLCreateSystemDefaultDevice()
4951 let renderThread = Thread {
5052 // let engine = myEngineCreate(layerRenderer)
5153 // myEngineRenderLoop(engine)
54+// while (true) {
55+// sdk.finishedLaunching(application)
56+// }
5257 }
5358 renderThread.name = "Render Thread"
5459 renderThread.start()
diff -r 5de45aa85154 -r 953a6f150f02 core/src/headwayent/blackholedarksun/APP_SinglePlayerGame.java
--- a/core/src/headwayent/blackholedarksun/APP_SinglePlayerGame.java Tue Jul 04 23:15:57 2023 +0300
+++ b/core/src/headwayent/blackholedarksun/APP_SinglePlayerGame.java Thu Jul 06 19:44:20 2023 +0300
@@ -794,7 +794,9 @@
794794 miscParams.put("FSAA", "");
795795 miscParams.put("vsync", "");
796796
797- initializeNotchHeight();
797+ if (MainApp.SUBPLATFORM != MainApp.Platform.XROS) {
798+ initializeNotchHeight();
799+ }
798800 }
799801
800802 if (getNotchHeight() > 0.0) {
diff -r 5de45aa85154 -r 953a6f150f02 core/src/headwayent/blackholedarksun/MainApp.java
--- a/core/src/headwayent/blackholedarksun/MainApp.java Tue Jul 04 23:15:57 2023 +0300
+++ b/core/src/headwayent/blackholedarksun/MainApp.java Thu Jul 06 19:44:20 2023 +0300
@@ -170,6 +170,7 @@
170170 // Change here when building for specific platform.
171171 // Cannot have same code on all platforms so the switch is necessary
172172 public static Platform PLATFORM;// = Platform.DESKTOP;
173+ public static Platform SUBPLATFORM;
173174 public static DesktopPlatform DESKTOP_PLATFORM;
174175 public static final int FEATURES_ENABLED = Features.createFeatures(Features.MULTIPLAYER);
175176 public static final boolean DEV = true;
diff -r 5de45aa85154 -r 953a6f150f02 ios/build.gradle
--- a/ios/build.gradle Tue Jul 04 23:15:57 2023 +0300
+++ b/ios/build.gradle Thu Jul 06 19:44:20 2023 +0300
@@ -3,7 +3,8 @@
33
44 sourceSets.main.java.srcDirs = [ "src/" ]
55
6-sourceCompatibility = '1.8'
6+sourceCompatibility = 1.8
7+targetCompatibility = 1.8
78 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
89
910 ext {
diff -r 5de45aa85154 -r 953a6f150f02 ios/src/com/headwayent/blackholedarksun/HotshotFrameworkDemo.java
--- a/ios/src/com/headwayent/blackholedarksun/HotshotFrameworkDemo.java Tue Jul 04 23:15:57 2023 +0300
+++ b/ios/src/com/headwayent/blackholedarksun/HotshotFrameworkDemo.java Thu Jul 06 19:44:20 2023 +0300
@@ -43,6 +43,7 @@
4343 // }
4444 // });
4545 MainApp.PLATFORM = MainApp.Platform.IOS;
46+ MainApp.SUBPLATFORM = MainApp.Platform.XROS;
4647 iosLauncher = new IOSLauncher();
4748
4849 }
@@ -72,6 +73,12 @@
7273 */
7374 @Method(selector = "hello")
7475 public static void sayHello() {
76+ String s = null;
77+ try {
78+ s.toString();
79+ } catch (NullPointerException e) {
80+ e.printStackTrace();
81+ }
7582 System.out.println("Hello world from RoboVM framework");
7683 }
7784
diff -r 5de45aa85154 -r 953a6f150f02 ios/src/com/headwayent/blackholedarksun/IOSLauncher.java
--- a/ios/src/com/headwayent/blackholedarksun/IOSLauncher.java Tue Jul 04 23:15:57 2023 +0300
+++ b/ios/src/com/headwayent/blackholedarksun/IOSLauncher.java Thu Jul 06 19:44:20 2023 +0300
@@ -51,7 +51,10 @@
5151 // config.useWakelock = true;
5252 // config.hideStatusBar = true;
5353 // config.useImmersiveMode = true;
54+ // COMMENT NEXT 2 LINES FOR AUDIO ON IOS!!!
5455 config.useAudio = false;
56+ config.allowIpod = false;
57+
5558 config.colorFormat = GLKViewDrawableColorFormat.RGBA8888;
5659 config.depthFormat = GLKViewDrawableDepthFormat._24;
5760 config.hdpiMode = HdpiMode.Pixels;