forked from zombieb/undead-universal-patch-il2cpp
AuthenticationValues should only be set when selfhosting/onprem. userid is ignored by photon cloud.
This commit is contained in:
@@ -145,7 +145,6 @@ namespace undead_universal_patch_il2cpp.Patches
|
||||
PhotonConfig.ServerPort.Value,
|
||||
PhotonConfig.AppID.Value,
|
||||
]);
|
||||
}
|
||||
|
||||
Type authValuesType = AccessTools.TypeByName("AuthenticationValues");
|
||||
if (authValuesType != null)
|
||||
@@ -163,7 +162,7 @@ namespace undead_universal_patch_il2cpp.Patches
|
||||
return;
|
||||
}
|
||||
|
||||
string id = Core.Util.LocalInstanceGuid;
|
||||
string id = Util.LocalInstanceGuid;
|
||||
Util.ConditionalDebug($"Instance GUID is {id}");
|
||||
|
||||
PhotonNetwork.AuthValues = new AuthenticationValues
|
||||
@@ -173,6 +172,7 @@ namespace undead_universal_patch_il2cpp.Patches
|
||||
|
||||
Util.ConditionalDebug($"Set the authValues userId to {id}");
|
||||
}
|
||||
}
|
||||
|
||||
UniversalPatchPlugin.Log.LogInfo($"Photon patch ({(PhotonConfig.SelfHosted.Value ? "self-hosted" : "cloud")}) succeeded.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user