Skip to content

Commit

Permalink
Add check for deserialization failure
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Jun 12, 2024
1 parent 51a6df7 commit ef58734
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Assets/AssetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ public static bool LoadAssets()

doorLocked = assetBundle.LoadAsset<AudioClip>("doorlocked");

if (RemappableControls == null || RemappableControls.controls == null)
{
Logger.LogError("Unity failed to deserialize some assets. Are you missing the FixPluginTypesSerialization mod?");
return false;
}

return true;
}

Expand Down

0 comments on commit ef58734

Please sign in to comment.