Skip to content

Commit

Permalink
Fix bug on URL not loading on Android/Quest build
Browse files Browse the repository at this point in the history
  • Loading branch information
JLChnToZ authored Aug 29, 2023
1 parent cf71452 commit a9e8a90
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Packages/idv.jlchntoz.vvmw/Runtime/VVMW/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,20 +271,13 @@ public void PlayUrlMP(VRCUrl pcUrl, VRCUrl questUrl, byte playerType) {
#if UNITY_ANDROID
url = questUrl;
if (!IsUrlValid(url))
#else
url = pcUrl;
#endif
url = pcUrl;
if (!IsUrlValid(url)) {
if (IsUrlValid(defaultUrl)) {
pcUrl = defaultUrl;
questUrl = defaultQuestUrl;
} else return;
#if UNITY_ANDROID
url = questUrl;
if (!IsUrlValid(url))
#else
url = pcUrl;
#endif
playerType = (byte)autoPlayPlayerType;
}
#if UNITY_ANDROID
Expand Down Expand Up @@ -693,4 +686,4 @@ bool RequestSync() {
return true;
}
}
}
}

0 comments on commit a9e8a90

Please sign in to comment.