Skip to content

Commit

Permalink
4.0.4
Browse files Browse the repository at this point in the history
- Fixed BadImageFormat regression from 3.11.8/4.0.3.
- Fixed UpgradeFromV3ToV4Menu blocking builds due to incorrect end define placement.
  • Loading branch information
FirstGearGames committed Nov 24, 2023
1 parent 7f3d0f6 commit 47e4af5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
14 changes: 0 additions & 14 deletions Assets/FishNet/CodeGenerating/Extension/TypeReferenceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,6 @@ public static string GetFullnameWithoutBrackets(this TypeReference tr)
return str;
}

/// <summary>
/// Returns a method in the next base class.
/// </summary>
public static MethodDefinition GetMethodInBase(this TypeReference tr, CodegenSession session, string methodName)
{
TypeDefinition td = tr.CachedResolve(session);
if (td.BaseType == null)
return null;

td = td.BaseType.CachedResolve(session);
return td.GetMethod(methodName);
}



/// <summary>
/// Makes a GenericInstanceType.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private void CallBaseAwake(TypeDefinition td)
return;

//Base Awake.
MethodReference baseAwakeMr = td.GetMethodInBase(base.Session, NetworkBehaviourHelper.AWAKE_METHOD_NAME);
MethodReference baseAwakeMr = td.GetMethodReferenceInBase(base.Session, NetworkBehaviourHelper.AWAKE_METHOD_NAME);
//This Awake.
MethodDefinition tdAwakeMd = td.GetMethod(NetworkBehaviourHelper.AWAKE_METHOD_NAME);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ private static bool RemoveOrAddDefine(string define, bool removeDefine)


}
#endif
}
#endif
2 changes: 1 addition & 1 deletion Assets/FishNet/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.3
4.0.4
2 changes: 1 addition & 1 deletion Assets/FishNet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.firstgeargames.fishnet",
"version": "4.0.3",
"version": "4.0.4",
"displayName": "FishNet: Networking Evolved",
"description": "A feature-rich Unity networking solution aimed towards reliability, ease of use, efficiency, and flexibility.",
"unity": "2021.3",
Expand Down

0 comments on commit 47e4af5

Please sign in to comment.