mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2025-07-18 17:38:01 +08:00
Used base Exception on UnityIGCSConnector despite good practices to increase game compatibility.
This commit is contained in:
@ -139,7 +139,8 @@ namespace CinematicUnityExplorer.Cinematic
|
|||||||
|
|
||||||
CameraStatus = initFunc((MoveCameraCallback)delegates[0], (SessionCallback)delegates[1], (SessionCallback)delegates[2]);
|
CameraStatus = initFunc((MoveCameraCallback)delegates[0], (SessionCallback)delegates[1], (SessionCallback)delegates[2]);
|
||||||
if (CameraStatus == IntPtr.Zero){
|
if (CameraStatus == IntPtr.Zero){
|
||||||
throw new InvalidDataException("IGCSDof returned an invalid pointer which means something went wrong");
|
// This is actually a InvalidDataException, but some games dont allow you to throw that.
|
||||||
|
throw new Exception("IGCSDof returned an invalid pointer which means something went wrong");
|
||||||
}
|
}
|
||||||
|
|
||||||
isValid = true;
|
isValid = true;
|
||||||
|
Reference in New Issue
Block a user