Skip to content

Commit 723411f

Browse files
authored
Merge pull request #410 from immutable/fix/game-bridge-path-space
[DX-3581] fix: game bridge file cannot be loaded with path has a space
2 parents af99b06 + ad6bf15 commit 723411f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sample/Packages/packages-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"url": "https://packages.unity.com"
8989
},
9090
"com.unity.nuget.newtonsoft-json": {
91-
"version": "3.2.1",
91+
"version": "3.2.0",
9292
"depth": 1,
9393
"source": "registry",
9494
"dependencies": {},

sample/ProjectSettings/ProjectSettings.asset

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ PlayerSettings:
156156
androidMaxAspectRatio: 2.1
157157
applicationIdentifier:
158158
Android: com.immutable.ImmutableSample
159-
Standalone: com.immutable.unitysample
159+
Standalone: com.immutable.Immutable-Sample
160160
iPhone: com.immutable.Immutable-Sample
161161
buildNumber:
162162
Standalone: 0
@@ -804,7 +804,7 @@ PlayerSettings:
804804
allowUnsafeCode: 0
805805
useDeterministicCompilation: 1
806806
enableRoslynAnalyzers: 1
807-
selectedPlatform: 3
807+
selectedPlatform: 0
808808
additionalIl2CppArgs:
809809
scriptingRuntimeVersion: 1
810810
gcIncremental: 1

src/Packages/Passport/Runtime/ThirdParty/ImmutableBrowserCore/GameBridge.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public static string GetFilePath()
2626
#elif UNITY_STANDALONE_OSX
2727
// macOS
2828
filePath = SCHEME_FILE + Path.GetFullPath(Application.dataPath) + MAC_DATA_DIRECTORY + PASSPORT_DATA_DIRECTORY_NAME + PASSPORT_HTML_FILE_NAME;
29-
filePath = filePath.Replace(" ", "%20");
3029
#elif UNITY_IPHONE && !UNITY_EDITOR
3130
// iOS device
3231
filePath = Path.GetFullPath(Application.dataPath) + PASSPORT_DATA_DIRECTORY_NAME + PASSPORT_HTML_FILE_NAME;
@@ -39,6 +38,7 @@ public static string GetFilePath()
3938
#else
4039
filePath = SCHEME_FILE + Path.GetFullPath(Application.dataPath) + PASSPORT_DATA_DIRECTORY_NAME + PASSPORT_HTML_FILE_NAME;
4140
#endif
41+
filePath = filePath.Replace(" ", "%20");
4242
return filePath;
4343
}
4444
}

0 commit comments

Comments
 (0)