Bladeren bron

同步HybridCLR

guodong 3 jaren geleden
bovenliggende
commit
3836b57b5d

+ 1 - 1
GameClient/Assets/Editor/HybridCLR/BuildPlayerHelper.cs

@@ -60,7 +60,7 @@ namespace HybridCLR
             CopyAssetBundles($"{outputPath}/HybridCLRTrial_Data/StreamingAssets");
 
 #if UNITY_EDITOR
-            Application.OpenURL($"file:///{outputPath}");
+            Application.OpenURL($"file:///{location}");
 #endif
         }
 

+ 2 - 2
GameClient/Assets/Editor/HybridCLR/Generators/MethodBridge/MethodBridgeGenerator.cs

@@ -198,7 +198,7 @@ namespace HybridCLR.Generators.MethodBridge
 
                     if (type.IsValueType && !method.IsStatic)
                     {
-                        var adjustThunkMethod = CreateMethodBridgeSig(true, method.ReturnParameter, method.GetParameters());
+                        var adjustThunkMethod = CreateMethodBridgeSig(false, method.ReturnParameter, method.GetParameters());
                         AddAdjustThunkMethod(adjustThunkMethod);
                     }
 
@@ -224,7 +224,7 @@ namespace HybridCLR.Generators.MethodBridge
 
                     if (type.IsValueType && !method.IsStatic)
                     {
-                        var invokeMethod = CreateMethodBridgeSig(true, null, method.GetParameters());
+                        var invokeMethod = CreateMethodBridgeSig(false, null, method.GetParameters());
                         AddAdjustThunkMethod(invokeMethod);
                     }
                 }