diff --git a/Editor/Editor/EditorLayer.cpp b/Editor/Editor/EditorLayer.cpp index 8f0584f..ed9f972 100644 --- a/Editor/Editor/EditorLayer.cpp +++ b/Editor/Editor/EditorLayer.cpp @@ -343,7 +343,7 @@ namespace Prism { ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 10)); - auto& albedoColor = materialInstance->Get("u_AlbedoColor"); + auto& albedoColor = materialInstance->Get("u_AlbedoColor"); bool useAlbedoMap = materialInstance->Get("u_AlbedoTexToggle"); Ref albedoMap = materialInstance->TryGetResource("u_AlbedoTexture"); @@ -387,7 +387,7 @@ namespace Prism ImGui::EndGroup(); ImGui::SameLine(); - if (ImGui::ColorEdit3("Color##Albedo", glm::value_ptr(albedoColor), ImGuiColorEditFlags_NoInputs)) + if (ImGui::ColorEdit4("Color##Albedo", glm::value_ptr(albedoColor), ImGuiColorEditFlags_NoInputs)) { meshComponent.UpdateMaterials(selectedMaterialIndex); shouldUpdate = true; diff --git a/Editor/assets/shaders/PBRShader_Anim.glsl b/Editor/assets/shaders/PBRShader_Anim.glsl index 2528ea6..89eacd7 100644 --- a/Editor/assets/shaders/PBRShader_Anim.glsl +++ b/Editor/assets/shaders/PBRShader_Anim.glsl @@ -145,7 +145,7 @@ uniform float u_BloomThreshold; uniform float u_EnvMapRotation; // baseColor -uniform vec3 u_AlbedoColor; +uniform vec4 u_AlbedoColor; uniform float u_Metalness; uniform float u_Roughness; @@ -420,7 +420,7 @@ float ComputeShadow(vec4 fragPosLightSpace, float NdotL) void main() { - m_Params.Albedo = u_AlbedoTexToggle > 0.5 ? texture(u_AlbedoTexture, vs_Input.TexCoord) : vec4(u_AlbedoColor, 1.0); + m_Params.Albedo = u_AlbedoTexToggle > 0.5 ? texture(u_AlbedoTexture, vs_Input.TexCoord) : u_AlbedoColor; m_Params.Metalness = u_MetalnessTexToggle > 0.5 ? texture(u_MetalnessTexture, vs_Input.TexCoord).r : u_Metalness; m_Params.Roughness = u_RoughnessTexToggle > 0.5 ? texture(u_RoughnessTexture, vs_Input.TexCoord).r : u_Roughness; m_Params.Roughness = max(m_Params.Roughness, 0.05); diff --git a/Editor/assets/shaders/PBRShader_Static.glsl b/Editor/assets/shaders/PBRShader_Static.glsl index 3bf64f9..51c45ac 100644 --- a/Editor/assets/shaders/PBRShader_Static.glsl +++ b/Editor/assets/shaders/PBRShader_Static.glsl @@ -132,7 +132,7 @@ uniform float u_BloomThreshold; uniform float u_EnvMapRotation; // baseColor -uniform vec3 u_AlbedoColor; +uniform vec4 u_AlbedoColor; uniform float u_Metalness; uniform float u_Roughness; @@ -405,7 +405,7 @@ float ComputeShadow(vec4 fragPosLightSpace, float NdotL) void main() { - m_Params.Albedo = u_AlbedoTexToggle > 0.5 ? texture(u_AlbedoTexture, vs_Input.TexCoord) : vec4(u_AlbedoColor, 1.0f); + m_Params.Albedo = u_AlbedoTexToggle > 0.5 ? texture(u_AlbedoTexture, vs_Input.TexCoord) : u_AlbedoColor; m_Params.Metalness = u_MetalnessTexToggle > 0.5 ? texture(u_MetalnessTexture, vs_Input.TexCoord).r : u_Metalness; m_Params.Roughness = u_RoughnessTexToggle > 0.5 ? texture(u_RoughnessTexture, vs_Input.TexCoord).r : u_Roughness; m_Params.Roughness = max(m_Params.Roughness, 0.05); diff --git a/Editor/library/mono/4.5/Facades/Microsoft.Win32.Primitives.dll b/Editor/library/mono/4.5/Facades/Microsoft.Win32.Primitives.dll new file mode 100644 index 0000000..74aaa58 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/Microsoft.Win32.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/Microsoft.Win32.Registry.AccessControl.dll b/Editor/library/mono/4.5/Facades/Microsoft.Win32.Registry.AccessControl.dll new file mode 100644 index 0000000..d34de7a Binary files /dev/null and b/Editor/library/mono/4.5/Facades/Microsoft.Win32.Registry.AccessControl.dll differ diff --git a/Editor/library/mono/4.5/Facades/Microsoft.Win32.Registry.dll b/Editor/library/mono/4.5/Facades/Microsoft.Win32.Registry.dll new file mode 100644 index 0000000..b9beebe Binary files /dev/null and b/Editor/library/mono/4.5/Facades/Microsoft.Win32.Registry.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.AppContext.dll b/Editor/library/mono/4.5/Facades/System.AppContext.dll new file mode 100644 index 0000000..3402bb0 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.AppContext.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Collections.Concurrent.dll b/Editor/library/mono/4.5/Facades/System.Collections.Concurrent.dll new file mode 100644 index 0000000..bcb9a5e Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Collections.Concurrent.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Collections.NonGeneric.dll b/Editor/library/mono/4.5/Facades/System.Collections.NonGeneric.dll new file mode 100644 index 0000000..9dba86c Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Collections.NonGeneric.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Collections.Specialized.dll b/Editor/library/mono/4.5/Facades/System.Collections.Specialized.dll new file mode 100644 index 0000000..d04d6a0 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Collections.Specialized.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Collections.dll b/Editor/library/mono/4.5/Facades/System.Collections.dll new file mode 100644 index 0000000..51a515a Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Collections.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ComponentModel.Annotations.dll b/Editor/library/mono/4.5/Facades/System.ComponentModel.Annotations.dll new file mode 100644 index 0000000..d40f0da Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ComponentModel.Annotations.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ComponentModel.EventBasedAsync.dll b/Editor/library/mono/4.5/Facades/System.ComponentModel.EventBasedAsync.dll new file mode 100644 index 0000000..3725252 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ComponentModel.EventBasedAsync.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ComponentModel.Primitives.dll b/Editor/library/mono/4.5/Facades/System.ComponentModel.Primitives.dll new file mode 100644 index 0000000..9b74a93 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ComponentModel.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ComponentModel.TypeConverter.dll b/Editor/library/mono/4.5/Facades/System.ComponentModel.TypeConverter.dll new file mode 100644 index 0000000..5f26d92 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ComponentModel.TypeConverter.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ComponentModel.dll b/Editor/library/mono/4.5/Facades/System.ComponentModel.dll new file mode 100644 index 0000000..8f72374 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ComponentModel.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Console.dll b/Editor/library/mono/4.5/Facades/System.Console.dll new file mode 100644 index 0000000..8c0725b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Console.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Data.Common.dll b/Editor/library/mono/4.5/Facades/System.Data.Common.dll new file mode 100644 index 0000000..e43b145 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Data.Common.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Data.SqlClient.dll b/Editor/library/mono/4.5/Facades/System.Data.SqlClient.dll new file mode 100644 index 0000000..af53159 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Data.SqlClient.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.Contracts.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.Contracts.dll new file mode 100644 index 0000000..a4e6d6e Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.Contracts.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.Debug.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.Debug.dll new file mode 100644 index 0000000..dcf1ebc Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.Debug.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.FileVersionInfo.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.FileVersionInfo.dll new file mode 100644 index 0000000..fe07d9e Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.FileVersionInfo.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.Process.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.Process.dll new file mode 100644 index 0000000..985716f Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.Process.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.StackTrace.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.StackTrace.dll new file mode 100644 index 0000000..3b12234 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.StackTrace.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.TextWriterTraceListener.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.TextWriterTraceListener.dll new file mode 100644 index 0000000..cfbcb80 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.TextWriterTraceListener.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.Tools.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.Tools.dll new file mode 100644 index 0000000..afc38bc Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.Tools.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.TraceEvent.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.TraceEvent.dll new file mode 100644 index 0000000..480a182 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.TraceEvent.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.TraceSource.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.TraceSource.dll new file mode 100644 index 0000000..8b84851 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.TraceSource.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Diagnostics.Tracing.dll b/Editor/library/mono/4.5/Facades/System.Diagnostics.Tracing.dll new file mode 100644 index 0000000..20f1965 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Diagnostics.Tracing.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Drawing.Primitives.dll b/Editor/library/mono/4.5/Facades/System.Drawing.Primitives.dll new file mode 100644 index 0000000..6359afd Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Drawing.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Dynamic.Runtime.dll b/Editor/library/mono/4.5/Facades/System.Dynamic.Runtime.dll new file mode 100644 index 0000000..c996be5 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Dynamic.Runtime.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Globalization.Calendars.dll b/Editor/library/mono/4.5/Facades/System.Globalization.Calendars.dll new file mode 100644 index 0000000..8d36102 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Globalization.Calendars.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Globalization.Extensions.dll b/Editor/library/mono/4.5/Facades/System.Globalization.Extensions.dll new file mode 100644 index 0000000..aa1938c Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Globalization.Extensions.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Globalization.dll b/Editor/library/mono/4.5/Facades/System.Globalization.dll new file mode 100644 index 0000000..7599003 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Globalization.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.Compression.ZipFile.dll b/Editor/library/mono/4.5/Facades/System.IO.Compression.ZipFile.dll new file mode 100644 index 0000000..94a7653 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.Compression.ZipFile.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.FileSystem.AccessControl.dll b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.AccessControl.dll new file mode 100644 index 0000000..c76aef9 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.AccessControl.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.FileSystem.DriveInfo.dll b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.DriveInfo.dll new file mode 100644 index 0000000..897f289 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.DriveInfo.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.FileSystem.Primitives.dll b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.Primitives.dll new file mode 100644 index 0000000..5ad17b2 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.FileSystem.Watcher.dll b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.Watcher.dll new file mode 100644 index 0000000..ddc6e90 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.Watcher.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.FileSystem.dll b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.dll new file mode 100644 index 0000000..b259fc2 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.FileSystem.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.IsolatedStorage.dll b/Editor/library/mono/4.5/Facades/System.IO.IsolatedStorage.dll new file mode 100644 index 0000000..3cc54e8 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.IsolatedStorage.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.MemoryMappedFiles.dll b/Editor/library/mono/4.5/Facades/System.IO.MemoryMappedFiles.dll new file mode 100644 index 0000000..49e108a Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.MemoryMappedFiles.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.Pipes.dll b/Editor/library/mono/4.5/Facades/System.IO.Pipes.dll new file mode 100644 index 0000000..427a054 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.Pipes.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.UnmanagedMemoryStream.dll b/Editor/library/mono/4.5/Facades/System.IO.UnmanagedMemoryStream.dll new file mode 100644 index 0000000..76241a0 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.UnmanagedMemoryStream.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.IO.dll b/Editor/library/mono/4.5/Facades/System.IO.dll new file mode 100644 index 0000000..8dcb896 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.IO.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Linq.Expressions.dll b/Editor/library/mono/4.5/Facades/System.Linq.Expressions.dll new file mode 100644 index 0000000..ff9e76d Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Linq.Expressions.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Linq.Parallel.dll b/Editor/library/mono/4.5/Facades/System.Linq.Parallel.dll new file mode 100644 index 0000000..8828118 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Linq.Parallel.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Linq.Queryable.dll b/Editor/library/mono/4.5/Facades/System.Linq.Queryable.dll new file mode 100644 index 0000000..cf1aaba Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Linq.Queryable.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Linq.dll b/Editor/library/mono/4.5/Facades/System.Linq.dll new file mode 100644 index 0000000..16a4414 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Linq.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.AuthenticationManager.dll b/Editor/library/mono/4.5/Facades/System.Net.AuthenticationManager.dll new file mode 100644 index 0000000..f8266fc Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.AuthenticationManager.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Cache.dll b/Editor/library/mono/4.5/Facades/System.Net.Cache.dll new file mode 100644 index 0000000..49d2566 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Cache.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Http.Rtc.dll b/Editor/library/mono/4.5/Facades/System.Net.Http.Rtc.dll new file mode 100644 index 0000000..1845e9d Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Http.Rtc.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.HttpListener.dll b/Editor/library/mono/4.5/Facades/System.Net.HttpListener.dll new file mode 100644 index 0000000..0141f2b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.HttpListener.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Mail.dll b/Editor/library/mono/4.5/Facades/System.Net.Mail.dll new file mode 100644 index 0000000..e473231 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Mail.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.NameResolution.dll b/Editor/library/mono/4.5/Facades/System.Net.NameResolution.dll new file mode 100644 index 0000000..14aa7bc Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.NameResolution.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.NetworkInformation.dll b/Editor/library/mono/4.5/Facades/System.Net.NetworkInformation.dll new file mode 100644 index 0000000..5aefaed Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.NetworkInformation.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Ping.dll b/Editor/library/mono/4.5/Facades/System.Net.Ping.dll new file mode 100644 index 0000000..7ec8dd5 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Ping.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Primitives.dll b/Editor/library/mono/4.5/Facades/System.Net.Primitives.dll new file mode 100644 index 0000000..40a904c Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Requests.dll b/Editor/library/mono/4.5/Facades/System.Net.Requests.dll new file mode 100644 index 0000000..95cfc1f Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Requests.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Security.dll b/Editor/library/mono/4.5/Facades/System.Net.Security.dll new file mode 100644 index 0000000..f4d4b28 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Security.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.ServicePoint.dll b/Editor/library/mono/4.5/Facades/System.Net.ServicePoint.dll new file mode 100644 index 0000000..ee8c322 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.ServicePoint.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Sockets.dll b/Editor/library/mono/4.5/Facades/System.Net.Sockets.dll new file mode 100644 index 0000000..142de1b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Sockets.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.Utilities.dll b/Editor/library/mono/4.5/Facades/System.Net.Utilities.dll new file mode 100644 index 0000000..407eb1b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.Utilities.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.WebHeaderCollection.dll b/Editor/library/mono/4.5/Facades/System.Net.WebHeaderCollection.dll new file mode 100644 index 0000000..8585f16 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.WebHeaderCollection.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.WebSockets.Client.dll b/Editor/library/mono/4.5/Facades/System.Net.WebSockets.Client.dll new file mode 100644 index 0000000..18078f6 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.WebSockets.Client.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Net.WebSockets.dll b/Editor/library/mono/4.5/Facades/System.Net.WebSockets.dll new file mode 100644 index 0000000..0dcb15e Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Net.WebSockets.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ObjectModel.dll b/Editor/library/mono/4.5/Facades/System.ObjectModel.dll new file mode 100644 index 0000000..b06a0f3 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ObjectModel.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Reflection.Emit.ILGeneration.dll b/Editor/library/mono/4.5/Facades/System.Reflection.Emit.ILGeneration.dll new file mode 100644 index 0000000..4435ea2 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Reflection.Emit.ILGeneration.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Reflection.Emit.Lightweight.dll b/Editor/library/mono/4.5/Facades/System.Reflection.Emit.Lightweight.dll new file mode 100644 index 0000000..d5d7b54 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Reflection.Emit.Lightweight.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Reflection.Emit.dll b/Editor/library/mono/4.5/Facades/System.Reflection.Emit.dll new file mode 100644 index 0000000..2fbf443 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Reflection.Emit.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Reflection.Extensions.dll b/Editor/library/mono/4.5/Facades/System.Reflection.Extensions.dll new file mode 100644 index 0000000..d7dc48d Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Reflection.Extensions.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Reflection.Primitives.dll b/Editor/library/mono/4.5/Facades/System.Reflection.Primitives.dll new file mode 100644 index 0000000..1897033 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Reflection.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Reflection.TypeExtensions.dll b/Editor/library/mono/4.5/Facades/System.Reflection.TypeExtensions.dll new file mode 100644 index 0000000..51e2c05 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Reflection.TypeExtensions.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Reflection.dll b/Editor/library/mono/4.5/Facades/System.Reflection.dll new file mode 100644 index 0000000..d1fe470 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Reflection.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Resources.Reader.dll b/Editor/library/mono/4.5/Facades/System.Resources.Reader.dll new file mode 100644 index 0000000..3c55fe0 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Resources.Reader.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Resources.ReaderWriter.dll b/Editor/library/mono/4.5/Facades/System.Resources.ReaderWriter.dll new file mode 100644 index 0000000..593bdf0 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Resources.ReaderWriter.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Resources.ResourceManager.dll b/Editor/library/mono/4.5/Facades/System.Resources.ResourceManager.dll new file mode 100644 index 0000000..40e2095 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Resources.ResourceManager.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Resources.Writer.dll b/Editor/library/mono/4.5/Facades/System.Resources.Writer.dll new file mode 100644 index 0000000..d4edd9c Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Resources.Writer.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.CompilerServices.VisualC.dll b/Editor/library/mono/4.5/Facades/System.Runtime.CompilerServices.VisualC.dll new file mode 100644 index 0000000..07921d7 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.CompilerServices.VisualC.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.Extensions.dll b/Editor/library/mono/4.5/Facades/System.Runtime.Extensions.dll new file mode 100644 index 0000000..e746f4a Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.Extensions.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.Handles.dll b/Editor/library/mono/4.5/Facades/System.Runtime.Handles.dll new file mode 100644 index 0000000..2f08c90 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.Handles.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.RuntimeInformation.dll b/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.RuntimeInformation.dll new file mode 100644 index 0000000..e104a9b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.RuntimeInformation.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.WindowsRuntime.dll b/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.WindowsRuntime.dll new file mode 100644 index 0000000..0853d89 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.WindowsRuntime.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.dll b/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.dll new file mode 100644 index 0000000..3735b02 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.InteropServices.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.Numerics.dll b/Editor/library/mono/4.5/Facades/System.Runtime.Numerics.dll new file mode 100644 index 0000000..f123f35 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.Numerics.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Formatters.dll b/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Formatters.dll new file mode 100644 index 0000000..43be29b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Formatters.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Json.dll b/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Json.dll new file mode 100644 index 0000000..072a194 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Json.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Primitives.dll b/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Primitives.dll new file mode 100644 index 0000000..aa99edb Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Xml.dll b/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Xml.dll new file mode 100644 index 0000000..31677a8 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.Serialization.Xml.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Runtime.dll b/Editor/library/mono/4.5/Facades/System.Runtime.dll new file mode 100644 index 0000000..5546504 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Runtime.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.AccessControl.dll b/Editor/library/mono/4.5/Facades/System.Security.AccessControl.dll new file mode 100644 index 0000000..e9d98c6 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.AccessControl.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Claims.dll b/Editor/library/mono/4.5/Facades/System.Security.Claims.dll new file mode 100644 index 0000000..e2afecf Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Claims.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Algorithms.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Algorithms.dll new file mode 100644 index 0000000..638a4cf Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Algorithms.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Csp.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Csp.dll new file mode 100644 index 0000000..85e5165 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Csp.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.DeriveBytes.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.DeriveBytes.dll new file mode 100644 index 0000000..ce4915b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.DeriveBytes.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encoding.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encoding.dll new file mode 100644 index 0000000..772db7c Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encoding.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.Aes.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.Aes.dll new file mode 100644 index 0000000..86177f5 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.Aes.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.ECDiffieHellman.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.ECDiffieHellman.dll new file mode 100644 index 0000000..d47a100 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.ECDiffieHellman.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.ECDsa.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.ECDsa.dll new file mode 100644 index 0000000..6a7f249 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.ECDsa.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.dll new file mode 100644 index 0000000..6b43182 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Encryption.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Hashing.Algorithms.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Hashing.Algorithms.dll new file mode 100644 index 0000000..119082a Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Hashing.Algorithms.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Hashing.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Hashing.dll new file mode 100644 index 0000000..1930b07 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Hashing.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Primitives.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Primitives.dll new file mode 100644 index 0000000..2a3a180 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.ProtectedData.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.ProtectedData.dll new file mode 100644 index 0000000..6eba49b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.ProtectedData.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.RSA.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.RSA.dll new file mode 100644 index 0000000..debcab3 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.RSA.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.RandomNumberGenerator.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.RandomNumberGenerator.dll new file mode 100644 index 0000000..2155e75 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.RandomNumberGenerator.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Cryptography.X509Certificates.dll b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.X509Certificates.dll new file mode 100644 index 0000000..ad021ec Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Cryptography.X509Certificates.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Principal.Windows.dll b/Editor/library/mono/4.5/Facades/System.Security.Principal.Windows.dll new file mode 100644 index 0000000..11cd569 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Principal.Windows.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.Principal.dll b/Editor/library/mono/4.5/Facades/System.Security.Principal.dll new file mode 100644 index 0000000..bbc4540 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.Principal.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Security.SecureString.dll b/Editor/library/mono/4.5/Facades/System.Security.SecureString.dll new file mode 100644 index 0000000..bcfb595 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Security.SecureString.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ServiceModel.Duplex.dll b/Editor/library/mono/4.5/Facades/System.ServiceModel.Duplex.dll new file mode 100644 index 0000000..dbc0857 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ServiceModel.Duplex.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ServiceModel.Http.dll b/Editor/library/mono/4.5/Facades/System.ServiceModel.Http.dll new file mode 100644 index 0000000..5dc9a7e Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ServiceModel.Http.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ServiceModel.NetTcp.dll b/Editor/library/mono/4.5/Facades/System.ServiceModel.NetTcp.dll new file mode 100644 index 0000000..149c86b Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ServiceModel.NetTcp.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ServiceModel.Primitives.dll b/Editor/library/mono/4.5/Facades/System.ServiceModel.Primitives.dll new file mode 100644 index 0000000..b33d849 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ServiceModel.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ServiceModel.Security.dll b/Editor/library/mono/4.5/Facades/System.ServiceModel.Security.dll new file mode 100644 index 0000000..eab1f52 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ServiceModel.Security.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ServiceProcess.ServiceController.dll b/Editor/library/mono/4.5/Facades/System.ServiceProcess.ServiceController.dll new file mode 100644 index 0000000..07c02c5 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ServiceProcess.ServiceController.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Text.Encoding.CodePages.dll b/Editor/library/mono/4.5/Facades/System.Text.Encoding.CodePages.dll new file mode 100644 index 0000000..a4a697d Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Text.Encoding.CodePages.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Text.Encoding.Extensions.dll b/Editor/library/mono/4.5/Facades/System.Text.Encoding.Extensions.dll new file mode 100644 index 0000000..0d9db9d Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Text.Encoding.Extensions.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Text.Encoding.dll b/Editor/library/mono/4.5/Facades/System.Text.Encoding.dll new file mode 100644 index 0000000..5bdf543 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Text.Encoding.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Text.RegularExpressions.dll b/Editor/library/mono/4.5/Facades/System.Text.RegularExpressions.dll new file mode 100644 index 0000000..ce93271 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Text.RegularExpressions.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Threading.AccessControl.dll b/Editor/library/mono/4.5/Facades/System.Threading.AccessControl.dll new file mode 100644 index 0000000..3cfb9f0 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Threading.AccessControl.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Threading.Overlapped.dll b/Editor/library/mono/4.5/Facades/System.Threading.Overlapped.dll new file mode 100644 index 0000000..9adbb2f Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Threading.Overlapped.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Threading.Tasks.Parallel.dll b/Editor/library/mono/4.5/Facades/System.Threading.Tasks.Parallel.dll new file mode 100644 index 0000000..86fc1e2 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Threading.Tasks.Parallel.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Threading.Tasks.dll b/Editor/library/mono/4.5/Facades/System.Threading.Tasks.dll new file mode 100644 index 0000000..ca68dd4 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Threading.Tasks.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Threading.Thread.dll b/Editor/library/mono/4.5/Facades/System.Threading.Thread.dll new file mode 100644 index 0000000..9fd6fb0 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Threading.Thread.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Threading.ThreadPool.dll b/Editor/library/mono/4.5/Facades/System.Threading.ThreadPool.dll new file mode 100644 index 0000000..f577541 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Threading.ThreadPool.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Threading.Timer.dll b/Editor/library/mono/4.5/Facades/System.Threading.Timer.dll new file mode 100644 index 0000000..ccbe1de Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Threading.Timer.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Threading.dll b/Editor/library/mono/4.5/Facades/System.Threading.dll new file mode 100644 index 0000000..c7823d3 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Threading.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.ValueTuple.dll b/Editor/library/mono/4.5/Facades/System.ValueTuple.dll new file mode 100644 index 0000000..02f997d Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.ValueTuple.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Xml.ReaderWriter.dll b/Editor/library/mono/4.5/Facades/System.Xml.ReaderWriter.dll new file mode 100644 index 0000000..1812acf Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Xml.ReaderWriter.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Xml.XDocument.dll b/Editor/library/mono/4.5/Facades/System.Xml.XDocument.dll new file mode 100644 index 0000000..fde2b25 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Xml.XDocument.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Xml.XPath.XDocument.dll b/Editor/library/mono/4.5/Facades/System.Xml.XPath.XDocument.dll new file mode 100644 index 0000000..e1269c3 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Xml.XPath.XDocument.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Xml.XPath.dll b/Editor/library/mono/4.5/Facades/System.Xml.XPath.dll new file mode 100644 index 0000000..e1d74b4 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Xml.XPath.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Xml.XmlDocument.dll b/Editor/library/mono/4.5/Facades/System.Xml.XmlDocument.dll new file mode 100644 index 0000000..e79fc8e Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Xml.XmlDocument.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Xml.XmlSerializer.dll b/Editor/library/mono/4.5/Facades/System.Xml.XmlSerializer.dll new file mode 100644 index 0000000..3f3b638 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Xml.XmlSerializer.dll differ diff --git a/Editor/library/mono/4.5/Facades/System.Xml.Xsl.Primitives.dll b/Editor/library/mono/4.5/Facades/System.Xml.Xsl.Primitives.dll new file mode 100644 index 0000000..4040464 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/System.Xml.Xsl.Primitives.dll differ diff --git a/Editor/library/mono/4.5/Facades/netstandard.dll b/Editor/library/mono/4.5/Facades/netstandard.dll new file mode 100644 index 0000000..13df695 Binary files /dev/null and b/Editor/library/mono/4.5/Facades/netstandard.dll differ diff --git a/Editor/library/mono/4.5/Microsoft.Build.xsd b/Editor/library/mono/4.5/Microsoft.Build.xsd new file mode 100644 index 0000000..e88f00f --- /dev/null +++ b/Editor/library/mono/4.5/Microsoft.Build.xsd @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Editor/library/mono/4.5/Microsoft.CSharp.targets b/Editor/library/mono/4.5/Microsoft.CSharp.targets new file mode 100644 index 0000000..2cd20a1 --- /dev/null +++ b/Editor/library/mono/4.5/Microsoft.CSharp.targets @@ -0,0 +1,142 @@ + + + .cs + C# + + + + false + + + + + + + + $(MSBuildAllProjects);$(MSBuildToolsPath)\Microsoft.CSharp.targets + + + + true + + + + + + + + + + <_ExplicitReference Include="@(_TargetFrameworkDirectories->'%(FullPath)\mscorlib.dll')" Condition="Exists('%(FullPath)\mscorlib.dll')"> + false + + + + <_ExplicitMSCorlibPath>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToStandardLibraries ('$(TargetFrameworkIdentifier)', '$(TargetFrameworkVersion)', '$(TargetFrameworkProfile)'))\mscorlib.dll + + + <_ExplicitReference Include="@(_TargetFrameworkDirectories->'%(FullPath)\mscorlib.dll')" Condition="Exists('%(FullPath)\mscorlib.dll')"> + false + + + + <_ExplicitReference Include="$(_ExplicitMSCorlibPath)" Condition="Exists('$(_ExplicitMSCorlibPath)')"> + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $(ResolveAssemblyReferencesDependsOn);_AddCorlibReference + + + + +// <autogenerated /> +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute("$(TargetFrameworkMoniker)", FrameworkDisplayName = "$(TargetFrameworkMonikerDisplayName)")] + + + + diff --git a/Editor/library/mono/4.5/Microsoft.Common.targets b/Editor/library/mono/4.5/Microsoft.Common.targets new file mode 100644 index 0000000..ff82f81 --- /dev/null +++ b/Editor/library/mono/4.5/Microsoft.Common.targets @@ -0,0 +1,957 @@ + + + true + true + + + + + + + + Exe + .exe + .exe + .dll + .netmodule + + + + $(MSBuildProjectDirectory)\ + + + + + 11.0 + + + + $(MSBuildProjectName) + $(OutputPath)\ + bin\Debug\ + + .NETFramework + v4.0 + + $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion),Profile=$(TargetFrameworkProfile) + $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion) + + + + $(OutputPath) + $(OutDir)\ + + <_OriginalConfiguration>$(Configuration) + Debug + $(Configuration) + + <_OriginalPlatform>$(Platform) + AnyCPU + $(Platform) + + + + + true + System.Core;$(AdditionalExplicitAssemblyReferences) + + + + true + + + + obj\ + $(BaseIntermediateOutputPath)\ + $(MSBuildProjectFile).FilesWrittenAbsolute.txt + + + + $(BaseIntermediateOutputPath)$(Configuration)\ + $(BaseIntermediateOutputPath)$(PlatformName)\$(Configuration)\ + + + + $(IntermediateOutputPath)\ + + + + + + + <_OutDirItem Include="$(OutDir)"/> + + + + $(AssemblyName) + $(TargetName)$(TargetExt) + @(_OutDirItem->'%(FullPath)') + @(_OutDirItem->'%(FullPath)\$(TargetFileName)') + $(MSBuildAllProjects);$(MSBuildProjectFullPath);$(MSBuildToolsPath)\Microsoft.Common.targets + $(AssemblyOriginatorKeyFile) + true + + + + + + + + + + + + + AssignLinkMetadata + + + + + + + + + + + + + + + + + + + + + + + + + <_EmbeddedResourceWithLinkAssigned Remove="@(_EmbeddedResourceWithLinkAssigned)" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_TargetFrameworkDirectories Include="$(_TargetFrameworkDirectories);$(TargetFrameworkDirectory)" KeepDuplicates="false" /> + + + @(_TargetFrameworkDirectories) + + + + + + <_DesignTimeFacadeAssemblies Include="%(DesignTimeFacadeDirectories.Identity)\*.dll"/> + + + + $(TargetFrameworkDirectory);@(DesignTimeFacadeDirectories) + + + + + + + .exe; + .dll + + + + .exe.mdb; + .dll.mdb; + .pdb; + .xml + + + + {CandidateAssemblyFiles}; + $(ReferencePath); + @(AdditionalReferencePath); + {HintPathFromItem}; + {TargetFrameworkDirectory}; + {PkgConfig}; + {GAC}; + {RawFileName}; + $(OutDir) + + + + BeforeResolveReferences; + ResolveProjectReferences; + ResolveAssemblyReferences; + AfterResolveReferences + + + + GetFrameworkPaths; + GetReferenceAssemblyPaths; + PrepareForBuild + + + + + $(IntermediateOutputPath)$(TargetFrameworkMoniker).AssemblyAttribute$(DefaultLanguageSourceExtension) + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BuildOnlySettings; + BeforeBuild; + CoreBuild; + AfterBuild + + + + + + + + + + + + PrepareForBuild; + GetFrameworkPaths; + GetReferenceAssemblyPaths; + PreBuildEvent; + ResolveReferences; + CopyFilesMarkedCopyLocal; + PrepareResources; + Compile; + PrepareForRun; + DeployOutputFiles; + _RecordCleanFile; + PostBuildEvent + + + + + + + + + + + + + ResolveReferences; + GenerateTargetFrameworkMonikerAttribute; + BeforeCompile; + _TimestampBeforeCompile; + CoreCompile; + _TimestampAfterCompile; + AfterCompile + + + + + + + + + + + DeployOutputFiles + + + + + + + AssignTargetPaths; + SplitResourcesByCulture; + CreateManifestResourceNames; + CopyNonResxEmbeddedResources; + GenerateResources; + GenerateSatelliteAssemblies; + CompileLicxFiles + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BeforeRebuild; + Clean; + $(MSBuildProjectDefaultTargets); + AfterRebuild; + + + + BeforeRebuild; + Clean; + Build; + AfterRebuild; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BeforeClean; + CleanReferencedProjects; + CoreClean; + AfterClean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + $(ResolveReferencesDependsOn); + ImplicitlyExpandDesignTimeFacades + + + + $(ImplicitlyExpandDesignTimeFacadesDependsOn); + GetReferenceAssemblyPaths + + + + + + + <_HasReferenceToSystemRuntime Condition="'%(_ResolvedDependencyFiles.Filename)' == 'System.Runtime'">true + + + + + + + false + false + ImplicitlyExpandDesignTimeFacades + + <_ResolveAssemblyReferenceResolvedFiles Include="@(ReferencePath)" Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandDesignTimeFacades'" /> + + + + + + + + diff --git a/Editor/library/mono/4.5/Microsoft.Common.tasks b/Editor/library/mono/4.5/Microsoft.Common.tasks new file mode 100644 index 0000000..caf108e --- /dev/null +++ b/Editor/library/mono/4.5/Microsoft.Common.tasks @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Editor/library/mono/4.5/Microsoft.VisualBasic.dll b/Editor/library/mono/4.5/Microsoft.VisualBasic.dll new file mode 100644 index 0000000..b9de5cd Binary files /dev/null and b/Editor/library/mono/4.5/Microsoft.VisualBasic.dll differ diff --git a/Editor/library/mono/4.5/Microsoft.VisualBasic.targets b/Editor/library/mono/4.5/Microsoft.VisualBasic.targets new file mode 100644 index 0000000..cf35f82 --- /dev/null +++ b/Editor/library/mono/4.5/Microsoft.VisualBasic.targets @@ -0,0 +1,120 @@ + + + .vb + VB + + + + + + + + CONFIG="$(Configuration)" + $(FinalDefineConstants),DEBUG=-1 + $(FinalDefineConstants),TRACE=-1 + $(FinalDefineConstants),_MyType="$(MyType)" + $(FinalDefineConstants),PLATFORM="$(Platform)" + $(FinalDefineConstants),PLATFORM="AnyCPU" + $(FinalDefineConstants),$(DefineConstants) + + <_NoWarnings Condition=" '$(WarningLevel)' == '0' ">true + <_NoWarnings Condition=" '$(WarningLevel)' == '1' ">false + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + vbnc.exe + + + diff --git a/Editor/library/mono/4.5/Microsoft.VisualC.dll b/Editor/library/mono/4.5/Microsoft.VisualC.dll new file mode 100644 index 0000000..5ddbec5 Binary files /dev/null and b/Editor/library/mono/4.5/Microsoft.VisualC.dll differ diff --git a/Editor/library/mono/4.5/System.ComponentModel.Composition.dll b/Editor/library/mono/4.5/System.ComponentModel.Composition.dll new file mode 100644 index 0000000..f5842b4 Binary files /dev/null and b/Editor/library/mono/4.5/System.ComponentModel.Composition.dll differ diff --git a/Editor/library/mono/4.5/System.ComponentModel.DataAnnotations.dll b/Editor/library/mono/4.5/System.ComponentModel.DataAnnotations.dll new file mode 100644 index 0000000..f3386e4 Binary files /dev/null and b/Editor/library/mono/4.5/System.ComponentModel.DataAnnotations.dll differ diff --git a/Editor/library/mono/4.5/System.Configuration.Install.dll b/Editor/library/mono/4.5/System.Configuration.Install.dll new file mode 100644 index 0000000..9dd98ec Binary files /dev/null and b/Editor/library/mono/4.5/System.Configuration.Install.dll differ diff --git a/Editor/library/mono/4.5/System.Configuration.dll b/Editor/library/mono/4.5/System.Configuration.dll new file mode 100644 index 0000000..82cfacb Binary files /dev/null and b/Editor/library/mono/4.5/System.Configuration.dll differ diff --git a/Editor/library/mono/4.5/System.Core.dll b/Editor/library/mono/4.5/System.Core.dll new file mode 100644 index 0000000..a97ebaa Binary files /dev/null and b/Editor/library/mono/4.5/System.Core.dll differ diff --git a/Editor/library/mono/4.5/System.Data.DataSetExtensions.dll b/Editor/library/mono/4.5/System.Data.DataSetExtensions.dll new file mode 100644 index 0000000..120cbcd Binary files /dev/null and b/Editor/library/mono/4.5/System.Data.DataSetExtensions.dll differ diff --git a/Editor/library/mono/4.5/System.Data.Services.Client.dll b/Editor/library/mono/4.5/System.Data.Services.Client.dll new file mode 100644 index 0000000..bc7ab21 Binary files /dev/null and b/Editor/library/mono/4.5/System.Data.Services.Client.dll differ diff --git a/Editor/library/mono/4.5/System.Data.Services.dll b/Editor/library/mono/4.5/System.Data.Services.dll new file mode 100644 index 0000000..d77d6f3 Binary files /dev/null and b/Editor/library/mono/4.5/System.Data.Services.dll differ diff --git a/Editor/library/mono/4.5/System.Data.dll b/Editor/library/mono/4.5/System.Data.dll new file mode 100644 index 0000000..b43ec0d Binary files /dev/null and b/Editor/library/mono/4.5/System.Data.dll differ diff --git a/Editor/library/mono/4.5/System.Deployment.dll b/Editor/library/mono/4.5/System.Deployment.dll new file mode 100644 index 0000000..488d248 Binary files /dev/null and b/Editor/library/mono/4.5/System.Deployment.dll differ diff --git a/Editor/library/mono/4.5/System.Dynamic.dll b/Editor/library/mono/4.5/System.Dynamic.dll new file mode 100644 index 0000000..69b85ef Binary files /dev/null and b/Editor/library/mono/4.5/System.Dynamic.dll differ diff --git a/Editor/library/mono/4.5/System.IO.Compression.FileSystem.dll b/Editor/library/mono/4.5/System.IO.Compression.FileSystem.dll new file mode 100644 index 0000000..ee6c22b Binary files /dev/null and b/Editor/library/mono/4.5/System.IO.Compression.FileSystem.dll differ diff --git a/Editor/library/mono/4.5/System.IO.Compression.dll b/Editor/library/mono/4.5/System.IO.Compression.dll new file mode 100644 index 0000000..62e965c Binary files /dev/null and b/Editor/library/mono/4.5/System.IO.Compression.dll differ diff --git a/Editor/library/mono/4.5/System.Json.Microsoft.dll b/Editor/library/mono/4.5/System.Json.Microsoft.dll new file mode 100644 index 0000000..3bac046 Binary files /dev/null and b/Editor/library/mono/4.5/System.Json.Microsoft.dll differ diff --git a/Editor/library/mono/4.5/System.Json.dll b/Editor/library/mono/4.5/System.Json.dll new file mode 100644 index 0000000..0663d9a Binary files /dev/null and b/Editor/library/mono/4.5/System.Json.dll differ diff --git a/Editor/library/mono/4.5/System.Management.dll b/Editor/library/mono/4.5/System.Management.dll new file mode 100644 index 0000000..793770b Binary files /dev/null and b/Editor/library/mono/4.5/System.Management.dll differ diff --git a/Editor/library/mono/4.5/System.Net.Http.WebRequest.dll b/Editor/library/mono/4.5/System.Net.Http.WebRequest.dll new file mode 100644 index 0000000..2444b2f Binary files /dev/null and b/Editor/library/mono/4.5/System.Net.Http.WebRequest.dll differ diff --git a/Editor/library/mono/4.5/System.Net.Http.dll b/Editor/library/mono/4.5/System.Net.Http.dll new file mode 100644 index 0000000..914d982 Binary files /dev/null and b/Editor/library/mono/4.5/System.Net.Http.dll differ diff --git a/Editor/library/mono/4.5/System.Net.dll b/Editor/library/mono/4.5/System.Net.dll new file mode 100644 index 0000000..ac97410 Binary files /dev/null and b/Editor/library/mono/4.5/System.Net.dll differ diff --git a/Editor/library/mono/4.5/System.Numerics.Vectors.dll b/Editor/library/mono/4.5/System.Numerics.Vectors.dll new file mode 100644 index 0000000..7d409c8 Binary files /dev/null and b/Editor/library/mono/4.5/System.Numerics.Vectors.dll differ diff --git a/Editor/library/mono/4.5/System.Numerics.dll b/Editor/library/mono/4.5/System.Numerics.dll new file mode 100644 index 0000000..093b631 Binary files /dev/null and b/Editor/library/mono/4.5/System.Numerics.dll differ diff --git a/Editor/library/mono/4.5/System.Runtime.Serialization.Formatters.Soap.dll b/Editor/library/mono/4.5/System.Runtime.Serialization.Formatters.Soap.dll new file mode 100644 index 0000000..630f42a Binary files /dev/null and b/Editor/library/mono/4.5/System.Runtime.Serialization.Formatters.Soap.dll differ diff --git a/Editor/library/mono/4.5/System.Runtime.Serialization.dll b/Editor/library/mono/4.5/System.Runtime.Serialization.dll new file mode 100644 index 0000000..0066c19 Binary files /dev/null and b/Editor/library/mono/4.5/System.Runtime.Serialization.dll differ diff --git a/Editor/library/mono/4.5/System.Security.dll b/Editor/library/mono/4.5/System.Security.dll new file mode 100644 index 0000000..d9525ca Binary files /dev/null and b/Editor/library/mono/4.5/System.Security.dll differ diff --git a/Editor/library/mono/4.5/System.Web.dll b/Editor/library/mono/4.5/System.Web.dll new file mode 100644 index 0000000..70ff78b Binary files /dev/null and b/Editor/library/mono/4.5/System.Web.dll differ diff --git a/Editor/library/mono/4.5/System.Xml.Linq.dll b/Editor/library/mono/4.5/System.Xml.Linq.dll new file mode 100644 index 0000000..4ecd762 Binary files /dev/null and b/Editor/library/mono/4.5/System.Xml.Linq.dll differ diff --git a/Editor/library/mono/4.5/System.Xml.Serialization.dll b/Editor/library/mono/4.5/System.Xml.Serialization.dll new file mode 100644 index 0000000..5d1e6fc Binary files /dev/null and b/Editor/library/mono/4.5/System.Xml.Serialization.dll differ diff --git a/Editor/library/mono/4.5/System.Xml.dll b/Editor/library/mono/4.5/System.Xml.dll new file mode 100644 index 0000000..957d98c Binary files /dev/null and b/Editor/library/mono/4.5/System.Xml.dll differ diff --git a/Editor/library/mono/4.5/System.dll b/Editor/library/mono/4.5/System.dll new file mode 100644 index 0000000..503aa86 Binary files /dev/null and b/Editor/library/mono/4.5/System.dll differ diff --git a/Editor/library/mono/4.5/WebMatrix.Data.dll b/Editor/library/mono/4.5/WebMatrix.Data.dll new file mode 100644 index 0000000..fbea7eb Binary files /dev/null and b/Editor/library/mono/4.5/WebMatrix.Data.dll differ diff --git a/Editor/library/mono/4.5/cscompmgd.dll b/Editor/library/mono/4.5/cscompmgd.dll new file mode 100644 index 0000000..2284aec Binary files /dev/null and b/Editor/library/mono/4.5/cscompmgd.dll differ diff --git a/Editor/library/mono/4.5/mscorlib.dll b/Editor/library/mono/4.5/mscorlib.dll new file mode 100644 index 0000000..13fa4f8 Binary files /dev/null and b/Editor/library/mono/4.5/mscorlib.dll differ diff --git a/Editor/library/mono/net8.0/Microsoft.CSharp.dll b/Editor/library/mono/net8.0/Microsoft.CSharp.dll deleted file mode 100644 index 0aa8bc1..0000000 Binary files a/Editor/library/mono/net8.0/Microsoft.CSharp.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/Microsoft.NETCore.App.deps.json b/Editor/library/mono/net8.0/Microsoft.NETCore.App.deps.json deleted file mode 100644 index c16757d..0000000 --- a/Editor/library/mono/net8.0/Microsoft.NETCore.App.deps.json +++ /dev/null @@ -1,840 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v8.0/win-x64", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v8.0": {}, - ".NETCoreApp,Version=v8.0/win-x64": { - "Microsoft.NETCore.App.Runtime.Mono.win-x64/8.0.22": { - "runtime": { - "System.Private.CoreLib.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "Microsoft.CSharp.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "Microsoft.VisualBasic.Core.dll": { - "assemblyVersion": "13.0.0.0", - "fileVersion": "13.0.2225.52707" - }, - "Microsoft.VisualBasic.dll": { - "assemblyVersion": "10.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "Microsoft.Win32.Primitives.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "Microsoft.Win32.Registry.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "mscorlib.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "netstandard.dll": { - "assemblyVersion": "2.1.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.AppContext.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Buffers.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Collections.Concurrent.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Collections.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Collections.Immutable.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Collections.NonGeneric.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Collections.Specialized.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ComponentModel.Annotations.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ComponentModel.DataAnnotations.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ComponentModel.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ComponentModel.EventBasedAsync.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ComponentModel.Primitives.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ComponentModel.TypeConverter.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Configuration.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Console.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Core.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Data.Common.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Data.DataSetExtensions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Data.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.Contracts.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.Debug.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.DiagnosticSource.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.FileVersionInfo.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.Process.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.StackTrace.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.TextWriterTraceListener.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.Tools.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.TraceSource.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Diagnostics.Tracing.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Drawing.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Drawing.Primitives.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Dynamic.Runtime.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Formats.Asn1.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Formats.Tar.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Globalization.Calendars.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Globalization.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Globalization.Extensions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.Compression.Brotli.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.Compression.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.Compression.FileSystem.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.Compression.ZipFile.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.FileSystem.AccessControl.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.FileSystem.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.FileSystem.DriveInfo.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.FileSystem.Primitives.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.FileSystem.Watcher.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.IsolatedStorage.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.MemoryMappedFiles.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.Pipes.AccessControl.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.Pipes.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.IO.UnmanagedMemoryStream.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Linq.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Linq.Expressions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Linq.Parallel.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Linq.Queryable.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Memory.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Http.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Http.Json.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.HttpListener.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Mail.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.NameResolution.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.NetworkInformation.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Ping.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Primitives.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Quic.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Requests.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Security.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.ServicePoint.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.Sockets.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.WebClient.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.WebHeaderCollection.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.WebProxy.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.WebSockets.Client.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Net.WebSockets.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Numerics.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Numerics.Vectors.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ObjectModel.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Private.DataContractSerialization.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Private.Uri.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Private.Xml.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Private.Xml.Linq.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.DispatchProxy.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.Emit.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.Emit.ILGeneration.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.Emit.Lightweight.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.Extensions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.Metadata.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.Primitives.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Reflection.TypeExtensions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Resources.Reader.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Resources.ResourceManager.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Resources.Writer.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.CompilerServices.Unsafe.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.CompilerServices.VisualC.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Extensions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Handles.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.InteropServices.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.InteropServices.JavaScript.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.InteropServices.RuntimeInformation.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Intrinsics.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Loader.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Numerics.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Serialization.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Serialization.Formatters.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Serialization.Json.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Serialization.Primitives.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Runtime.Serialization.Xml.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.AccessControl.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Claims.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Cryptography.Algorithms.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Cryptography.Cng.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Cryptography.Csp.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Cryptography.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Cryptography.Encoding.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Cryptography.OpenSsl.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Cryptography.Primitives.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Cryptography.X509Certificates.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Principal.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.Principal.Windows.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Security.SecureString.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ServiceModel.Web.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ServiceProcess.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Text.Encoding.CodePages.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Text.Encoding.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Text.Encoding.Extensions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Text.Encodings.Web.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Text.Json.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Text.RegularExpressions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.Channels.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.Overlapped.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.Tasks.Dataflow.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.Tasks.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.Tasks.Extensions.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.Tasks.Parallel.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.Thread.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.ThreadPool.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Threading.Timer.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Transactions.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Transactions.Local.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.ValueTuple.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Web.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Web.HttpUtility.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Windows.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.Linq.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.ReaderWriter.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.Serialization.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.XDocument.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.XmlDocument.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.XmlSerializer.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.XPath.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "System.Xml.XPath.XDocument.dll": { - "assemblyVersion": "8.0.0.0", - "fileVersion": "8.0.2225.52707" - }, - "WindowsBase.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "8.0.2225.52707" - } - }, - "native": { - "coreclr.dll": { - "fileVersion": "8.0.2225.52707" - }, - "msquic.dll": { - "fileVersion": "2.4.8.0" - }, - "System.IO.Compression.Native.dll": { - "fileVersion": "8.0.2225.52707" - }, - "hostpolicy.dll": { - "fileVersion": "8.0.2225.52707" - }, - "Microsoft.DiaSymReader.Native.amd64.dll": { - "fileVersion": "14.42.34436.0" - } - } - } - } - }, - "libraries": { - "Microsoft.NETCore.App.Runtime.Mono.win-x64/8.0.22": { - "type": "package", - "serviceable": true, - "sha512": "", - "path": "microsoft.netcore.app.runtime.mono.win-x64/8.0.22" - } - }, - "runtimes": { - "win-x64": [ - "win", - "any", - "base" - ], - "win-x64-aot": [ - "win-aot", - "win-x64", - "win", - "aot", - "any", - "base" - ], - "win10-x64": [ - "win10", - "win81-x64", - "win81", - "win8-x64", - "win8", - "win7-x64", - "win7", - "win-x64", - "win", - "any", - "base" - ], - "win10-x64-aot": [ - "win10-aot", - "win10-x64", - "win10", - "win81-x64-aot", - "win81-aot", - "win81-x64", - "win81", - "win8-x64-aot", - "win8-aot", - "win8-x64", - "win8", - "win7-x64-aot", - "win7-aot", - "win7-x64", - "win7", - "win-x64-aot", - "win-aot", - "win-x64", - "win", - "aot", - "any", - "base" - ], - "win7-x64": [ - "win7", - "win-x64", - "win", - "any", - "base" - ], - "win7-x64-aot": [ - "win7-aot", - "win7-x64", - "win7", - "win-x64-aot", - "win-aot", - "win-x64", - "win", - "aot", - "any", - "base" - ], - "win8-x64": [ - "win8", - "win7-x64", - "win7", - "win-x64", - "win", - "any", - "base" - ], - "win8-x64-aot": [ - "win8-aot", - "win8-x64", - "win8", - "win7-x64-aot", - "win7-aot", - "win7-x64", - "win7", - "win-x64-aot", - "win-aot", - "win-x64", - "win", - "aot", - "any", - "base" - ], - "win81-x64": [ - "win81", - "win8-x64", - "win8", - "win7-x64", - "win7", - "win-x64", - "win", - "any", - "base" - ], - "win81-x64-aot": [ - "win81-aot", - "win81-x64", - "win81", - "win8-x64-aot", - "win8-aot", - "win8-x64", - "win8", - "win7-x64-aot", - "win7-aot", - "win7-x64", - "win7", - "win-x64-aot", - "win-aot", - "win-x64", - "win", - "aot", - "any", - "base" - ] - } -} \ No newline at end of file diff --git a/Editor/library/mono/net8.0/Microsoft.NETCore.App.runtimeconfig.json b/Editor/library/mono/net8.0/Microsoft.NETCore.App.runtimeconfig.json deleted file mode 100644 index c4fb572..0000000 --- a/Editor/library/mono/net8.0/Microsoft.NETCore.App.runtimeconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "runtimeOptions": { - "tfm": "net8.0" - } -} \ No newline at end of file diff --git a/Editor/library/mono/net8.0/Microsoft.VisualBasic.Core.dll b/Editor/library/mono/net8.0/Microsoft.VisualBasic.Core.dll deleted file mode 100644 index bda0df7..0000000 Binary files a/Editor/library/mono/net8.0/Microsoft.VisualBasic.Core.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/Microsoft.VisualBasic.dll b/Editor/library/mono/net8.0/Microsoft.VisualBasic.dll deleted file mode 100644 index 348a13e..0000000 Binary files a/Editor/library/mono/net8.0/Microsoft.VisualBasic.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/Microsoft.Win32.Primitives.dll b/Editor/library/mono/net8.0/Microsoft.Win32.Primitives.dll deleted file mode 100644 index f1f52be..0000000 Binary files a/Editor/library/mono/net8.0/Microsoft.Win32.Primitives.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/Microsoft.Win32.Registry.dll b/Editor/library/mono/net8.0/Microsoft.Win32.Registry.dll deleted file mode 100644 index 2889290..0000000 Binary files a/Editor/library/mono/net8.0/Microsoft.Win32.Registry.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.AppContext.dll b/Editor/library/mono/net8.0/System.AppContext.dll deleted file mode 100644 index 83dd276..0000000 Binary files a/Editor/library/mono/net8.0/System.AppContext.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Buffers.dll b/Editor/library/mono/net8.0/System.Buffers.dll deleted file mode 100644 index 8892b4f..0000000 Binary files a/Editor/library/mono/net8.0/System.Buffers.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Collections.Concurrent.dll b/Editor/library/mono/net8.0/System.Collections.Concurrent.dll deleted file mode 100644 index bbbf3b6..0000000 Binary files a/Editor/library/mono/net8.0/System.Collections.Concurrent.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Collections.Immutable.dll b/Editor/library/mono/net8.0/System.Collections.Immutable.dll deleted file mode 100644 index 9d8188d..0000000 Binary files a/Editor/library/mono/net8.0/System.Collections.Immutable.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Collections.NonGeneric.dll b/Editor/library/mono/net8.0/System.Collections.NonGeneric.dll deleted file mode 100644 index e7aaa90..0000000 Binary files a/Editor/library/mono/net8.0/System.Collections.NonGeneric.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Collections.Specialized.dll b/Editor/library/mono/net8.0/System.Collections.Specialized.dll deleted file mode 100644 index a70f693..0000000 Binary files a/Editor/library/mono/net8.0/System.Collections.Specialized.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Collections.dll b/Editor/library/mono/net8.0/System.Collections.dll deleted file mode 100644 index 233388a..0000000 Binary files a/Editor/library/mono/net8.0/System.Collections.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ComponentModel.Annotations.dll b/Editor/library/mono/net8.0/System.ComponentModel.Annotations.dll deleted file mode 100644 index d73c7b8..0000000 Binary files a/Editor/library/mono/net8.0/System.ComponentModel.Annotations.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ComponentModel.DataAnnotations.dll b/Editor/library/mono/net8.0/System.ComponentModel.DataAnnotations.dll deleted file mode 100644 index 6f4638d..0000000 Binary files a/Editor/library/mono/net8.0/System.ComponentModel.DataAnnotations.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ComponentModel.EventBasedAsync.dll b/Editor/library/mono/net8.0/System.ComponentModel.EventBasedAsync.dll deleted file mode 100644 index c03acb4..0000000 Binary files a/Editor/library/mono/net8.0/System.ComponentModel.EventBasedAsync.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ComponentModel.Primitives.dll b/Editor/library/mono/net8.0/System.ComponentModel.Primitives.dll deleted file mode 100644 index ebf1637..0000000 Binary files a/Editor/library/mono/net8.0/System.ComponentModel.Primitives.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ComponentModel.TypeConverter.dll b/Editor/library/mono/net8.0/System.ComponentModel.TypeConverter.dll deleted file mode 100644 index 864887f..0000000 Binary files a/Editor/library/mono/net8.0/System.ComponentModel.TypeConverter.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ComponentModel.dll b/Editor/library/mono/net8.0/System.ComponentModel.dll deleted file mode 100644 index aea91fa..0000000 Binary files a/Editor/library/mono/net8.0/System.ComponentModel.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Configuration.dll b/Editor/library/mono/net8.0/System.Configuration.dll deleted file mode 100644 index e88c436..0000000 Binary files a/Editor/library/mono/net8.0/System.Configuration.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Console.dll b/Editor/library/mono/net8.0/System.Console.dll deleted file mode 100644 index c326266..0000000 Binary files a/Editor/library/mono/net8.0/System.Console.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Core.dll b/Editor/library/mono/net8.0/System.Core.dll deleted file mode 100644 index b85a86c..0000000 Binary files a/Editor/library/mono/net8.0/System.Core.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Data.Common.dll b/Editor/library/mono/net8.0/System.Data.Common.dll deleted file mode 100644 index 5b269a3..0000000 Binary files a/Editor/library/mono/net8.0/System.Data.Common.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Data.DataSetExtensions.dll b/Editor/library/mono/net8.0/System.Data.DataSetExtensions.dll deleted file mode 100644 index e726e21..0000000 Binary files a/Editor/library/mono/net8.0/System.Data.DataSetExtensions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Data.dll b/Editor/library/mono/net8.0/System.Data.dll deleted file mode 100644 index b6eba6a..0000000 Binary files a/Editor/library/mono/net8.0/System.Data.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.Contracts.dll b/Editor/library/mono/net8.0/System.Diagnostics.Contracts.dll deleted file mode 100644 index 68a1109..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.Contracts.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.Debug.dll b/Editor/library/mono/net8.0/System.Diagnostics.Debug.dll deleted file mode 100644 index e69f352..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.Debug.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.DiagnosticSource.dll b/Editor/library/mono/net8.0/System.Diagnostics.DiagnosticSource.dll deleted file mode 100644 index cad11fa..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.DiagnosticSource.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.FileVersionInfo.dll b/Editor/library/mono/net8.0/System.Diagnostics.FileVersionInfo.dll deleted file mode 100644 index f246452..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.FileVersionInfo.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.Process.dll b/Editor/library/mono/net8.0/System.Diagnostics.Process.dll deleted file mode 100644 index a963dd9..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.Process.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.StackTrace.dll b/Editor/library/mono/net8.0/System.Diagnostics.StackTrace.dll deleted file mode 100644 index 2eb61ab..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.StackTrace.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.TextWriterTraceListener.dll b/Editor/library/mono/net8.0/System.Diagnostics.TextWriterTraceListener.dll deleted file mode 100644 index 94d373b..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.TextWriterTraceListener.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.Tools.dll b/Editor/library/mono/net8.0/System.Diagnostics.Tools.dll deleted file mode 100644 index d243fde..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.Tools.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.TraceSource.dll b/Editor/library/mono/net8.0/System.Diagnostics.TraceSource.dll deleted file mode 100644 index 8729505..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.TraceSource.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Diagnostics.Tracing.dll b/Editor/library/mono/net8.0/System.Diagnostics.Tracing.dll deleted file mode 100644 index c22d44d..0000000 Binary files a/Editor/library/mono/net8.0/System.Diagnostics.Tracing.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Drawing.Primitives.dll b/Editor/library/mono/net8.0/System.Drawing.Primitives.dll deleted file mode 100644 index 444b9bc..0000000 Binary files a/Editor/library/mono/net8.0/System.Drawing.Primitives.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Drawing.dll b/Editor/library/mono/net8.0/System.Drawing.dll deleted file mode 100644 index 8dd6a2c..0000000 Binary files a/Editor/library/mono/net8.0/System.Drawing.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Dynamic.Runtime.dll b/Editor/library/mono/net8.0/System.Dynamic.Runtime.dll deleted file mode 100644 index fc25f02..0000000 Binary files a/Editor/library/mono/net8.0/System.Dynamic.Runtime.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Formats.Asn1.dll b/Editor/library/mono/net8.0/System.Formats.Asn1.dll deleted file mode 100644 index df206e0..0000000 Binary files a/Editor/library/mono/net8.0/System.Formats.Asn1.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Formats.Tar.dll b/Editor/library/mono/net8.0/System.Formats.Tar.dll deleted file mode 100644 index 1b756d5..0000000 Binary files a/Editor/library/mono/net8.0/System.Formats.Tar.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Globalization.Calendars.dll b/Editor/library/mono/net8.0/System.Globalization.Calendars.dll deleted file mode 100644 index fd90c8b..0000000 Binary files a/Editor/library/mono/net8.0/System.Globalization.Calendars.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Globalization.Extensions.dll b/Editor/library/mono/net8.0/System.Globalization.Extensions.dll deleted file mode 100644 index 9ddd427..0000000 Binary files a/Editor/library/mono/net8.0/System.Globalization.Extensions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Globalization.dll b/Editor/library/mono/net8.0/System.Globalization.dll deleted file mode 100644 index 67a009d..0000000 Binary files a/Editor/library/mono/net8.0/System.Globalization.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.Compression.Brotli.dll b/Editor/library/mono/net8.0/System.IO.Compression.Brotli.dll deleted file mode 100644 index 8d14534..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.Compression.Brotli.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.Compression.FileSystem.dll b/Editor/library/mono/net8.0/System.IO.Compression.FileSystem.dll deleted file mode 100644 index b2be5fa..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.Compression.FileSystem.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.Compression.ZipFile.dll b/Editor/library/mono/net8.0/System.IO.Compression.ZipFile.dll deleted file mode 100644 index 540969b..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.Compression.ZipFile.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.Compression.dll b/Editor/library/mono/net8.0/System.IO.Compression.dll deleted file mode 100644 index c70bf48..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.Compression.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.FileSystem.AccessControl.dll b/Editor/library/mono/net8.0/System.IO.FileSystem.AccessControl.dll deleted file mode 100644 index 7101e27..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.FileSystem.AccessControl.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.FileSystem.DriveInfo.dll b/Editor/library/mono/net8.0/System.IO.FileSystem.DriveInfo.dll deleted file mode 100644 index 8bf3cf3..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.FileSystem.DriveInfo.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.FileSystem.Primitives.dll b/Editor/library/mono/net8.0/System.IO.FileSystem.Primitives.dll deleted file mode 100644 index 9ba655e..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.FileSystem.Primitives.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.FileSystem.Watcher.dll b/Editor/library/mono/net8.0/System.IO.FileSystem.Watcher.dll deleted file mode 100644 index 61a9a15..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.FileSystem.Watcher.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.FileSystem.dll b/Editor/library/mono/net8.0/System.IO.FileSystem.dll deleted file mode 100644 index fb8dc7d..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.FileSystem.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.IsolatedStorage.dll b/Editor/library/mono/net8.0/System.IO.IsolatedStorage.dll deleted file mode 100644 index 868fd41..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.IsolatedStorage.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.MemoryMappedFiles.dll b/Editor/library/mono/net8.0/System.IO.MemoryMappedFiles.dll deleted file mode 100644 index 27082b4..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.MemoryMappedFiles.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.Pipes.AccessControl.dll b/Editor/library/mono/net8.0/System.IO.Pipes.AccessControl.dll deleted file mode 100644 index 407705d..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.Pipes.AccessControl.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.Pipes.dll b/Editor/library/mono/net8.0/System.IO.Pipes.dll deleted file mode 100644 index c718875..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.Pipes.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.UnmanagedMemoryStream.dll b/Editor/library/mono/net8.0/System.IO.UnmanagedMemoryStream.dll deleted file mode 100644 index c353aa2..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.UnmanagedMemoryStream.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.IO.dll b/Editor/library/mono/net8.0/System.IO.dll deleted file mode 100644 index 7e18f44..0000000 Binary files a/Editor/library/mono/net8.0/System.IO.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Linq.Expressions.dll b/Editor/library/mono/net8.0/System.Linq.Expressions.dll deleted file mode 100644 index 81d7351..0000000 Binary files a/Editor/library/mono/net8.0/System.Linq.Expressions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Linq.Parallel.dll b/Editor/library/mono/net8.0/System.Linq.Parallel.dll deleted file mode 100644 index 65d5ae6..0000000 Binary files a/Editor/library/mono/net8.0/System.Linq.Parallel.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Linq.Queryable.dll b/Editor/library/mono/net8.0/System.Linq.Queryable.dll deleted file mode 100644 index 06c0e89..0000000 Binary files a/Editor/library/mono/net8.0/System.Linq.Queryable.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Linq.dll b/Editor/library/mono/net8.0/System.Linq.dll deleted file mode 100644 index 4c30752..0000000 Binary files a/Editor/library/mono/net8.0/System.Linq.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Memory.dll b/Editor/library/mono/net8.0/System.Memory.dll deleted file mode 100644 index 5177b86..0000000 Binary files a/Editor/library/mono/net8.0/System.Memory.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Http.Json.dll b/Editor/library/mono/net8.0/System.Net.Http.Json.dll deleted file mode 100644 index 548bff9..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Http.Json.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Http.dll b/Editor/library/mono/net8.0/System.Net.Http.dll deleted file mode 100644 index c63863d..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Http.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.HttpListener.dll b/Editor/library/mono/net8.0/System.Net.HttpListener.dll deleted file mode 100644 index 4afaa95..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.HttpListener.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Mail.dll b/Editor/library/mono/net8.0/System.Net.Mail.dll deleted file mode 100644 index 16414c2..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Mail.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.NameResolution.dll b/Editor/library/mono/net8.0/System.Net.NameResolution.dll deleted file mode 100644 index 9d4c58b..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.NameResolution.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.NetworkInformation.dll b/Editor/library/mono/net8.0/System.Net.NetworkInformation.dll deleted file mode 100644 index 52110f0..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.NetworkInformation.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Ping.dll b/Editor/library/mono/net8.0/System.Net.Ping.dll deleted file mode 100644 index 6fd6a54..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Ping.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Primitives.dll b/Editor/library/mono/net8.0/System.Net.Primitives.dll deleted file mode 100644 index bf4c3a6..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Primitives.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Quic.dll b/Editor/library/mono/net8.0/System.Net.Quic.dll deleted file mode 100644 index 26f4529..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Quic.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Requests.dll b/Editor/library/mono/net8.0/System.Net.Requests.dll deleted file mode 100644 index aa31d6e..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Requests.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Security.dll b/Editor/library/mono/net8.0/System.Net.Security.dll deleted file mode 100644 index a4b7bd9..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Security.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.ServicePoint.dll b/Editor/library/mono/net8.0/System.Net.ServicePoint.dll deleted file mode 100644 index bcaddc5..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.ServicePoint.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.Sockets.dll b/Editor/library/mono/net8.0/System.Net.Sockets.dll deleted file mode 100644 index cd3fb9e..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.Sockets.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.WebClient.dll b/Editor/library/mono/net8.0/System.Net.WebClient.dll deleted file mode 100644 index fb8e8f5..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.WebClient.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.WebHeaderCollection.dll b/Editor/library/mono/net8.0/System.Net.WebHeaderCollection.dll deleted file mode 100644 index 8f25316..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.WebHeaderCollection.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.WebProxy.dll b/Editor/library/mono/net8.0/System.Net.WebProxy.dll deleted file mode 100644 index 5e6a63c..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.WebProxy.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.WebSockets.Client.dll b/Editor/library/mono/net8.0/System.Net.WebSockets.Client.dll deleted file mode 100644 index 728b4c6..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.WebSockets.Client.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.WebSockets.dll b/Editor/library/mono/net8.0/System.Net.WebSockets.dll deleted file mode 100644 index c05522e..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.WebSockets.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Net.dll b/Editor/library/mono/net8.0/System.Net.dll deleted file mode 100644 index 8f69e80..0000000 Binary files a/Editor/library/mono/net8.0/System.Net.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Numerics.Vectors.dll b/Editor/library/mono/net8.0/System.Numerics.Vectors.dll deleted file mode 100644 index aff2f94..0000000 Binary files a/Editor/library/mono/net8.0/System.Numerics.Vectors.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Numerics.dll b/Editor/library/mono/net8.0/System.Numerics.dll deleted file mode 100644 index 0b6f838..0000000 Binary files a/Editor/library/mono/net8.0/System.Numerics.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ObjectModel.dll b/Editor/library/mono/net8.0/System.ObjectModel.dll deleted file mode 100644 index 2a4fa3f..0000000 Binary files a/Editor/library/mono/net8.0/System.ObjectModel.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Private.DataContractSerialization.dll b/Editor/library/mono/net8.0/System.Private.DataContractSerialization.dll deleted file mode 100644 index edcb84f..0000000 Binary files a/Editor/library/mono/net8.0/System.Private.DataContractSerialization.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Private.Uri.dll b/Editor/library/mono/net8.0/System.Private.Uri.dll deleted file mode 100644 index b384ae7..0000000 Binary files a/Editor/library/mono/net8.0/System.Private.Uri.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Private.Xml.Linq.dll b/Editor/library/mono/net8.0/System.Private.Xml.Linq.dll deleted file mode 100644 index c040443..0000000 Binary files a/Editor/library/mono/net8.0/System.Private.Xml.Linq.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Private.Xml.dll b/Editor/library/mono/net8.0/System.Private.Xml.dll deleted file mode 100644 index b9290f3..0000000 Binary files a/Editor/library/mono/net8.0/System.Private.Xml.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.DispatchProxy.dll b/Editor/library/mono/net8.0/System.Reflection.DispatchProxy.dll deleted file mode 100644 index 6ae62d9..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.DispatchProxy.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.Emit.ILGeneration.dll b/Editor/library/mono/net8.0/System.Reflection.Emit.ILGeneration.dll deleted file mode 100644 index 893cc54..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.Emit.ILGeneration.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.Emit.Lightweight.dll b/Editor/library/mono/net8.0/System.Reflection.Emit.Lightweight.dll deleted file mode 100644 index 3e3c32c..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.Emit.Lightweight.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.Emit.dll b/Editor/library/mono/net8.0/System.Reflection.Emit.dll deleted file mode 100644 index a71c742..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.Emit.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.Extensions.dll b/Editor/library/mono/net8.0/System.Reflection.Extensions.dll deleted file mode 100644 index 24083ad..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.Extensions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.Metadata.dll b/Editor/library/mono/net8.0/System.Reflection.Metadata.dll deleted file mode 100644 index 29dbb60..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.Metadata.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.Primitives.dll b/Editor/library/mono/net8.0/System.Reflection.Primitives.dll deleted file mode 100644 index 947947a..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.Primitives.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.TypeExtensions.dll b/Editor/library/mono/net8.0/System.Reflection.TypeExtensions.dll deleted file mode 100644 index 547a94c..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.TypeExtensions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Reflection.dll b/Editor/library/mono/net8.0/System.Reflection.dll deleted file mode 100644 index 9b7a0cf..0000000 Binary files a/Editor/library/mono/net8.0/System.Reflection.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Resources.Reader.dll b/Editor/library/mono/net8.0/System.Resources.Reader.dll deleted file mode 100644 index 465f5a1..0000000 Binary files a/Editor/library/mono/net8.0/System.Resources.Reader.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Resources.ResourceManager.dll b/Editor/library/mono/net8.0/System.Resources.ResourceManager.dll deleted file mode 100644 index a6f22f1..0000000 Binary files a/Editor/library/mono/net8.0/System.Resources.ResourceManager.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Resources.Writer.dll b/Editor/library/mono/net8.0/System.Resources.Writer.dll deleted file mode 100644 index 1ff23e8..0000000 Binary files a/Editor/library/mono/net8.0/System.Resources.Writer.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.CompilerServices.Unsafe.dll b/Editor/library/mono/net8.0/System.Runtime.CompilerServices.Unsafe.dll deleted file mode 100644 index e22f8ba..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.CompilerServices.Unsafe.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.CompilerServices.VisualC.dll b/Editor/library/mono/net8.0/System.Runtime.CompilerServices.VisualC.dll deleted file mode 100644 index 92c9c0e..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.CompilerServices.VisualC.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Extensions.dll b/Editor/library/mono/net8.0/System.Runtime.Extensions.dll deleted file mode 100644 index 20f5f38..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Extensions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Handles.dll b/Editor/library/mono/net8.0/System.Runtime.Handles.dll deleted file mode 100644 index 481c41e..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Handles.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.InteropServices.JavaScript.dll b/Editor/library/mono/net8.0/System.Runtime.InteropServices.JavaScript.dll deleted file mode 100644 index f5e83af..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.InteropServices.JavaScript.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.InteropServices.RuntimeInformation.dll b/Editor/library/mono/net8.0/System.Runtime.InteropServices.RuntimeInformation.dll deleted file mode 100644 index b75db9f..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.InteropServices.RuntimeInformation.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.InteropServices.dll b/Editor/library/mono/net8.0/System.Runtime.InteropServices.dll deleted file mode 100644 index 7a79982..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.InteropServices.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Intrinsics.dll b/Editor/library/mono/net8.0/System.Runtime.Intrinsics.dll deleted file mode 100644 index 6cc72f5..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Intrinsics.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Loader.dll b/Editor/library/mono/net8.0/System.Runtime.Loader.dll deleted file mode 100644 index 2095e0b..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Loader.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Numerics.dll b/Editor/library/mono/net8.0/System.Runtime.Numerics.dll deleted file mode 100644 index 358aadc..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Numerics.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Serialization.Formatters.dll b/Editor/library/mono/net8.0/System.Runtime.Serialization.Formatters.dll deleted file mode 100644 index 7cd78c4..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Serialization.Formatters.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Serialization.Json.dll b/Editor/library/mono/net8.0/System.Runtime.Serialization.Json.dll deleted file mode 100644 index 333f84c..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Serialization.Json.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Serialization.Primitives.dll b/Editor/library/mono/net8.0/System.Runtime.Serialization.Primitives.dll deleted file mode 100644 index 49d7ce1..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Serialization.Primitives.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Serialization.Xml.dll b/Editor/library/mono/net8.0/System.Runtime.Serialization.Xml.dll deleted file mode 100644 index 27d167d..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Serialization.Xml.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.Serialization.dll b/Editor/library/mono/net8.0/System.Runtime.Serialization.dll deleted file mode 100644 index 3696ef9..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.Serialization.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Runtime.dll b/Editor/library/mono/net8.0/System.Runtime.dll deleted file mode 100644 index 6aa52cd..0000000 Binary files a/Editor/library/mono/net8.0/System.Runtime.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.AccessControl.dll b/Editor/library/mono/net8.0/System.Security.AccessControl.dll deleted file mode 100644 index db5dbcd..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.AccessControl.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Claims.dll b/Editor/library/mono/net8.0/System.Security.Claims.dll deleted file mode 100644 index 78e93e7..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Claims.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Cryptography.Algorithms.dll b/Editor/library/mono/net8.0/System.Security.Cryptography.Algorithms.dll deleted file mode 100644 index 0d7db81..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Cryptography.Algorithms.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Cryptography.Cng.dll b/Editor/library/mono/net8.0/System.Security.Cryptography.Cng.dll deleted file mode 100644 index bd75973..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Cryptography.Cng.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Cryptography.Csp.dll b/Editor/library/mono/net8.0/System.Security.Cryptography.Csp.dll deleted file mode 100644 index f8411fc..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Cryptography.Csp.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Cryptography.Encoding.dll b/Editor/library/mono/net8.0/System.Security.Cryptography.Encoding.dll deleted file mode 100644 index 8b77473..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Cryptography.Encoding.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Cryptography.OpenSsl.dll b/Editor/library/mono/net8.0/System.Security.Cryptography.OpenSsl.dll deleted file mode 100644 index 6a1d23c..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Cryptography.OpenSsl.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Cryptography.Primitives.dll b/Editor/library/mono/net8.0/System.Security.Cryptography.Primitives.dll deleted file mode 100644 index eb9c913..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Cryptography.Primitives.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Cryptography.X509Certificates.dll b/Editor/library/mono/net8.0/System.Security.Cryptography.X509Certificates.dll deleted file mode 100644 index df137d8..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Cryptography.X509Certificates.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Cryptography.dll b/Editor/library/mono/net8.0/System.Security.Cryptography.dll deleted file mode 100644 index 1389f5c..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Cryptography.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Principal.Windows.dll b/Editor/library/mono/net8.0/System.Security.Principal.Windows.dll deleted file mode 100644 index cb55c7c..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Principal.Windows.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.Principal.dll b/Editor/library/mono/net8.0/System.Security.Principal.dll deleted file mode 100644 index afe3b1a..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.Principal.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.SecureString.dll b/Editor/library/mono/net8.0/System.Security.SecureString.dll deleted file mode 100644 index 556f6e4..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.SecureString.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Security.dll b/Editor/library/mono/net8.0/System.Security.dll deleted file mode 100644 index 504e399..0000000 Binary files a/Editor/library/mono/net8.0/System.Security.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ServiceModel.Web.dll b/Editor/library/mono/net8.0/System.ServiceModel.Web.dll deleted file mode 100644 index d2e9268..0000000 Binary files a/Editor/library/mono/net8.0/System.ServiceModel.Web.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ServiceProcess.dll b/Editor/library/mono/net8.0/System.ServiceProcess.dll deleted file mode 100644 index 1df34f2..0000000 Binary files a/Editor/library/mono/net8.0/System.ServiceProcess.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Text.Encoding.CodePages.dll b/Editor/library/mono/net8.0/System.Text.Encoding.CodePages.dll deleted file mode 100644 index 3b4c500..0000000 Binary files a/Editor/library/mono/net8.0/System.Text.Encoding.CodePages.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Text.Encoding.Extensions.dll b/Editor/library/mono/net8.0/System.Text.Encoding.Extensions.dll deleted file mode 100644 index 86c656e..0000000 Binary files a/Editor/library/mono/net8.0/System.Text.Encoding.Extensions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Text.Encoding.dll b/Editor/library/mono/net8.0/System.Text.Encoding.dll deleted file mode 100644 index 8e010e6..0000000 Binary files a/Editor/library/mono/net8.0/System.Text.Encoding.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Text.Encodings.Web.dll b/Editor/library/mono/net8.0/System.Text.Encodings.Web.dll deleted file mode 100644 index 2935a16..0000000 Binary files a/Editor/library/mono/net8.0/System.Text.Encodings.Web.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Text.Json.dll b/Editor/library/mono/net8.0/System.Text.Json.dll deleted file mode 100644 index 8eb9bcf..0000000 Binary files a/Editor/library/mono/net8.0/System.Text.Json.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Text.RegularExpressions.dll b/Editor/library/mono/net8.0/System.Text.RegularExpressions.dll deleted file mode 100644 index 2ead673..0000000 Binary files a/Editor/library/mono/net8.0/System.Text.RegularExpressions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.Channels.dll b/Editor/library/mono/net8.0/System.Threading.Channels.dll deleted file mode 100644 index e6a8c5f..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.Channels.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.Overlapped.dll b/Editor/library/mono/net8.0/System.Threading.Overlapped.dll deleted file mode 100644 index 0d1ac31..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.Overlapped.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.Tasks.Dataflow.dll b/Editor/library/mono/net8.0/System.Threading.Tasks.Dataflow.dll deleted file mode 100644 index ef66c92..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.Tasks.Dataflow.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.Tasks.Extensions.dll b/Editor/library/mono/net8.0/System.Threading.Tasks.Extensions.dll deleted file mode 100644 index 2b94b03..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.Tasks.Extensions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.Tasks.Parallel.dll b/Editor/library/mono/net8.0/System.Threading.Tasks.Parallel.dll deleted file mode 100644 index addc6b1..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.Tasks.Parallel.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.Tasks.dll b/Editor/library/mono/net8.0/System.Threading.Tasks.dll deleted file mode 100644 index bbecf4a..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.Tasks.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.Thread.dll b/Editor/library/mono/net8.0/System.Threading.Thread.dll deleted file mode 100644 index ea809bd..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.Thread.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.ThreadPool.dll b/Editor/library/mono/net8.0/System.Threading.ThreadPool.dll deleted file mode 100644 index 24c0cb5..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.ThreadPool.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.Timer.dll b/Editor/library/mono/net8.0/System.Threading.Timer.dll deleted file mode 100644 index 62e2b28..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.Timer.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Threading.dll b/Editor/library/mono/net8.0/System.Threading.dll deleted file mode 100644 index 1c31195..0000000 Binary files a/Editor/library/mono/net8.0/System.Threading.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Transactions.Local.dll b/Editor/library/mono/net8.0/System.Transactions.Local.dll deleted file mode 100644 index 0acf88a..0000000 Binary files a/Editor/library/mono/net8.0/System.Transactions.Local.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Transactions.dll b/Editor/library/mono/net8.0/System.Transactions.dll deleted file mode 100644 index cacdae4..0000000 Binary files a/Editor/library/mono/net8.0/System.Transactions.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.ValueTuple.dll b/Editor/library/mono/net8.0/System.ValueTuple.dll deleted file mode 100644 index 771f0b7..0000000 Binary files a/Editor/library/mono/net8.0/System.ValueTuple.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Web.HttpUtility.dll b/Editor/library/mono/net8.0/System.Web.HttpUtility.dll deleted file mode 100644 index e4af9a6..0000000 Binary files a/Editor/library/mono/net8.0/System.Web.HttpUtility.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Web.dll b/Editor/library/mono/net8.0/System.Web.dll deleted file mode 100644 index 7a06ee9..0000000 Binary files a/Editor/library/mono/net8.0/System.Web.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Windows.dll b/Editor/library/mono/net8.0/System.Windows.dll deleted file mode 100644 index dc70e89..0000000 Binary files a/Editor/library/mono/net8.0/System.Windows.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.Linq.dll b/Editor/library/mono/net8.0/System.Xml.Linq.dll deleted file mode 100644 index 25e5ec0..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.Linq.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.ReaderWriter.dll b/Editor/library/mono/net8.0/System.Xml.ReaderWriter.dll deleted file mode 100644 index 039761b..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.ReaderWriter.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.Serialization.dll b/Editor/library/mono/net8.0/System.Xml.Serialization.dll deleted file mode 100644 index 19981c7..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.Serialization.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.XDocument.dll b/Editor/library/mono/net8.0/System.Xml.XDocument.dll deleted file mode 100644 index 234cf30..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.XDocument.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.XPath.XDocument.dll b/Editor/library/mono/net8.0/System.Xml.XPath.XDocument.dll deleted file mode 100644 index d4f0558..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.XPath.XDocument.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.XPath.dll b/Editor/library/mono/net8.0/System.Xml.XPath.dll deleted file mode 100644 index 5aadc29..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.XPath.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.XmlDocument.dll b/Editor/library/mono/net8.0/System.Xml.XmlDocument.dll deleted file mode 100644 index 2f35f5e..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.XmlDocument.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.XmlSerializer.dll b/Editor/library/mono/net8.0/System.Xml.XmlSerializer.dll deleted file mode 100644 index 05133f4..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.XmlSerializer.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.Xml.dll b/Editor/library/mono/net8.0/System.Xml.dll deleted file mode 100644 index 6332df9..0000000 Binary files a/Editor/library/mono/net8.0/System.Xml.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/System.dll b/Editor/library/mono/net8.0/System.dll deleted file mode 100644 index b5ce4fb..0000000 Binary files a/Editor/library/mono/net8.0/System.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/WindowsBase.dll b/Editor/library/mono/net8.0/WindowsBase.dll deleted file mode 100644 index e30d210..0000000 Binary files a/Editor/library/mono/net8.0/WindowsBase.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/mscorlib.dll b/Editor/library/mono/net8.0/mscorlib.dll deleted file mode 100644 index 1c0b484..0000000 Binary files a/Editor/library/mono/net8.0/mscorlib.dll and /dev/null differ diff --git a/Editor/library/mono/net8.0/netstandard.dll b/Editor/library/mono/net8.0/netstandard.dll deleted file mode 100644 index 28c7a47..0000000 Binary files a/Editor/library/mono/net8.0/netstandard.dll and /dev/null differ diff --git a/ExampleApp/ExampleApp.csproj b/ExampleApp/ExampleApp.csproj index a25a841..74a9fa6 100644 --- a/ExampleApp/ExampleApp.csproj +++ b/ExampleApp/ExampleApp.csproj @@ -1,16 +1,16 @@  - net9.0 - enable + netstandard2.1 enable true + false - ..\Prism-ScriptCore\bin\Debug\net9.0\Prism-ScriptCore.dll + ..\Prism-ScriptCore\bin\Debug\Prism-ScriptCore.dll - + \ No newline at end of file diff --git a/ExampleApp/ExampleApp.sln b/ExampleApp/ExampleApp.sln deleted file mode 100644 index df9a7e1..0000000 --- a/ExampleApp/ExampleApp.sln +++ /dev/null @@ -1,16 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExampleApp", "ExampleApp.csproj", "{C201DF2F-9FD5-438D-8D27-5DF3B24E6C68}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C201DF2F-9FD5-438D-8D27-5DF3B24E6C68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C201DF2F-9FD5-438D-8D27-5DF3B24E6C68}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C201DF2F-9FD5-438D-8D27-5DF3B24E6C68}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C201DF2F-9FD5-438D-8D27-5DF3B24E6C68}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/ExampleApp/Src/FPSPlayer.cs b/ExampleApp/Src/FPSPlayer.cs index ed328d3..e237051 100644 --- a/ExampleApp/Src/FPSPlayer.cs +++ b/ExampleApp/Src/FPSPlayer.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.InteropServices; using Prism; diff --git a/Prism-ScriptCore/Prism-ScriptCore.csproj b/Prism-ScriptCore/Prism-ScriptCore.csproj index a50533e..5bf6a7f 100644 --- a/Prism-ScriptCore/Prism-ScriptCore.csproj +++ b/Prism-ScriptCore/Prism-ScriptCore.csproj @@ -1,21 +1,8 @@  - - net9.0 + netstandard2.1 Prism_ScriptCore - enable - enable true + false - - - - - - - - - - - diff --git a/Prism-ScriptCore/Prism-ScriptCore.sln b/Prism-ScriptCore/Prism-ScriptCore.sln deleted file mode 100644 index f5b3eac..0000000 --- a/Prism-ScriptCore/Prism-ScriptCore.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 18 -VisualStudioVersion = 18.1.11312.151 d18.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Prism-ScriptCore", "Prism-ScriptCore.csproj", "{B94EF710-0487-4388-97E3-B650761A849C}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B94EF710-0487-4388-97E3-B650761A849C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B94EF710-0487-4388-97E3-B650761A849C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B94EF710-0487-4388-97E3-B650761A849C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B94EF710-0487-4388-97E3-B650761A849C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {BA69725C-3CFE-4882-9EDF-2A8E92423E8F} - EndGlobalSection -EndGlobal diff --git a/Prism-ScriptCore/Src/Prism/Entity.cs b/Prism-ScriptCore/Src/Prism/Entity.cs index 149f7b2..18adb73 100644 --- a/Prism-ScriptCore/Src/Prism/Entity.cs +++ b/Prism-ScriptCore/Src/Prism/Entity.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Runtime.CompilerServices; diff --git a/Prism-ScriptCore/Src/Prism/Math/Mat4.cs b/Prism-ScriptCore/Src/Prism/Math/Mat4.cs index cd0fc56..a856fec 100644 --- a/Prism-ScriptCore/Src/Prism/Math/Mat4.cs +++ b/Prism-ScriptCore/Src/Prism/Math/Mat4.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.InteropServices; namespace Prism diff --git a/Prism-ScriptCore/Src/Prism/Math/Mathf.cs b/Prism-ScriptCore/Src/Prism/Math/Mathf.cs index 250ccca..a62abbc 100644 --- a/Prism-ScriptCore/Src/Prism/Math/Mathf.cs +++ b/Prism-ScriptCore/Src/Prism/Math/Mathf.cs @@ -1,3 +1,4 @@ +using System; namespace Prism { diff --git a/Prism-ScriptCore/Src/Prism/Math/Vec2.cs b/Prism-ScriptCore/Src/Prism/Math/Vec2.cs index e2e5ac6..9abafdb 100644 --- a/Prism-ScriptCore/Src/Prism/Math/Vec2.cs +++ b/Prism-ScriptCore/Src/Prism/Math/Vec2.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.InteropServices; namespace Prism diff --git a/Prism-ScriptCore/Src/Prism/Math/Vec3.cs b/Prism-ScriptCore/Src/Prism/Math/Vec3.cs index 3762c01..609984e 100644 --- a/Prism-ScriptCore/Src/Prism/Math/Vec3.cs +++ b/Prism-ScriptCore/Src/Prism/Math/Vec3.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.InteropServices; namespace Prism diff --git a/Prism-ScriptCore/Src/Prism/Renderer/Material.cs b/Prism-ScriptCore/Src/Prism/Renderer/Material.cs index dbc2d12..8a7b449 100644 --- a/Prism-ScriptCore/Src/Prism/Renderer/Material.cs +++ b/Prism-ScriptCore/Src/Prism/Renderer/Material.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.CompilerServices; namespace Prism diff --git a/Prism-ScriptCore/Src/Prism/Renderer/Mesh.cs b/Prism-ScriptCore/Src/Prism/Renderer/Mesh.cs index 2073b52..ad7c97a 100644 --- a/Prism-ScriptCore/Src/Prism/Renderer/Mesh.cs +++ b/Prism-ScriptCore/Src/Prism/Renderer/Mesh.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.CompilerServices; namespace Prism diff --git a/Prism-ScriptCore/Src/Prism/Renderer/MeshFactory.cs b/Prism-ScriptCore/Src/Prism/Renderer/MeshFactory.cs index 078edf0..8fab07b 100644 --- a/Prism-ScriptCore/Src/Prism/Renderer/MeshFactory.cs +++ b/Prism-ScriptCore/Src/Prism/Renderer/MeshFactory.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.CompilerServices; namespace Prism diff --git a/Prism-ScriptCore/Src/Prism/Renderer/Texture2D.cs b/Prism-ScriptCore/Src/Prism/Renderer/Texture2D.cs index 43d1b57..2c9466e 100644 --- a/Prism-ScriptCore/Src/Prism/Renderer/Texture2D.cs +++ b/Prism-ScriptCore/Src/Prism/Renderer/Texture2D.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.CompilerServices; namespace Prism diff --git a/Prism-ScriptCore/Src/Prism/Scene/Component.cs b/Prism-ScriptCore/Src/Prism/Scene/Component.cs index 297ed75..b62ec69 100644 --- a/Prism-ScriptCore/Src/Prism/Scene/Component.cs +++ b/Prism-ScriptCore/Src/Prism/Scene/Component.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/Prism/src/Prism/Asset/Asset.h b/Prism/src/Prism/Asset/Asset.h index f22ae9e..cbe57a8 100644 --- a/Prism/src/Prism/Asset/Asset.h +++ b/Prism/src/Prism/Asset/Asset.h @@ -72,7 +72,7 @@ namespace Prism PBRMaterialAsset(); virtual ~PBRMaterialAsset() = default; // Albedo - glm::vec3 AlbedoColor = glm::vec3(1.0f); + glm::vec4 AlbedoColor = glm::vec4(1.0f); float AlbedoTexToggle = 0.0f; Ref AlbedoTexture; @@ -91,6 +91,8 @@ namespace Prism Ref RoughnessTexture; bool IsDirty = true; + + Ref PreviewTexture; }; diff --git a/Prism/src/Prism/Asset/AssetSerializer.cpp b/Prism/src/Prism/Asset/AssetSerializer.cpp index 9ac6d63..8573a5b 100644 --- a/Prism/src/Prism/Asset/AssetSerializer.cpp +++ b/Prism/src/Prism/Asset/AssetSerializer.cpp @@ -179,7 +179,7 @@ namespace Prism if (data["Albedo"]) { auto albedoNode = data["Albedo"]; - material->AlbedoColor = albedoNode["Color"].as(); + material->AlbedoColor = albedoNode["Color"].as(); material->AlbedoTexToggle = albedoNode["TexToggle"].as(); if (albedoNode["Texture"]) diff --git a/Prism/src/Prism/Asset/AssetsManager.cpp b/Prism/src/Prism/Asset/AssetsManager.cpp index 8f7a863..2c1662e 100644 --- a/Prism/src/Prism/Asset/AssetsManager.cpp +++ b/Prism/src/Prism/Asset/AssetsManager.cpp @@ -147,6 +147,8 @@ namespace Prism { asset = AssetSerializer::LoadAssetData(asset); s_LoadedAssets[assetHandle] = asset; + if (s_AssetsChangeCallback) + s_AssetsChangeCallback(); } return asset.As(); @@ -291,7 +293,16 @@ namespace Prism Ref AssetsManager::ImportAsset(const std::string& filepath, AssetHandle parentHandle) { - const std::string extension = Utils::GetExtension(filepath); + // const std::string extension = Utils::GetExtension(filepath); + + // temp method , resolve the string all to lower + const std::string extension = [filepath]() { + std::string ext = Utils::GetExtension(filepath); + std::transform(ext.begin(), ext.end(), ext.begin(), + [](const unsigned char c) { return std::tolower(c); }); + return ext; + }(); + if (extension == "meta") return {}; diff --git a/Prism/src/Prism/Editor/ContentBrowserPanel.cpp b/Prism/src/Prism/Editor/ContentBrowserPanel.cpp index 1c9f2bd..c767a59 100644 --- a/Prism/src/Prism/Editor/ContentBrowserPanel.cpp +++ b/Prism/src/Prism/Editor/ContentBrowserPanel.cpp @@ -11,6 +11,7 @@ #include "Prism/Core/Application.h" #include "Prism/Core/Input.h" #include "Prism/Core/Log.h" +#include "Prism/Renderer/Material.h" #include "Prism/Utilities/StringUtils.h" namespace Prism @@ -19,7 +20,7 @@ namespace Prism { AssetsManager::SetAssetChangeCallback([&]() { - UpdateCurrentDirectory(m_CurrentDirHandle); + m_UpdateDirectoryNextFrame = true; }); m_FileTex = AssetsManager::GetAsset("assets/editor/file.png"); @@ -130,7 +131,7 @@ namespace Prism AssetsManager::CreateAsset(finalFilename, AssetType::Material, m_CurrentDirHandle); - UpdateCurrentDirectory(m_CurrentDirHandle); + m_UpdateDirectoryNextFrame = true; } if (ImGui::MenuItem("Physics Material")) @@ -153,7 +154,7 @@ namespace Prism AssetsManager::CreateAsset(finalFilename, AssetType::PhysicsMaterial, m_CurrentDirHandle, 0.6f, 0.6f, 0.0f); - UpdateCurrentDirectory(m_CurrentDirHandle); + m_UpdateDirectoryNextFrame = true; } if (ImGui::MenuItem("Scene")) @@ -300,6 +301,11 @@ namespace Prism if (asset->Type == AssetType::Texture && asset->IsDataLoaded) { iconRef = asset.As()->GetRendererID(); + }else if (asset->Type == AssetType::Material && asset->IsDataLoaded) + { + Ref material = asset.As(); + if (material->PreviewTexture) + iconRef = material->PreviewTexture->GetRendererID(); } if (m_SelectedAssets.IsSelected(assetHandle)) @@ -308,6 +314,11 @@ namespace Prism float buttonWidth = ImGui::GetColumnWidth() - 15.0F; ImGui::ImageButton("##AssetButton", (ImTextureID)iconRef, { buttonWidth, buttonWidth }); + if (ImGui::IsItemHovered()) + { + ImGui::SetTooltip("%s", asset->FileName.c_str()); + } + if (m_SelectedAssets.IsSelected(assetHandle)) ImGui::PopStyleColor(); @@ -418,7 +429,23 @@ namespace Prism ImGui::SetNextItemWidth(buttonWidth); if (!m_SelectedAssets.IsSelected(assetHandle) || !m_RenamingSelected) - ImGui::TextWrapped("%s", filename.c_str()); + { + float maxWidth = ImGui::GetColumnWidth() - 15.0f; // 与上方按钮宽度一致 + std::string displayName = filename; + ImVec2 textSize = ImGui::CalcTextSize(displayName.c_str()); + + if (textSize.x > maxWidth && displayName.length() > 3) + { + while (textSize.x > maxWidth && displayName.length() > 3) + { + displayName.pop_back(); + textSize = ImGui::CalcTextSize((displayName + "...").c_str()); + } + displayName += "..."; + } + ImGui::TextUnformatted(displayName.c_str()); + + } if (m_SelectedAssets.IsSelected(assetHandle)) HandleRenaming(asset); diff --git a/Prism/src/Prism/Editor/DefaultAssetEditors/PBRMaterialAssetEditor.cpp b/Prism/src/Prism/Editor/DefaultAssetEditors/PBRMaterialAssetEditor.cpp index 5d3451a..89cf2d8 100644 --- a/Prism/src/Prism/Editor/DefaultAssetEditors/PBRMaterialAssetEditor.cpp +++ b/Prism/src/Prism/Editor/DefaultAssetEditors/PBRMaterialAssetEditor.cpp @@ -7,6 +7,13 @@ #include "examples/blueprints-example/utilities/widgets.h" #include "Prism/Asset/AssetSerializer.h" #include "Prism/Core/Log.h" +#include "Prism/Renderer/FrameBuffer.h" +#include "Prism/Renderer/Meshfactory.h" +#include "Prism/Renderer/Renderer.h" +#include "Prism/Renderer/Renderer3D.h" +#include "Prism/Renderer/RenderPass.h" +#include "Prism/Renderer/RHI/RHICommandBuffer.h" +#include "Prism/Scene/Scene.h" namespace Prism { @@ -15,6 +22,9 @@ namespace Prism ed::Config config; config.SettingsFile = ""; m_EditorContext = ed::CreateEditor(&config); + + // TODO: function don't work + // InitPreviewResources(); } PBRMaterialEditor::~PBRMaterialEditor() @@ -94,6 +104,109 @@ namespace Prism LoadAssetToGraph(); // 加载资产数据到节点图 } + void PBRMaterialEditor::InitPreviewResources() + { + // 创建离屏 Framebuffer(例如 512x512) + FramebufferSpecification fbSpec; + fbSpec.Width = 512; + fbSpec.Height = 512; + fbSpec.NoResize = true; + fbSpec.Attachments = { FramebufferTextureFormat::RGBA16F, FramebufferTextureFormat::DEPTH24STENCIL8 }; + fbSpec.ClearColor = { 0.1f, 0.1f, 0.1f, 1.0f }; + Ref previewFrameBuffer = FrameBuffer::Create(fbSpec); + + RenderPassSpecification rpSpec; + rpSpec.TargetFramebuffer = previewFrameBuffer; + m_PreviewRenderPass = RenderPass::Create(rpSpec); + + m_PreviewSphere = MeshFactory::CreateSphere(0.5f); + + auto pbrShader = Shader::Create("assets/shaders/PBRShader_Static.glsl"); // 你的 PBR Shader 路径 + auto material = Material::Create(pbrShader); + m_PreviewMaterialInstance = MaterialInstance::Create(material); + } + + void PBRMaterialEditor::RenderPreview() + { + if (!m_Asset || !m_PreviewSphere) return; + + // 构建简化的光照环境(一个方向光,无阴影) + LightEnvironment lightEnv; + lightEnv.DirectionalLights.Direction = glm::normalize(glm::vec3(-0.5f, -1.0f, -0.8f)); + lightEnv.DirectionalLights.Radiance = glm::vec3(1.0f); + lightEnv.DirectionalLights.Intensity = 2.0f; + lightEnv.DirectionalLights.CastShadows = false; + lightEnv.PointLightCount = 0; + lightEnv.SpotLightCount = 0; + + // 构建相机矩阵 + float aspect = (float)m_PreviewRenderPass->GetSpecification().TargetFramebuffer->GetWidth() / (float)m_PreviewRenderPass->GetSpecification().TargetFramebuffer->GetHeight(); + glm::mat4 projection = glm::perspective(glm::radians(m_PreviewFOV), aspect, m_PreviewNear, m_PreviewFar); + glm::mat4 view = glm::lookAt(m_PreviewCameraPos, m_PreviewCameraTarget, glm::vec3(0,1,0)); + glm::mat4 viewProjection = projection * view; + glm::vec3 cameraPos = m_PreviewCameraPos; + + // 准备材质参数 + auto matInst = m_PreviewMaterialInstance; + matInst->Set("u_AlbedoColor", m_Asset->AlbedoColor); + matInst->Set("u_Metalness", m_Asset->Metalness); + matInst->Set("u_Roughness", m_Asset->Roughness); + matInst->Set("u_AlbedoTexToggle", m_Asset->AlbedoTexToggle); + matInst->Set("u_NormalTexToggle", m_Asset->NormalTexToggle); + matInst->Set("u_MetalnessTexToggle", m_Asset->MetalnessTexToggle); + matInst->Set("u_RoughnessTexToggle", m_Asset->RoughnessTexToggle); + + + if (m_Asset->AlbedoTexture) matInst->Set("u_AlbedoTexture", m_Asset->AlbedoTexture); + if (m_Asset->NormalTexture) matInst->Set("u_NormalTexture", m_Asset->NormalTexture); + if (m_Asset->MetalnessTexture) matInst->Set("u_MetalnessTexture", m_Asset->MetalnessTexture); + if (m_Asset->RoughnessTexture) matInst->Set("u_RoughnessTexture", m_Asset->RoughnessTexture); + + // 设置通用 Uniform(与 GeometryPass 类似) + matInst->Set("u_ViewProjectionMatrix", viewProjection); + matInst->Set("u_ViewMatrix", view); + matInst->Set("u_CameraPosition", cameraPos); + + // 环境光 + matInst->Set("u_EnvRadianceTex", Renderer3D::GetBlackCubeTexture()); + matInst->Set("u_EnvIrradianceTex", Renderer3D::GetBlackCubeTexture()); + matInst->Set("u_IBLContribution", 0.0f); // 关闭 IBL,仅用方向光 + + // 灯光数据 + matInst->Set("u_DirectionalLights", lightEnv.DirectionalLights); + matInst->Set("u_PointLightCount", 0); + matInst->Set("u_SpotLightCount", 0); + + // 禁用阴影 + matInst->Set("u_ShadowEnabled", false); + + // 开始渲染 + Renderer::BeginRenderPass(m_PreviewRenderPass); + + auto cmd = Renderer::GetCommandBuffer(); + auto& fb = m_PreviewRenderPass->GetSpecification().TargetFramebuffer; + + Renderer::Submit([cmd]() { + cmd->Clear(glm::vec4(0.0f, 0.0f, 0.0f, 1.0f)); + }); + + Renderer::SubmitMesh(m_PreviewSphere, glm::mat4(1.0f), matInst); + + if (!m_Asset->PreviewTexture) + { + m_Asset->PreviewTexture = Texture2D::Create(TextureFormat::RGBA16F, 512, 512); + } + auto& tex = m_Asset->PreviewTexture; + + + Renderer::Submit([cmd, &fb, tex]() + { + cmd->ResolveMultisampleTexture(fb,tex); + }); + + Renderer::EndRenderPass(); + } + void PBRMaterialEditor::Render() { if (!m_Asset) return; @@ -115,6 +228,14 @@ namespace Prism ImGui::EndTabBar(); } + + // TODO: this function don't work + /* + if (m_Asset->IsDirty) + { + RenderPreview(); + } + */ } @@ -366,8 +487,8 @@ namespace Prism ImGui::SetNextItemWidth(80); ImVec2 btnPos = ImGui::GetCursorScreenPos(); if (ImGui::ColorButton( - "##albedo", ImVec4(m_Asset->AlbedoColor.r, m_Asset->AlbedoColor.g, m_Asset->AlbedoColor.b, 1.0f), - ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoBorder, ImVec2(20, 20))) + "##albedo", ImVec4(m_Asset->AlbedoColor.r, m_Asset->AlbedoColor.g, m_Asset->AlbedoColor.b, m_Asset->AlbedoColor.a), + ImGuiColorEditFlags_NoBorder, ImVec2(20, 20))) { m_OpenAlbedoPicker = true; m_AlbedoPickerPos = btnPos; @@ -527,6 +648,7 @@ namespace Prism { m_Links.push_back({m_NextLinkId++, start, end}); m_Asset->IsDirty = true; + CompileMaterialToAsset(); } } else @@ -551,6 +673,7 @@ namespace Prism m_Links.erase(std::remove_if(m_Links.begin(), m_Links.end(), [id](const Link& l) { return l.ID == id; }), m_Links.end()); m_Asset->IsDirty = true; + CompileMaterialToAsset(); } } @@ -578,6 +701,41 @@ namespace Prism ed::Suspend(); + const ImGuiPayload* payload = ImGui::GetDragDropPayload(); + if (payload && payload->IsDataType("asset_payload")) + { + AssetHandle handle = *(AssetHandle*)payload->Data; + if (AssetsManager::IsAssetType(handle, AssetType::Texture)) + { + // 获取画布区域 + ImVec2 canvasMin = ImGui::GetCursorScreenPos(); + ImVec2 canvasSize = ImGui::GetContentRegionAvail(); + + + ImGui::SetCursorScreenPos(canvasMin); + ImGui::InvisibleButton("##canvas_temp_drop", canvasSize, + ImGuiButtonFlags_MouseButtonLeft | + ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle); + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* dropPayload = ImGui::AcceptDragDropPayload("asset_payload")) + { + AssetHandle dropHandle = *(AssetHandle*)dropPayload->Data; + if (AssetsManager::IsAssetType(dropHandle, AssetType::Texture)) + { + // 将鼠标位置转换为画布坐标,创建节点 + ImVec2 mousePos = ImGui::GetMousePos(); + ImVec2 canvasPos = ed::ScreenToCanvas(mousePos); + int newId = m_NextNodeId++; + m_TextureNodes.push_back({newId, dropHandle, canvasPos.x, canvasPos.y}); + m_Asset->IsDirty = true; + } + } + ImGui::EndDragDropTarget(); + } + } + } + if (ed::ShowBackgroundContextMenu()) ImGui::OpenPopup("NodeEditorContextMenu"); @@ -616,6 +774,7 @@ namespace Prism [id](const TextureNode& n) { return n.ID == id; }), m_TextureNodes.end()); m_Asset->IsDirty = true; + CompileMaterialToAsset(); } } else diff --git a/Prism/src/Prism/Editor/DefaultAssetEditors/PBRMaterialAssetEditor.h b/Prism/src/Prism/Editor/DefaultAssetEditors/PBRMaterialAssetEditor.h index 4c1ed31..8faae20 100644 --- a/Prism/src/Prism/Editor/DefaultAssetEditors/PBRMaterialAssetEditor.h +++ b/Prism/src/Prism/Editor/DefaultAssetEditors/PBRMaterialAssetEditor.h @@ -13,6 +13,9 @@ namespace ed = ax::NodeEditor; namespace Prism { + class Mesh; + class RenderPass; + class PBRMaterialEditor : public AssetEditor { public: @@ -23,10 +26,25 @@ namespace Prism void SetAsset(const Ref& asset) override; private: - // 原有成员 Ref m_Asset; ed::EditorContext* m_EditorContext = nullptr; + // 预览贴图 + Ref m_PreviewRenderPass; + Ref m_PreviewSphere; + Ref m_PreviewMaterialInstance; + + // camera 相关 + glm::vec3 m_PreviewCameraPos = glm::vec3(3.0f, 2.0f, 5.0f); + glm::vec3 m_PreviewCameraTarget = glm::vec3(0.0f); + float m_PreviewFOV = 45.0f; + float m_PreviewNear = 0.1f; + float m_PreviewFar = 100.0f; + + void InitPreviewResources(); + void RenderPreview(); + + // 原有渲染函数 void Render() override; void RenderBasicEditorPanel(); diff --git a/Prism/src/Prism/Platform/OpenGL/OpenGLCommandBuffer.cpp b/Prism/src/Prism/Platform/OpenGL/OpenGLCommandBuffer.cpp index 56666f6..7021ede 100644 --- a/Prism/src/Prism/Platform/OpenGL/OpenGLCommandBuffer.cpp +++ b/Prism/src/Prism/Platform/OpenGL/OpenGLCommandBuffer.cpp @@ -425,4 +425,23 @@ namespace Prism glBindFramebuffer(GL_READ_FRAMEBUFFER, 0); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); } + + void OpenGLCommandBuffer::CopyFrameToTexture(const Ref& src, const Ref& dst) const + { + uint32_t tempFBO; + glGenFramebuffers(1, &tempFBO); + glBindFramebuffer(GL_DRAW_FRAMEBUFFER, tempFBO); + glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, dst->GetRendererID(), 0); + + glBindFramebuffer(GL_READ_FRAMEBUFFER, src->GetRendererID()); + glReadBuffer(GL_COLOR_ATTACHMENT0); + + glBlitFramebuffer(0, 0, src->GetWidth(), src->GetHeight(), + 0, 0, dst->GetWidth(), dst->GetHeight(), + GL_COLOR_BUFFER_BIT, GL_LINEAR); + + glDeleteFramebuffers(1, &tempFBO); + glBindFramebuffer(GL_READ_FRAMEBUFFER, 0); + glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); + } } diff --git a/Prism/src/Prism/Platform/OpenGL/OpenGLCommandBuffer.h b/Prism/src/Prism/Platform/OpenGL/OpenGLCommandBuffer.h index 5646117..8289849 100644 --- a/Prism/src/Prism/Platform/OpenGL/OpenGLCommandBuffer.h +++ b/Prism/src/Prism/Platform/OpenGL/OpenGLCommandBuffer.h @@ -90,6 +90,8 @@ namespace Prism void ResolveMultisampleTexture(const Ref& src, const Ref& dst) const override; + void CopyFrameToTexture(const Ref& src, const Ref& dst) const override; + }; } diff --git a/Prism/src/Prism/Platform/OpenGL/OpenGLShader.cpp b/Prism/src/Prism/Platform/OpenGL/OpenGLShader.cpp index 5f4bbde..d8fe90b 100644 --- a/Prism/src/Prism/Platform/OpenGL/OpenGLShader.cpp +++ b/Prism/src/Prism/Platform/OpenGL/OpenGLShader.cpp @@ -13,11 +13,7 @@ namespace Prism OpenGLShader::OpenGLShader(const std::string& filepath) : m_AssetPath(filepath) { - size_t found = filepath.find_last_of("/\\"); - m_Name = found != std::string::npos ? filepath.substr(found + 1) : filepath; - - found = m_Name.find_last_of('.'); - m_Name = found != std::string::npos ? m_Name.substr(0, found) : m_Name; + m_Name = Utils::GetFilename(filepath, true); OpenGLShader::Reload(); } diff --git a/Prism/src/Prism/Renderer/Mesh.cpp b/Prism/src/Prism/Renderer/Mesh.cpp index f98efd2..739db82 100644 --- a/Prism/src/Prism/Renderer/Mesh.cpp +++ b/Prism/src/Prism/Renderer/Mesh.cpp @@ -283,7 +283,7 @@ namespace Prism uint32_t textureCount = aiMaterial->GetTextureCount(aiTextureType_DIFFUSE); PM_MESH_LOG(" TextureCount = {0}", textureCount); - aiColor3D aiColor; + aiColor4D aiColor; aiMaterial->Get(AI_MATKEY_COLOR_DIFFUSE, aiColor); PM_CORE_TRACE("COLOR = {0}, {1}, {2}", aiColor.r, aiColor.g, aiColor.b); @@ -297,7 +297,7 @@ namespace Prism if (aiMaterial->Get(AI_MATKEY_METALLIC_FACTOR, metalness) != aiReturn_SUCCESS) metalness = 0.0f; - PM_MESH_LOG(" COLOR = {0}, {1}, {2}", aiColor.r, aiColor.g, aiColor.b); + PM_MESH_LOG(" COLOR = {0}, {1}, {2}, {3}", aiColor.r, aiColor.g, aiColor.b, aiColor.a); PM_MESH_LOG(" ROUGHNESS = {0}", roughness); bool hasAlbedoMap = aiMaterial->GetTexture(aiTextureType_DIFFUSE, 0, &aiTexPath) == AI_SUCCESS; if (hasAlbedoMap) @@ -321,12 +321,12 @@ namespace Prism { PM_CORE_ERROR("Could not load texture: {0}", texturePath); // fallback to u_AlbedoColor - mi->Set("u_AlbedoColor", glm::vec3{ aiColor.r, aiColor.g, aiColor.b }); + mi->Set("u_AlbedoColor", glm::vec4{ aiColor.r, aiColor.g, aiColor.b, aiColor.a}); } } else { - mi->Set("u_AlbedoColor", glm::vec3 { aiColor.r, aiColor.g, aiColor.b }); + mi->Set("u_AlbedoColor", glm::vec4 { aiColor.r, aiColor.g, aiColor.b, aiColor.a }); PM_MESH_LOG(" No albedo map"); } diff --git a/Prism/src/Prism/Renderer/RHI/RHICommandBuffer.h b/Prism/src/Prism/Renderer/RHI/RHICommandBuffer.h index baed574..beaf454 100644 --- a/Prism/src/Prism/Renderer/RHI/RHICommandBuffer.h +++ b/Prism/src/Prism/Renderer/RHI/RHICommandBuffer.h @@ -116,6 +116,9 @@ namespace Prism { virtual void BindStorageBuffer(uint32_t binding, const Ref& ref) const = 0; virtual void ResolveMultisampleTexture(const Ref& src, const Ref& dst) const = 0; + + + virtual void CopyFrameToTexture(const Ref& src, const Ref& dst) const = 0; }; } diff --git a/Prism/src/Prism/Renderer/Renderer3D.cpp b/Prism/src/Prism/Renderer/Renderer3D.cpp index 494c494..ffa0b7e 100644 --- a/Prism/src/Prism/Renderer/Renderer3D.cpp +++ b/Prism/src/Prism/Renderer/Renderer3D.cpp @@ -643,313 +643,313 @@ namespace Prism } - void Renderer3D::GeometryPass() - { - const bool outline = !s_Data.SelectedMeshDrawList.empty(); - const bool collider = !s_Data.ColliderDrawList.empty(); - auto cmd = Renderer::GetCommandBuffer(); + void Renderer3D::GeometryPass() + { + const bool outline = !s_Data.SelectedMeshDrawList.empty(); + const bool collider = !s_Data.ColliderDrawList.empty(); + auto cmd = Renderer::GetCommandBuffer(); - /* - if (outline) - { - Renderer::Submit([cmd]() - { - cmd->SetStencilTest(true); // 开启模板测试 - cmd->SetStencilOp(StencilOp::Replace, StencilOp::Replace, StencilOp::Replace); - cmd->SetStencilFunc(CompareOp::Always, 1, 0xFF); // 总是通过,写入参考值1 - cmd->SetStencilMask(0xFF); - }); - } - */ - - Renderer::BeginRenderPass(s_Data.GeoPass); - - /* - if (outline) - { - Renderer::Submit([cmd]() - { - cmd->SetStencilMask(0); - }); - } - */ - - const auto& sceneCamera = s_Data.SceneData.SceneCamera; - - const auto cameraProjection = sceneCamera.Camera.GetProjectionMatrix(); - const auto cameraView = sceneCamera.ViewMatrix; - const auto cameraViewProjection = cameraProjection * cameraView; - const glm::vec3 cameraPosition = glm::inverse(s_Data.SceneData.SceneCamera.ViewMatrix)[3]; // TODO: Negate instead - - - // Skybox - s_Data.SceneData.SkyboxMaterial->Set("u_InverseVP", glm::inverse(cameraViewProjection)); - s_Data.SceneData.SkyboxMaterial->Set("u_SkyIntensity", s_Data.SceneData.SceneEnvironmentIntensity); - // s_Data.SceneInfo.EnvironmentIrradianceMap->Bind(0); - Renderer::SubmitFullscreenQuad(s_Data.SceneData.SkyboxMaterial); - - // const float aspectRatio = (float)s_Data.GeoPass->GetSpecification().TargetFramebuffer->GetWidth() / (float)s_Data.GeoPass->GetSpecification().TargetFramebuffer->GetHeight(); - // float frustumSize = 2.0f * sceneCamera.Near * glm::tan(sceneCamera.FOV * 0.5f) * aspectRatio; - - // Render entities - for (auto& dc : s_Data.DrawList) - { - auto baseMaterial = dc.mesh->GetMaterial(); - baseMaterial->Set("u_ViewProjectionMatrix", cameraViewProjection); - baseMaterial->Set("u_ViewMatrix", sceneCamera.ViewMatrix); - baseMaterial->Set("u_CameraPosition", cameraPosition); - baseMaterial->Set("u_IBLContribution", s_Data.SceneData.SceneEnvironmentIntensity); - - // Environment (TODO: don't do this per mesh) - baseMaterial->Set("u_EnvRadianceTex", s_Data.SceneData.SceneEnvironment->RadianceMap); - baseMaterial->Set("u_EnvIrradianceTex", s_Data.SceneData.SceneEnvironment->IrradianceMap); - baseMaterial->Set("u_BRDFLUTTexture", s_Data.BRDFLUT); - - // Set lights (TODO: move to light environment and don't do per mesh) - - const auto& lights = s_Data.SceneData.SceneLightEnvironment; - - baseMaterial->Set("u_DirectionalLights", lights.DirectionalLights); - baseMaterial->Set("u_PointLightCount", lights.PointLightCount); - - auto shader = baseMaterial->GetShader(); - - for (int i = 0; i < lights.PointLightCount; i++) + /* + if (outline) { - std::string base = "u_PointLights[" + std::to_string(i) + "]"; - shader->SetFloat3(base + ".Position", lights.PointLights[i].Position); - shader->SetFloat3(base + ".Radiance", lights.PointLights[i].Radiance); - shader->SetFloat(base + ".Intensity", lights.PointLights[i].Intensity); - shader->SetFloat(base + ".Range", lights.PointLights[i].Radius); - shader->SetBool(base + ".CastShadows", lights.PointLights[i].CastShadows); - } - - - baseMaterial->Set("u_SpotLightCount", lights.SpotLightCount); - for (int i = 0; i < lights.SpotLightCount; i++) - { - std::string base = "u_SpotLights[" + std::to_string(i) + "]"; - shader->SetFloat3(base + ".Position", lights.SpotLights[i].Position); - shader->SetFloat3(base + ".Direction", lights.SpotLights[i].Direction); - shader->SetFloat3(base + ".Radiance", lights.SpotLights[i].Radiance); - shader->SetFloat(base + ".Intensity", lights.SpotLights[i].Intensity); - shader->SetFloat(base + ".Range", lights.SpotLights[i].Range); - shader->SetFloat(base + ".InnerConeCos", lights.SpotLights[i].InnerConeCos); - shader->SetFloat(base + ".OuterConeCos", lights.SpotLights[i].OuterConeCos); - shader->SetBool(base + ".CastShadows", lights.SpotLights[i].CastShadows); - } - - - // baseMaterial->Set("u_DirectionalLights", s_Data.SceneData.ActiveLight); - - // shadow - baseMaterial->Set("u_LightSpaceMatrix", s_Data.LightMatrices); - baseMaterial->Set("u_ShadowEnabled", s_Data.ShadowData.ShadowEnabled); - if (s_Data.ShadowData.ShadowEnabled) - { - baseMaterial->Set("u_ShadowBias", s_Data.ShadowData.ShadowBias); - baseMaterial->Set("u_ShadowIntensity", s_Data.ShadowData.ShadowIntensity); - baseMaterial->Set("u_ShadowSoftness", (float)s_Data.ShadowData.ShadowSoftness); - - auto rd = baseMaterial->FindResourceDeclaration("u_ShadowMap"); - if (rd) + Renderer::Submit([cmd]() { - auto reg = rd->GetRegister(); - auto tex = s_Data.ShadowData.ShadowMapRenderPass->GetSpecification().TargetFramebuffer->GetDepthAttachmentRendererID(); - - Renderer::Submit([reg, tex, cmd]() mutable - { - cmd->BindTextureUnit(reg, tex); - cmd->BindSampler(reg, s_Data.ShadowMapSampler); - }); - } + cmd->SetStencilTest(true); // 开启模板测试 + cmd->SetStencilOp(StencilOp::Replace, StencilOp::Replace, StencilOp::Replace); + cmd->SetStencilFunc(CompareOp::Always, 1, 0xFF); // 总是通过,写入参考值1 + cmd->SetStencilMask(0xFF); + }); } + */ - Renderer::SubmitMesh(dc.mesh, dc.Transform, dc.MaterialInstances); - } + Renderer::BeginRenderPass(s_Data.GeoPass); - // TODO: bug outline is not correct - /* - if (outline) - { - Renderer::Submit([cmd]() - { - cmd->SetStencilFunc(CompareOp::Always, 1, 0xff); - cmd->SetStencilMask(0xFF); - }); - } - */ - for (auto& dc : s_Data.SelectedMeshDrawList) - { - auto baseMaterial = dc.mesh->GetMaterial(); - baseMaterial->Set("u_ViewProjectionMatrix", cameraViewProjection); - baseMaterial->Set("u_ViewMatrix", sceneCamera.ViewMatrix); - baseMaterial->Set("u_CameraPosition", cameraPosition); - baseMaterial->Set("u_IBLContribution", s_Data.SceneData.SceneEnvironmentIntensity); - - - // Environment (TODO: don't do this per mesh) - baseMaterial->Set("u_EnvRadianceTex", s_Data.SceneData.SceneEnvironment->RadianceMap); - baseMaterial->Set("u_EnvIrradianceTex", s_Data.SceneData.SceneEnvironment->IrradianceMap); - baseMaterial->Set("u_BRDFLUTTexture", s_Data.BRDFLUT); - - // Set lights (TODO: move to light environment and don't do per mesh) - - - const auto& lights = s_Data.SceneData.SceneLightEnvironment; - baseMaterial->Set("u_DirectionalLights", lights.DirectionalLights); - baseMaterial->Set("u_PointLightCount", lights.PointLightCount); - - - auto shader = baseMaterial->GetShader(); - for (int i = 0; i < lights.PointLightCount; i++) - { - std::string base = "u_PointLights[" + std::to_string(i) + "]"; - shader->SetFloat3(base + ".Position", lights.PointLights[i].Position); - shader->SetFloat3(base + ".Radiance", lights.PointLights[i].Radiance); - shader->SetFloat(base + ".Intensity", lights.PointLights[i].Intensity); - shader->SetFloat(base + ".Range", lights.PointLights[i].Radius); - shader->SetBool(base + ".CastShadows", lights.PointLights[i].CastShadows); - } - - baseMaterial->Set("u_SpotLightCount", lights.SpotLightCount); - for (int i = 0; i < lights.SpotLightCount; i++) - { - std::string base = "u_SpotLights[" + std::to_string(i) + "]"; - shader->SetFloat3(base + ".Position", lights.SpotLights[i].Position); - shader->SetFloat3(base + ".Direction", lights.SpotLights[i].Direction); - shader->SetFloat3(base + ".Radiance", lights.SpotLights[i].Radiance); - shader->SetFloat(base + ".Intensity", lights.SpotLights[i].Intensity); - shader->SetFloat(base + ".Range", lights.SpotLights[i].Range); - shader->SetFloat(base + ".InnerConeCos", lights.SpotLights[i].InnerConeCos); - shader->SetFloat(base + ".OuterConeCos", lights.SpotLights[i].OuterConeCos); - shader->SetBool(base + ".CastShadows", lights.SpotLights[i].CastShadows); - } - // baseMaterial->Set("u_DirectionalLights", s_Data.SceneData.ActiveLight); - - - // shadow - baseMaterial->Set("u_ShadowEnabled", s_Data.ShadowData.ShadowEnabled); - if (s_Data.ShadowData.ShadowEnabled) - { - baseMaterial->Set("u_LightSpaceMatrix", s_Data.LightMatrices); - baseMaterial->Set("u_ShadowBias", s_Data.ShadowData.ShadowBias); - baseMaterial->Set("u_ShadowIntensity", s_Data.ShadowData.ShadowIntensity); - baseMaterial->Set("u_ShadowSoftness", (float)s_Data.ShadowData.ShadowSoftness); - - - auto rd = baseMaterial->FindResourceDeclaration("u_ShadowMap"); - if (rd) + /* + if (outline) + { + Renderer::Submit([cmd]() { - auto reg = rd->GetRegister(); - auto tex = s_Data.ShadowData.ShadowMapRenderPass->GetSpecification().TargetFramebuffer->GetDepthAttachmentRendererID(); - - Renderer::Submit([reg, tex, cmd]() mutable - { - cmd->BindTextureUnit(reg, tex); - cmd->BindSampler(reg, s_Data.ShadowMapSampler); - }); - } - } - - Renderer::SubmitMesh(dc.mesh, dc.Transform, dc.MaterialInstances); - } - - - /* - if (outline) - { - Renderer::Submit([cmd]() - { - cmd->SetStencilTest(true); // 确保模板测试开启 - cmd->SetStencilFunc(CompareOp::NotEqual, 1, 0xff); - cmd->SetStencilMask(0); - cmd->SetLineWidth(10); - cmd->SetPolygonMode(PolygonMode::Line); - cmd->SetDepthTest(false); - }); - - // Draw outline here - s_Data.OutlineMaterial->Set("u_ViewProjection", cameraViewProjection); - s_Data.OutlineAnimMaterial->Set("u_ViewProjection", cameraViewProjection); - for (auto& dc : s_Data.SelectedMeshDrawList) - { - // Renderer::SubmitMesh(dc.mesh, dc.Transform, s_Data.OutlineMaterial); - Renderer::SubmitMesh(dc.mesh, dc.Transform, dc.mesh->IsAnimated() ? s_Data.OutlineAnimMaterial : s_Data.OutlineMaterial); + cmd->SetStencilMask(0); + }); } + */ - Renderer::Submit([cmd]() - { - cmd->SetPointSize(10); - cmd->SetPolygonMode(PolygonMode::Point); - }); - for (auto& dc : s_Data.SelectedMeshDrawList) - { - // Renderer::SubmitMesh(dc.mesh, dc.Transform, s_Data.OutlineMaterial); - Renderer::SubmitMesh(dc.mesh, dc.Transform, dc.mesh->IsAnimated() ? s_Data.OutlineAnimMaterial : s_Data.OutlineMaterial); - } + const auto& sceneCamera = s_Data.SceneData.SceneCamera; - Renderer::Submit([cmd]() - { - cmd->SetPolygonMode(PolygonMode::Fill); - cmd->SetStencilMask(0xff); - cmd->SetStencilFunc(CompareOp::Always, 1, 0xff); - cmd->SetDepthTest(true); - cmd->SetStencilTest(false); - }); - } - */ - - if (collider) - { - Renderer::Submit([cmd]() - { - cmd->SetLineWidth(1); - cmd->SetLineSmooth(true); - cmd->SetPolygonMode(PolygonMode::Line); - cmd->SetDepthTest(false); - }); - - s_Data.ColliderMaterial->Set("u_ViewProjection", cameraViewProjection); - for (auto& dc : s_Data.ColliderDrawList) - { - if (dc.mesh) - Renderer::SubmitMesh(dc.mesh, dc.Transform, s_Data.ColliderMaterial); - } - - Renderer::Submit([cmd]() - { - cmd->SetPointSize(1); - cmd->SetPolygonMode(PolygonMode::Point); - }); - - for (auto& dc : s_Data.ColliderDrawList) - { - if (dc.mesh) - Renderer::SubmitMesh(dc.mesh, dc.Transform, s_Data.ColliderMaterial); - } - - Renderer::Submit([cmd]() - { - cmd->SetPolygonMode(PolygonMode::Fill); - cmd->SetDepthTest(true); - }); - } + const auto cameraProjection = sceneCamera.Camera.GetProjectionMatrix(); + const auto cameraView = sceneCamera.ViewMatrix; + const auto cameraViewProjection = cameraProjection * cameraView; + const glm::vec3 cameraPosition = glm::inverse(s_Data.SceneData.SceneCamera.ViewMatrix)[3]; // TODO: Negate instead - // Grid - const auto option = GetOptions(); + // Skybox + s_Data.SceneData.SkyboxMaterial->Set("u_InverseVP", glm::inverse(cameraViewProjection)); + s_Data.SceneData.SkyboxMaterial->Set("u_SkyIntensity", s_Data.SceneData.SceneEnvironmentIntensity); + // s_Data.SceneInfo.EnvironmentIrradianceMap->Bind(0); + Renderer::SubmitFullscreenQuad(s_Data.SceneData.SkyboxMaterial); - if (option.ShowBoundingBoxes) - { - Renderer2D::BeginScene(cameraViewProjection); + // const float aspectRatio = (float)s_Data.GeoPass->GetSpecification().TargetFramebuffer->GetWidth() / (float)s_Data.GeoPass->GetSpecification().TargetFramebuffer->GetHeight(); + // float frustumSize = 2.0f * sceneCamera.Near * glm::tan(sceneCamera.FOV * 0.5f) * aspectRatio; + + // Render entities for (auto& dc : s_Data.DrawList) - Renderer::DrawAABB(dc.mesh, dc.Transform); - Renderer2D::EndScene(); - } + { + auto baseMaterial = dc.mesh->GetMaterial(); + baseMaterial->Set("u_ViewProjectionMatrix", cameraViewProjection); + baseMaterial->Set("u_ViewMatrix", sceneCamera.ViewMatrix); + baseMaterial->Set("u_CameraPosition", cameraPosition); + baseMaterial->Set("u_IBLContribution", s_Data.SceneData.SceneEnvironmentIntensity); - Renderer::EndRenderPass(); - } + // Environment (TODO: don't do this per mesh) + baseMaterial->Set("u_EnvRadianceTex", s_Data.SceneData.SceneEnvironment->RadianceMap); + baseMaterial->Set("u_EnvIrradianceTex", s_Data.SceneData.SceneEnvironment->IrradianceMap); + baseMaterial->Set("u_BRDFLUTTexture", s_Data.BRDFLUT); + + // Set lights (TODO: move to light environment and don't do per mesh) + + const auto& lights = s_Data.SceneData.SceneLightEnvironment; + + baseMaterial->Set("u_DirectionalLights", lights.DirectionalLights); + baseMaterial->Set("u_PointLightCount", lights.PointLightCount); + + auto shader = baseMaterial->GetShader(); + + for (int i = 0; i < lights.PointLightCount; i++) + { + std::string base = "u_PointLights[" + std::to_string(i) + "]"; + shader->SetFloat3(base + ".Position", lights.PointLights[i].Position); + shader->SetFloat3(base + ".Radiance", lights.PointLights[i].Radiance); + shader->SetFloat(base + ".Intensity", lights.PointLights[i].Intensity); + shader->SetFloat(base + ".Range", lights.PointLights[i].Radius); + shader->SetBool(base + ".CastShadows", lights.PointLights[i].CastShadows); + } + + + baseMaterial->Set("u_SpotLightCount", lights.SpotLightCount); + for (int i = 0; i < lights.SpotLightCount; i++) + { + std::string base = "u_SpotLights[" + std::to_string(i) + "]"; + shader->SetFloat3(base + ".Position", lights.SpotLights[i].Position); + shader->SetFloat3(base + ".Direction", lights.SpotLights[i].Direction); + shader->SetFloat3(base + ".Radiance", lights.SpotLights[i].Radiance); + shader->SetFloat(base + ".Intensity", lights.SpotLights[i].Intensity); + shader->SetFloat(base + ".Range", lights.SpotLights[i].Range); + shader->SetFloat(base + ".InnerConeCos", lights.SpotLights[i].InnerConeCos); + shader->SetFloat(base + ".OuterConeCos", lights.SpotLights[i].OuterConeCos); + shader->SetBool(base + ".CastShadows", lights.SpotLights[i].CastShadows); + } + + + // baseMaterial->Set("u_DirectionalLights", s_Data.SceneData.ActiveLight); + + // shadow + baseMaterial->Set("u_LightSpaceMatrix", s_Data.LightMatrices); + baseMaterial->Set("u_ShadowEnabled", s_Data.ShadowData.ShadowEnabled); + if (s_Data.ShadowData.ShadowEnabled) + { + baseMaterial->Set("u_ShadowBias", s_Data.ShadowData.ShadowBias); + baseMaterial->Set("u_ShadowIntensity", s_Data.ShadowData.ShadowIntensity); + baseMaterial->Set("u_ShadowSoftness", (float)s_Data.ShadowData.ShadowSoftness); + + auto rd = baseMaterial->FindResourceDeclaration("u_ShadowMap"); + if (rd) + { + auto reg = rd->GetRegister(); + auto tex = s_Data.ShadowData.ShadowMapRenderPass->GetSpecification().TargetFramebuffer->GetDepthAttachmentRendererID(); + + Renderer::Submit([reg, tex, cmd]() mutable + { + cmd->BindTextureUnit(reg, tex); + cmd->BindSampler(reg, s_Data.ShadowMapSampler); + }); + } + } + + Renderer::SubmitMesh(dc.mesh, dc.Transform, dc.MaterialInstances); + } + + // TODO: bug outline is not correct + /* + if (outline) + { + Renderer::Submit([cmd]() + { + cmd->SetStencilFunc(CompareOp::Always, 1, 0xff); + cmd->SetStencilMask(0xFF); + }); + } + */ + for (auto& dc : s_Data.SelectedMeshDrawList) + { + auto baseMaterial = dc.mesh->GetMaterial(); + baseMaterial->Set("u_ViewProjectionMatrix", cameraViewProjection); + baseMaterial->Set("u_ViewMatrix", sceneCamera.ViewMatrix); + baseMaterial->Set("u_CameraPosition", cameraPosition); + baseMaterial->Set("u_IBLContribution", s_Data.SceneData.SceneEnvironmentIntensity); + + + // Environment (TODO: don't do this per mesh) + baseMaterial->Set("u_EnvRadianceTex", s_Data.SceneData.SceneEnvironment->RadianceMap); + baseMaterial->Set("u_EnvIrradianceTex", s_Data.SceneData.SceneEnvironment->IrradianceMap); + baseMaterial->Set("u_BRDFLUTTexture", s_Data.BRDFLUT); + + // Set lights (TODO: move to light environment and don't do per mesh) + + + const auto& lights = s_Data.SceneData.SceneLightEnvironment; + baseMaterial->Set("u_DirectionalLights", lights.DirectionalLights); + baseMaterial->Set("u_PointLightCount", lights.PointLightCount); + + + auto shader = baseMaterial->GetShader(); + for (int i = 0; i < lights.PointLightCount; i++) + { + std::string base = "u_PointLights[" + std::to_string(i) + "]"; + shader->SetFloat3(base + ".Position", lights.PointLights[i].Position); + shader->SetFloat3(base + ".Radiance", lights.PointLights[i].Radiance); + shader->SetFloat(base + ".Intensity", lights.PointLights[i].Intensity); + shader->SetFloat(base + ".Range", lights.PointLights[i].Radius); + shader->SetBool(base + ".CastShadows", lights.PointLights[i].CastShadows); + } + + baseMaterial->Set("u_SpotLightCount", lights.SpotLightCount); + for (int i = 0; i < lights.SpotLightCount; i++) + { + std::string base = "u_SpotLights[" + std::to_string(i) + "]"; + shader->SetFloat3(base + ".Position", lights.SpotLights[i].Position); + shader->SetFloat3(base + ".Direction", lights.SpotLights[i].Direction); + shader->SetFloat3(base + ".Radiance", lights.SpotLights[i].Radiance); + shader->SetFloat(base + ".Intensity", lights.SpotLights[i].Intensity); + shader->SetFloat(base + ".Range", lights.SpotLights[i].Range); + shader->SetFloat(base + ".InnerConeCos", lights.SpotLights[i].InnerConeCos); + shader->SetFloat(base + ".OuterConeCos", lights.SpotLights[i].OuterConeCos); + shader->SetBool(base + ".CastShadows", lights.SpotLights[i].CastShadows); + } + // baseMaterial->Set("u_DirectionalLights", s_Data.SceneData.ActiveLight); + + + // shadow + baseMaterial->Set("u_ShadowEnabled", s_Data.ShadowData.ShadowEnabled); + if (s_Data.ShadowData.ShadowEnabled) + { + baseMaterial->Set("u_LightSpaceMatrix", s_Data.LightMatrices); + baseMaterial->Set("u_ShadowBias", s_Data.ShadowData.ShadowBias); + baseMaterial->Set("u_ShadowIntensity", s_Data.ShadowData.ShadowIntensity); + baseMaterial->Set("u_ShadowSoftness", (float)s_Data.ShadowData.ShadowSoftness); + + + auto rd = baseMaterial->FindResourceDeclaration("u_ShadowMap"); + if (rd) + { + auto reg = rd->GetRegister(); + auto tex = s_Data.ShadowData.ShadowMapRenderPass->GetSpecification().TargetFramebuffer->GetDepthAttachmentRendererID(); + + Renderer::Submit([reg, tex, cmd]() mutable + { + cmd->BindTextureUnit(reg, tex); + cmd->BindSampler(reg, s_Data.ShadowMapSampler); + }); + } + } + + Renderer::SubmitMesh(dc.mesh, dc.Transform, dc.MaterialInstances); + } + + + /* + if (outline) + { + Renderer::Submit([cmd]() + { + cmd->SetStencilTest(true); // 确保模板测试开启 + cmd->SetStencilFunc(CompareOp::NotEqual, 1, 0xff); + cmd->SetStencilMask(0); + cmd->SetLineWidth(10); + cmd->SetPolygonMode(PolygonMode::Line); + cmd->SetDepthTest(false); + }); + + // Draw outline here + s_Data.OutlineMaterial->Set("u_ViewProjection", cameraViewProjection); + s_Data.OutlineAnimMaterial->Set("u_ViewProjection", cameraViewProjection); + for (auto& dc : s_Data.SelectedMeshDrawList) + { + // Renderer::SubmitMesh(dc.mesh, dc.Transform, s_Data.OutlineMaterial); + Renderer::SubmitMesh(dc.mesh, dc.Transform, dc.mesh->IsAnimated() ? s_Data.OutlineAnimMaterial : s_Data.OutlineMaterial); + } + + Renderer::Submit([cmd]() + { + cmd->SetPointSize(10); + cmd->SetPolygonMode(PolygonMode::Point); + }); + for (auto& dc : s_Data.SelectedMeshDrawList) + { + // Renderer::SubmitMesh(dc.mesh, dc.Transform, s_Data.OutlineMaterial); + Renderer::SubmitMesh(dc.mesh, dc.Transform, dc.mesh->IsAnimated() ? s_Data.OutlineAnimMaterial : s_Data.OutlineMaterial); + } + + Renderer::Submit([cmd]() + { + cmd->SetPolygonMode(PolygonMode::Fill); + cmd->SetStencilMask(0xff); + cmd->SetStencilFunc(CompareOp::Always, 1, 0xff); + cmd->SetDepthTest(true); + cmd->SetStencilTest(false); + }); + } + */ + + if (collider) + { + Renderer::Submit([cmd]() + { + cmd->SetLineWidth(1); + cmd->SetLineSmooth(true); + cmd->SetPolygonMode(PolygonMode::Line); + cmd->SetDepthTest(false); + }); + + s_Data.ColliderMaterial->Set("u_ViewProjection", cameraViewProjection); + for (auto& dc : s_Data.ColliderDrawList) + { + if (dc.mesh) + Renderer::SubmitMesh(dc.mesh, dc.Transform, s_Data.ColliderMaterial); + } + + Renderer::Submit([cmd]() + { + cmd->SetPointSize(1); + cmd->SetPolygonMode(PolygonMode::Point); + }); + + for (auto& dc : s_Data.ColliderDrawList) + { + if (dc.mesh) + Renderer::SubmitMesh(dc.mesh, dc.Transform, s_Data.ColliderMaterial); + } + + Renderer::Submit([cmd]() + { + cmd->SetPolygonMode(PolygonMode::Fill); + cmd->SetDepthTest(true); + }); + } + + + // Grid + const auto option = GetOptions(); + + if (option.ShowBoundingBoxes) + { + Renderer2D::BeginScene(cameraViewProjection); + for (auto& dc : s_Data.DrawList) + Renderer::DrawAABB(dc.mesh, dc.Transform); + Renderer2D::EndScene(); + } + + Renderer::EndRenderPass(); + } void Renderer3D::BloomBlurPass() { diff --git a/Prism/src/Prism/Renderer/Shader.cpp b/Prism/src/Prism/Renderer/Shader.cpp index d368cf2..0a9dd64 100644 --- a/Prism/src/Prism/Renderer/Shader.cpp +++ b/Prism/src/Prism/Renderer/Shader.cpp @@ -6,6 +6,7 @@ #include "RendererAPI.h" #include "Prism/Platform/OpenGL/OpenGLShader.h" +#include "Prism/Utilities/StringUtils.h" namespace Prism { @@ -15,6 +16,14 @@ namespace Prism { Ref result = nullptr; + for (auto& shader : s_AllShaders) + { + if (shader->GetName() == Utils::GetFilename(filepath, true)) + { + return shader; + } + } + switch (RendererAPI::Current()) { case RendererAPIType::None: return nullptr; diff --git a/Prism/src/Prism/Script/ScriptEngine.cpp b/Prism/src/Prism/Script/ScriptEngine.cpp index 8bc3695..53e4bb8 100644 --- a/Prism/src/Prism/Script/ScriptEngine.cpp +++ b/Prism/src/Prism/Script/ScriptEngine.cpp @@ -164,8 +164,8 @@ namespace Prism static void InitMono() { - mono_set_dirs("library/mono/net8.0", ""); - mono_set_assemblies_path("library/mono/net8.0"); + mono_set_dirs("library/mono/4.5", ""); + mono_set_assemblies_path("library/mono/4.5"); if (s_EnableMonoPDBDebug) { @@ -396,12 +396,6 @@ namespace Prism void ScriptEngine::Init(const std::string& assemblyPath) { -#ifdef _WIN32 - _putenv("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1"); -#else - setenv("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT", "1", 1); -#endif - s_AssemblyPath = assemblyPath; InitMono(); diff --git a/Prism/src/Prism/Utilities/StringUtils.cpp b/Prism/src/Prism/Utilities/StringUtils.cpp index 0f54231..329d47c 100644 --- a/Prism/src/Prism/Utilities/StringUtils.cpp +++ b/Prism/src/Prism/Utilities/StringUtils.cpp @@ -9,14 +9,19 @@ namespace Prism::Utils { - std::string GetFilename(const std::string& filepath) + std::string GetFilename(const std::string& filepath, const bool withoutExt) { - std::vector parts = SplitString(filepath, "/\\"); - if (!parts.empty()) - return parts[parts.size() - 1]; + size_t found = filepath.find_last_of("/\\"); + std::string name = found != std::string::npos ? filepath.substr(found + 1) : filepath; - return ""; + if (withoutExt) + { + found = name.find_last_of('.'); + name = found != std::string::npos ? name.substr(0, found) : name; + } + + return name; } std::string ReplaceFilePathName(const std::string& filepath, const std::string& newName) diff --git a/Prism/src/Prism/Utilities/StringUtils.h b/Prism/src/Prism/Utilities/StringUtils.h index 51e920b..ce00a64 100644 --- a/Prism/src/Prism/Utilities/StringUtils.h +++ b/Prism/src/Prism/Utilities/StringUtils.h @@ -11,7 +11,7 @@ namespace Prism::Utils { std::string ReplaceFilePathName(const std::string& filepath, const std::string& newName); - std::string GetFilename(const std::string& filepath); + std::string GetFilename(const std::string& filepath, bool withoutExt = false); std::string GetExtension(const std::string& filename, bool includeDot = false); std::string RemoveExtension(const std::string& filename); std::string NormalizePath(std::string path); diff --git a/Prism/vendor/mono/CMakeLists.txt b/Prism/vendor/mono/CMakeLists.txt index 8640583..5f425ed 100644 --- a/Prism/vendor/mono/CMakeLists.txt +++ b/Prism/vendor/mono/CMakeLists.txt @@ -9,7 +9,7 @@ target_include_directories(mono INTERFACE if(WIN32) set(PLATFORM_FLAG Windows) else () - set(PLATFORM_FLAG Windows) + set(PLATFORM_FLAG Linux) endif () file(GLOB DOTNET_RUNTIME_DLLS dlls/${PLATFORM_FLAG}/mono) @@ -36,4 +36,10 @@ else () file(COPY ${NATIVE_RUNTIME_DLLS} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/library/mono/net8.0) endif () -target_link_libraries(mono INTERFACE ${MONO_LIBRARY}) \ No newline at end of file +target_link_libraries(mono INTERFACE + ${MONO_LIBRARY} + + $<$:winmm> + $<$:Version> + $<$:Bcrypt> +) \ No newline at end of file diff --git a/Prism/vendor/mono/include/mono/cil/opcode.def b/Prism/vendor/mono/include/mono/cil/opcode.def new file mode 100644 index 0000000..43722f6 --- /dev/null +++ b/Prism/vendor/mono/include/mono/cil/opcode.def @@ -0,0 +1,347 @@ +/* GENERATED FILE, DO NOT EDIT. Edit cil-opcodes.xml instead and run "make opcode.def" to regenerate. */ +OPDEF(CEE_NOP, "nop", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0x00, NEXT) +OPDEF(CEE_BREAK, "break", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0x01, ERROR) +OPDEF(CEE_LDARG_0, "ldarg.0", Pop0, Push1, InlineNone, 0, 1, 0xFF, 0x02, NEXT) +OPDEF(CEE_LDARG_1, "ldarg.1", Pop0, Push1, InlineNone, 1, 1, 0xFF, 0x03, NEXT) +OPDEF(CEE_LDARG_2, "ldarg.2", Pop0, Push1, InlineNone, 2, 1, 0xFF, 0x04, NEXT) +OPDEF(CEE_LDARG_3, "ldarg.3", Pop0, Push1, InlineNone, 3, 1, 0xFF, 0x05, NEXT) +OPDEF(CEE_LDLOC_0, "ldloc.0", Pop0, Push1, InlineNone, 0, 1, 0xFF, 0x06, NEXT) +OPDEF(CEE_LDLOC_1, "ldloc.1", Pop0, Push1, InlineNone, 1, 1, 0xFF, 0x07, NEXT) +OPDEF(CEE_LDLOC_2, "ldloc.2", Pop0, Push1, InlineNone, 2, 1, 0xFF, 0x08, NEXT) +OPDEF(CEE_LDLOC_3, "ldloc.3", Pop0, Push1, InlineNone, 3, 1, 0xFF, 0x09, NEXT) +OPDEF(CEE_STLOC_0, "stloc.0", Pop1, Push0, InlineNone, 0, 1, 0xFF, 0x0A, NEXT) +OPDEF(CEE_STLOC_1, "stloc.1", Pop1, Push0, InlineNone, 1, 1, 0xFF, 0x0B, NEXT) +OPDEF(CEE_STLOC_2, "stloc.2", Pop1, Push0, InlineNone, 2, 1, 0xFF, 0x0C, NEXT) +OPDEF(CEE_STLOC_3, "stloc.3", Pop1, Push0, InlineNone, 3, 1, 0xFF, 0x0D, NEXT) +OPDEF(CEE_LDARG_S, "ldarg.s", Pop0, Push1, ShortInlineVar, 0, 1, 0xFF, 0x0E, NEXT) +OPDEF(CEE_LDARGA_S, "ldarga.s", Pop0, PushI, ShortInlineVar, 0, 1, 0xFF, 0x0F, NEXT) +OPDEF(CEE_STARG_S, "starg.s", Pop1, Push0, ShortInlineVar, 0, 1, 0xFF, 0x10, NEXT) +OPDEF(CEE_LDLOC_S, "ldloc.s", Pop0, Push1, ShortInlineVar, 0, 1, 0xFF, 0x11, NEXT) +OPDEF(CEE_LDLOCA_S, "ldloca.s", Pop0, PushI, ShortInlineVar, 0, 1, 0xFF, 0x12, NEXT) +OPDEF(CEE_STLOC_S, "stloc.s", Pop1, Push0, ShortInlineVar, 0, 1, 0xFF, 0x13, NEXT) +OPDEF(CEE_LDNULL, "ldnull", Pop0, PushRef, InlineNone, 0, 1, 0xFF, 0x14, NEXT) +OPDEF(CEE_LDC_I4_M1, "ldc.i4.m1", Pop0, PushI, InlineNone, -1, 1, 0xFF, 0x15, NEXT) +OPDEF(CEE_LDC_I4_0, "ldc.i4.0", Pop0, PushI, InlineNone, 0, 1, 0xFF, 0x16, NEXT) +OPDEF(CEE_LDC_I4_1, "ldc.i4.1", Pop0, PushI, InlineNone, 1, 1, 0xFF, 0x17, NEXT) +OPDEF(CEE_LDC_I4_2, "ldc.i4.2", Pop0, PushI, InlineNone, 2, 1, 0xFF, 0x18, NEXT) +OPDEF(CEE_LDC_I4_3, "ldc.i4.3", Pop0, PushI, InlineNone, 3, 1, 0xFF, 0x19, NEXT) +OPDEF(CEE_LDC_I4_4, "ldc.i4.4", Pop0, PushI, InlineNone, 4, 1, 0xFF, 0x1A, NEXT) +OPDEF(CEE_LDC_I4_5, "ldc.i4.5", Pop0, PushI, InlineNone, 5, 1, 0xFF, 0x1B, NEXT) +OPDEF(CEE_LDC_I4_6, "ldc.i4.6", Pop0, PushI, InlineNone, 6, 1, 0xFF, 0x1C, NEXT) +OPDEF(CEE_LDC_I4_7, "ldc.i4.7", Pop0, PushI, InlineNone, 7, 1, 0xFF, 0x1D, NEXT) +OPDEF(CEE_LDC_I4_8, "ldc.i4.8", Pop0, PushI, InlineNone, 8, 1, 0xFF, 0x1E, NEXT) +OPDEF(CEE_LDC_I4_S, "ldc.i4.s", Pop0, PushI, ShortInlineI, 0, 1, 0xFF, 0x1F, NEXT) +OPDEF(CEE_LDC_I4, "ldc.i4", Pop0, PushI, InlineI, 0, 1, 0xFF, 0x20, NEXT) +OPDEF(CEE_LDC_I8, "ldc.i8", Pop0, PushI8, InlineI8, 0, 1, 0xFF, 0x21, NEXT) +OPDEF(CEE_LDC_R4, "ldc.r4", Pop0, PushR4, ShortInlineR, 0, 1, 0xFF, 0x22, NEXT) +OPDEF(CEE_LDC_R8, "ldc.r8", Pop0, PushR8, InlineR, 0, 1, 0xFF, 0x23, NEXT) +OPDEF(CEE_UNUSED99, "unused99", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0x24, NEXT) +OPDEF(CEE_DUP, "dup", Pop1, Push1+Push1, InlineNone, 0, 1, 0xFF, 0x25, NEXT) +OPDEF(CEE_POP, "pop", Pop1, Push0, InlineNone, 0, 1, 0xFF, 0x26, NEXT) +OPDEF(CEE_JMP, "jmp", Pop0, Push0, InlineMethod, 0, 1, 0xFF, 0x27, CALL) +OPDEF(CEE_CALL, "call", VarPop, VarPush, InlineMethod, 0, 1, 0xFF, 0x28, CALL) +OPDEF(CEE_CALLI, "calli", VarPop, VarPush, InlineSig, 0, 1, 0xFF, 0x29, CALL) +OPDEF(CEE_RET, "ret", VarPop, Push0, InlineNone, 0, 1, 0xFF, 0x2A, RETURN) +OPDEF(CEE_BR_S, "br.s", Pop0, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x2B, BRANCH) +OPDEF(CEE_BRFALSE_S, "brfalse.s", PopI, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x2C, COND_BRANCH) +OPDEF(CEE_BRTRUE_S, "brtrue.s", PopI, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x2D, COND_BRANCH) +OPDEF(CEE_BEQ_S, "beq.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x2E, COND_BRANCH) +OPDEF(CEE_BGE_S, "bge.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x2F, COND_BRANCH) +OPDEF(CEE_BGT_S, "bgt.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x30, COND_BRANCH) +OPDEF(CEE_BLE_S, "ble.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x31, COND_BRANCH) +OPDEF(CEE_BLT_S, "blt.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x32, COND_BRANCH) +OPDEF(CEE_BNE_UN_S, "bne.un.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x33, COND_BRANCH) +OPDEF(CEE_BGE_UN_S, "bge.un.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x34, COND_BRANCH) +OPDEF(CEE_BGT_UN_S, "bgt.un.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x35, COND_BRANCH) +OPDEF(CEE_BLE_UN_S, "ble.un.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x36, COND_BRANCH) +OPDEF(CEE_BLT_UN_S, "blt.un.s", Pop1+Pop1, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0x37, COND_BRANCH) +OPDEF(CEE_BR, "br", Pop0, Push0, InlineBrTarget, 0, 1, 0xFF, 0x38, BRANCH) +OPDEF(CEE_BRFALSE, "brfalse", PopI, Push0, InlineBrTarget, 0, 1, 0xFF, 0x39, COND_BRANCH) +OPDEF(CEE_BRTRUE, "brtrue", PopI, Push0, InlineBrTarget, 0, 1, 0xFF, 0x3A, COND_BRANCH) +OPDEF(CEE_BEQ, "beq", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x3B, COND_BRANCH) +OPDEF(CEE_BGE, "bge", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x3C, COND_BRANCH) +OPDEF(CEE_BGT, "bgt", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x3D, COND_BRANCH) +OPDEF(CEE_BLE, "ble", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x3E, COND_BRANCH) +OPDEF(CEE_BLT, "blt", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x3F, COND_BRANCH) +OPDEF(CEE_BNE_UN, "bne.un", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x40, COND_BRANCH) +OPDEF(CEE_BGE_UN, "bge.un", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x41, COND_BRANCH) +OPDEF(CEE_BGT_UN, "bgt.un", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x42, COND_BRANCH) +OPDEF(CEE_BLE_UN, "ble.un", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x43, COND_BRANCH) +OPDEF(CEE_BLT_UN, "blt.un", Pop1+Pop1, Push0, InlineBrTarget, 0, 1, 0xFF, 0x44, COND_BRANCH) +OPDEF(CEE_SWITCH, "switch", PopI, Push0, InlineSwitch, 0, 1, 0xFF, 0x45, COND_BRANCH) +OPDEF(CEE_LDIND_I1, "ldind.i1", PopI, PushI, InlineNone, 0, 1, 0xFF, 0x46, NEXT) +OPDEF(CEE_LDIND_U1, "ldind.u1", PopI, PushI, InlineNone, 0, 1, 0xFF, 0x47, NEXT) +OPDEF(CEE_LDIND_I2, "ldind.i2", PopI, PushI, InlineNone, 0, 1, 0xFF, 0x48, NEXT) +OPDEF(CEE_LDIND_U2, "ldind.u2", PopI, PushI, InlineNone, 0, 1, 0xFF, 0x49, NEXT) +OPDEF(CEE_LDIND_I4, "ldind.i4", PopI, PushI, InlineNone, 0, 1, 0xFF, 0x4A, NEXT) +OPDEF(CEE_LDIND_U4, "ldind.u4", PopI, PushI, InlineNone, 0, 1, 0xFF, 0x4B, NEXT) +OPDEF(CEE_LDIND_I8, "ldind.i8", PopI, PushI8, InlineNone, 0, 1, 0xFF, 0x4C, NEXT) +OPDEF(CEE_LDIND_I, "ldind.i", PopI, PushI, InlineNone, 0, 1, 0xFF, 0x4D, NEXT) +OPDEF(CEE_LDIND_R4, "ldind.r4", PopI, PushR4, InlineNone, 0, 1, 0xFF, 0x4E, NEXT) +OPDEF(CEE_LDIND_R8, "ldind.r8", PopI, PushR8, InlineNone, 0, 1, 0xFF, 0x4F, NEXT) +OPDEF(CEE_LDIND_REF, "ldind.ref", PopI, PushRef, InlineNone, 0, 1, 0xFF, 0x50, NEXT) +OPDEF(CEE_STIND_REF, "stind.ref", PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0x51, NEXT) +OPDEF(CEE_STIND_I1, "stind.i1", PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0x52, NEXT) +OPDEF(CEE_STIND_I2, "stind.i2", PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0x53, NEXT) +OPDEF(CEE_STIND_I4, "stind.i4", PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0x54, NEXT) +OPDEF(CEE_STIND_I8, "stind.i8", PopI+PopI8, Push0, InlineNone, 0, 1, 0xFF, 0x55, NEXT) +OPDEF(CEE_STIND_R4, "stind.r4", PopI+PopR4, Push0, InlineNone, 0, 1, 0xFF, 0x56, NEXT) +OPDEF(CEE_STIND_R8, "stind.r8", PopI+PopR8, Push0, InlineNone, 0, 1, 0xFF, 0x57, NEXT) +OPDEF(CEE_ADD, "add", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x58, NEXT) +OPDEF(CEE_SUB, "sub", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x59, NEXT) +OPDEF(CEE_MUL, "mul", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x5A, NEXT) +OPDEF(CEE_DIV, "div", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x5B, NEXT) +OPDEF(CEE_DIV_UN, "div.un", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x5C, NEXT) +OPDEF(CEE_REM, "rem", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x5D, NEXT) +OPDEF(CEE_REM_UN, "rem.un", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x5E, NEXT) +OPDEF(CEE_AND, "and", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x5F, NEXT) +OPDEF(CEE_OR, "or", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x60, NEXT) +OPDEF(CEE_XOR, "xor", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x61, NEXT) +OPDEF(CEE_SHL, "shl", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x62, NEXT) +OPDEF(CEE_SHR, "shr", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x63, NEXT) +OPDEF(CEE_SHR_UN, "shr.un", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x64, NEXT) +OPDEF(CEE_NEG, "neg", Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x65, NEXT) +OPDEF(CEE_NOT, "not", Pop1, Push1, InlineNone, 0, 1, 0xFF, 0x66, NEXT) +OPDEF(CEE_CONV_I1, "conv.i1", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x67, NEXT) +OPDEF(CEE_CONV_I2, "conv.i2", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x68, NEXT) +OPDEF(CEE_CONV_I4, "conv.i4", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x69, NEXT) +OPDEF(CEE_CONV_I8, "conv.i8", Pop1, PushI8, InlineNone, 0, 1, 0xFF, 0x6A, NEXT) +OPDEF(CEE_CONV_R4, "conv.r4", Pop1, PushR4, InlineNone, 0, 1, 0xFF, 0x6B, NEXT) +OPDEF(CEE_CONV_R8, "conv.r8", Pop1, PushR8, InlineNone, 0, 1, 0xFF, 0x6C, NEXT) +OPDEF(CEE_CONV_U4, "conv.u4", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x6D, NEXT) +OPDEF(CEE_CONV_U8, "conv.u8", Pop1, PushI8, InlineNone, 0, 1, 0xFF, 0x6E, NEXT) +OPDEF(CEE_CALLVIRT, "callvirt", VarPop, VarPush, InlineMethod, 0, 1, 0xFF, 0x6F, CALL) +OPDEF(CEE_CPOBJ, "cpobj", PopI+PopI, Push0, InlineType, 0, 1, 0xFF, 0x70, NEXT) +OPDEF(CEE_LDOBJ, "ldobj", PopI, Push1, InlineType, 0, 1, 0xFF, 0x71, NEXT) +OPDEF(CEE_LDSTR, "ldstr", Pop0, PushRef, InlineString, 0, 1, 0xFF, 0x72, NEXT) +OPDEF(CEE_NEWOBJ, "newobj", VarPop, PushRef, InlineMethod, 0, 1, 0xFF, 0x73, CALL) +OPDEF(CEE_CASTCLASS, "castclass", PopRef, PushRef, InlineType, 0, 1, 0xFF, 0x74, NEXT) +OPDEF(CEE_ISINST, "isinst", PopRef, PushI, InlineType, 0, 1, 0xFF, 0x75, NEXT) +OPDEF(CEE_CONV_R_UN, "conv.r.un", Pop1, PushR8, InlineNone, 0, 1, 0xFF, 0x76, NEXT) +OPDEF(CEE_UNUSED58, "unused58", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0x77, NEXT) +OPDEF(CEE_UNUSED1, "unused1", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0x78, NEXT) +OPDEF(CEE_UNBOX, "unbox", PopRef, PushI, InlineType, 0, 1, 0xFF, 0x79, NEXT) +OPDEF(CEE_THROW, "throw", PopRef, Push0, InlineNone, 0, 1, 0xFF, 0x7A, ERROR) +OPDEF(CEE_LDFLD, "ldfld", PopRef, Push1, InlineField, 0, 1, 0xFF, 0x7B, NEXT) +OPDEF(CEE_LDFLDA, "ldflda", PopRef, PushI, InlineField, 0, 1, 0xFF, 0x7C, NEXT) +OPDEF(CEE_STFLD, "stfld", PopRef+Pop1, Push0, InlineField, 0, 1, 0xFF, 0x7D, NEXT) +OPDEF(CEE_LDSFLD, "ldsfld", Pop0, Push1, InlineField, 0, 1, 0xFF, 0x7E, NEXT) +OPDEF(CEE_LDSFLDA, "ldsflda", Pop0, PushI, InlineField, 0, 1, 0xFF, 0x7F, NEXT) +OPDEF(CEE_STSFLD, "stsfld", Pop1, Push0, InlineField, 0, 1, 0xFF, 0x80, NEXT) +OPDEF(CEE_STOBJ, "stobj", PopI+Pop1, Push0, InlineType, 0, 1, 0xFF, 0x81, NEXT) +OPDEF(CEE_CONV_OVF_I1_UN, "conv.ovf.i1.un", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x82, NEXT) +OPDEF(CEE_CONV_OVF_I2_UN, "conv.ovf.i2.un", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x83, NEXT) +OPDEF(CEE_CONV_OVF_I4_UN, "conv.ovf.i4.un", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x84, NEXT) +OPDEF(CEE_CONV_OVF_I8_UN, "conv.ovf.i8.un", Pop1, PushI8, InlineNone, 0, 1, 0xFF, 0x85, NEXT) +OPDEF(CEE_CONV_OVF_U1_UN, "conv.ovf.u1.un", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x86, NEXT) +OPDEF(CEE_CONV_OVF_U2_UN, "conv.ovf.u2.un", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x87, NEXT) +OPDEF(CEE_CONV_OVF_U4_UN, "conv.ovf.u4.un", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x88, NEXT) +OPDEF(CEE_CONV_OVF_U8_UN, "conv.ovf.u8.un", Pop1, PushI8, InlineNone, 0, 1, 0xFF, 0x89, NEXT) +OPDEF(CEE_CONV_OVF_I_UN, "conv.ovf.i.un", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x8A, NEXT) +OPDEF(CEE_CONV_OVF_U_UN, "conv.ovf.u.un", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0x8B, NEXT) +OPDEF(CEE_BOX, "box", Pop1, PushRef, InlineType, 0, 1, 0xFF, 0x8C, NEXT) +OPDEF(CEE_NEWARR, "newarr", PopI, PushRef, InlineType, 0, 1, 0xFF, 0x8D, NEXT) +OPDEF(CEE_LDLEN, "ldlen", PopRef, PushI, InlineNone, 0, 1, 0xFF, 0x8E, NEXT) +OPDEF(CEE_LDELEMA, "ldelema", PopRef+PopI, PushI, InlineType, 0, 1, 0xFF, 0x8F, NEXT) +OPDEF(CEE_LDELEM_I1, "ldelem.i1", PopRef+PopI, PushI, InlineNone, 0, 1, 0xFF, 0x90, NEXT) +OPDEF(CEE_LDELEM_U1, "ldelem.u1", PopRef+PopI, PushI, InlineNone, 0, 1, 0xFF, 0x91, NEXT) +OPDEF(CEE_LDELEM_I2, "ldelem.i2", PopRef+PopI, PushI, InlineNone, 0, 1, 0xFF, 0x92, NEXT) +OPDEF(CEE_LDELEM_U2, "ldelem.u2", PopRef+PopI, PushI, InlineNone, 0, 1, 0xFF, 0x93, NEXT) +OPDEF(CEE_LDELEM_I4, "ldelem.i4", PopRef+PopI, PushI, InlineNone, 0, 1, 0xFF, 0x94, NEXT) +OPDEF(CEE_LDELEM_U4, "ldelem.u4", PopRef+PopI, PushI, InlineNone, 0, 1, 0xFF, 0x95, NEXT) +OPDEF(CEE_LDELEM_I8, "ldelem.i8", PopRef+PopI, PushI8, InlineNone, 0, 1, 0xFF, 0x96, NEXT) +OPDEF(CEE_LDELEM_I, "ldelem.i", PopRef+PopI, PushI, InlineNone, 0, 1, 0xFF, 0x97, NEXT) +OPDEF(CEE_LDELEM_R4, "ldelem.r4", PopRef+PopI, PushR4, InlineNone, 0, 1, 0xFF, 0x98, NEXT) +OPDEF(CEE_LDELEM_R8, "ldelem.r8", PopRef+PopI, PushR8, InlineNone, 0, 1, 0xFF, 0x99, NEXT) +OPDEF(CEE_LDELEM_REF, "ldelem.ref", PopRef+PopI, PushRef, InlineNone, 0, 1, 0xFF, 0x9A, NEXT) +OPDEF(CEE_STELEM_I, "stelem.i", PopRef+PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0x9B, NEXT) +OPDEF(CEE_STELEM_I1, "stelem.i1", PopRef+PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0x9C, NEXT) +OPDEF(CEE_STELEM_I2, "stelem.i2", PopRef+PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0x9D, NEXT) +OPDEF(CEE_STELEM_I4, "stelem.i4", PopRef+PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0x9E, NEXT) +OPDEF(CEE_STELEM_I8, "stelem.i8", PopRef+PopI+PopI8, Push0, InlineNone, 0, 1, 0xFF, 0x9F, NEXT) +OPDEF(CEE_STELEM_R4, "stelem.r4", PopRef+PopI+PopR4, Push0, InlineNone, 0, 1, 0xFF, 0xA0, NEXT) +OPDEF(CEE_STELEM_R8, "stelem.r8", PopRef+PopI+PopR8, Push0, InlineNone, 0, 1, 0xFF, 0xA1, NEXT) +OPDEF(CEE_STELEM_REF, "stelem.ref", PopRef+PopI+PopRef, Push0, InlineNone, 0, 1, 0xFF, 0xA2, NEXT) +OPDEF(CEE_LDELEM, "ldelem", PopRef+PopI, Push1, InlineType, 0, 1, 0xFF, 0xA3, NEXT) +OPDEF(CEE_STELEM, "stelem", PopRef+PopI+Pop1, Push0, InlineType, 0, 1, 0xFF, 0xA4, NEXT) +OPDEF(CEE_UNBOX_ANY, "unbox.any", PopRef, Push1, InlineType, 0, 1, 0xFF, 0xA5, NEXT) +OPDEF(CEE_UNUSED5, "unused5", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xA6, NEXT) +OPDEF(CEE_UNUSED6, "unused6", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xA7, NEXT) +OPDEF(CEE_UNUSED7, "unused7", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xA8, NEXT) +OPDEF(CEE_UNUSED8, "unused8", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xA9, NEXT) +OPDEF(CEE_UNUSED9, "unused9", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xAA, NEXT) +OPDEF(CEE_UNUSED10, "unused10", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xAB, NEXT) +OPDEF(CEE_UNUSED11, "unused11", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xAC, NEXT) +OPDEF(CEE_UNUSED12, "unused12", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xAD, NEXT) +OPDEF(CEE_UNUSED13, "unused13", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xAE, NEXT) +OPDEF(CEE_UNUSED14, "unused14", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xAF, NEXT) +OPDEF(CEE_UNUSED15, "unused15", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xB0, NEXT) +OPDEF(CEE_UNUSED16, "unused16", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xB1, NEXT) +OPDEF(CEE_UNUSED17, "unused17", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xB2, NEXT) +OPDEF(CEE_CONV_OVF_I1, "conv.ovf.i1", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xB3, NEXT) +OPDEF(CEE_CONV_OVF_U1, "conv.ovf.u1", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xB4, NEXT) +OPDEF(CEE_CONV_OVF_I2, "conv.ovf.i2", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xB5, NEXT) +OPDEF(CEE_CONV_OVF_U2, "conv.ovf.u2", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xB6, NEXT) +OPDEF(CEE_CONV_OVF_I4, "conv.ovf.i4", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xB7, NEXT) +OPDEF(CEE_CONV_OVF_U4, "conv.ovf.u4", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xB8, NEXT) +OPDEF(CEE_CONV_OVF_I8, "conv.ovf.i8", Pop1, PushI8, InlineNone, 0, 1, 0xFF, 0xB9, NEXT) +OPDEF(CEE_CONV_OVF_U8, "conv.ovf.u8", Pop1, PushI8, InlineNone, 0, 1, 0xFF, 0xBA, NEXT) +OPDEF(CEE_UNUSED50, "unused50", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xBB, NEXT) +OPDEF(CEE_UNUSED18, "unused18", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xBC, NEXT) +OPDEF(CEE_UNUSED19, "unused19", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xBD, NEXT) +OPDEF(CEE_UNUSED20, "unused20", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xBE, NEXT) +OPDEF(CEE_UNUSED21, "unused21", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xBF, NEXT) +OPDEF(CEE_UNUSED22, "unused22", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xC0, NEXT) +OPDEF(CEE_UNUSED23, "unused23", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xC1, NEXT) +OPDEF(CEE_REFANYVAL, "refanyval", Pop1, PushI, InlineType, 0, 1, 0xFF, 0xC2, NEXT) +OPDEF(CEE_CKFINITE, "ckfinite", Pop1, PushR8, InlineNone, 0, 1, 0xFF, 0xC3, NEXT) +OPDEF(CEE_UNUSED24, "unused24", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xC4, NEXT) +OPDEF(CEE_UNUSED25, "unused25", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xC5, NEXT) +OPDEF(CEE_MKREFANY, "mkrefany", PopI, Push1, InlineType, 0, 1, 0xFF, 0xC6, NEXT) +OPDEF(CEE_UNUSED59, "unused59", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xC7, NEXT) +OPDEF(CEE_UNUSED60, "unused60", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xC8, NEXT) +OPDEF(CEE_UNUSED61, "unused61", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xC9, NEXT) +OPDEF(CEE_UNUSED62, "unused62", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xCA, NEXT) +OPDEF(CEE_UNUSED63, "unused63", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xCB, NEXT) +OPDEF(CEE_UNUSED64, "unused64", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xCC, NEXT) +OPDEF(CEE_UNUSED65, "unused65", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xCD, NEXT) +OPDEF(CEE_UNUSED66, "unused66", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xCE, NEXT) +OPDEF(CEE_UNUSED67, "unused67", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xCF, NEXT) +OPDEF(CEE_LDTOKEN, "ldtoken", Pop0, PushI, InlineTok, 0, 1, 0xFF, 0xD0, NEXT) +OPDEF(CEE_CONV_U2, "conv.u2", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xD1, NEXT) +OPDEF(CEE_CONV_U1, "conv.u1", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xD2, NEXT) +OPDEF(CEE_CONV_I, "conv.i", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xD3, NEXT) +OPDEF(CEE_CONV_OVF_I, "conv.ovf.i", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xD4, NEXT) +OPDEF(CEE_CONV_OVF_U, "conv.ovf.u", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xD5, NEXT) +OPDEF(CEE_ADD_OVF, "add.ovf", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0xD6, NEXT) +OPDEF(CEE_ADD_OVF_UN, "add.ovf.un", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0xD7, NEXT) +OPDEF(CEE_MUL_OVF, "mul.ovf", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0xD8, NEXT) +OPDEF(CEE_MUL_OVF_UN, "mul.ovf.un", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0xD9, NEXT) +OPDEF(CEE_SUB_OVF, "sub.ovf", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0xDA, NEXT) +OPDEF(CEE_SUB_OVF_UN, "sub.ovf.un", Pop1+Pop1, Push1, InlineNone, 0, 1, 0xFF, 0xDB, NEXT) +OPDEF(CEE_ENDFINALLY, "endfinally", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xDC, RETURN) +OPDEF(CEE_LEAVE, "leave", Pop0, Push0, InlineBrTarget, 0, 1, 0xFF, 0xDD, BRANCH) +OPDEF(CEE_LEAVE_S, "leave.s", Pop0, Push0, ShortInlineBrTarget, 0, 1, 0xFF, 0xDE, BRANCH) +OPDEF(CEE_STIND_I, "stind.i", PopI+PopI, Push0, InlineNone, 0, 1, 0xFF, 0xDF, NEXT) +OPDEF(CEE_CONV_U, "conv.u", Pop1, PushI, InlineNone, 0, 1, 0xFF, 0xE0, NEXT) +OPDEF(CEE_UNUSED26, "unused26", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE1, NEXT) +OPDEF(CEE_UNUSED27, "unused27", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE2, NEXT) +OPDEF(CEE_UNUSED28, "unused28", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE3, NEXT) +OPDEF(CEE_UNUSED29, "unused29", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE4, NEXT) +OPDEF(CEE_UNUSED30, "unused30", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE5, NEXT) +OPDEF(CEE_UNUSED31, "unused31", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE6, NEXT) +OPDEF(CEE_UNUSED32, "unused32", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE7, NEXT) +OPDEF(CEE_UNUSED33, "unused33", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE8, NEXT) +OPDEF(CEE_UNUSED34, "unused34", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xE9, NEXT) +OPDEF(CEE_UNUSED35, "unused35", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xEA, NEXT) +OPDEF(CEE_UNUSED36, "unused36", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xEB, NEXT) +OPDEF(CEE_UNUSED37, "unused37", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xEC, NEXT) +OPDEF(CEE_UNUSED38, "unused38", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xED, NEXT) +OPDEF(CEE_UNUSED39, "unused39", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xEE, NEXT) +OPDEF(CEE_UNUSED40, "unused40", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xEF, NEXT) +OPDEF(CEE_UNUSED41, "unused41", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF0, NEXT) +OPDEF(CEE_UNUSED42, "unused42", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF1, NEXT) +OPDEF(CEE_UNUSED43, "unused43", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF2, NEXT) +OPDEF(CEE_UNUSED44, "unused44", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF3, NEXT) +OPDEF(CEE_UNUSED45, "unused45", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF4, NEXT) +OPDEF(CEE_UNUSED46, "unused46", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF5, NEXT) +OPDEF(CEE_UNUSED47, "unused47", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF6, NEXT) +OPDEF(CEE_UNUSED48, "unused48", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF7, NEXT) +OPDEF(CEE_PREFIX7, "prefix7", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF8, META) +OPDEF(CEE_PREFIX6, "prefix6", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xF9, META) +OPDEF(CEE_PREFIX5, "prefix5", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xFA, META) +OPDEF(CEE_PREFIX4, "prefix4", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xFB, META) +OPDEF(CEE_PREFIX3, "prefix3", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xFC, META) +OPDEF(CEE_PREFIX2, "prefix2", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xFD, META) +OPDEF(CEE_PREFIX1, "prefix1", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xFE, META) +OPDEF(CEE_PREFIXREF, "prefixref", Pop0, Push0, InlineNone, 0, 1, 0xFF, 0xFF, META) +OPDEF(CEE_ARGLIST, "arglist", Pop0, PushI, InlineNone, 0, 2, 0xFE, 0x00, NEXT) +OPDEF(CEE_CEQ, "ceq", Pop1+Pop1, PushI, InlineNone, 0, 2, 0xFE, 0x01, NEXT) +OPDEF(CEE_CGT, "cgt", Pop1+Pop1, PushI, InlineNone, 0, 2, 0xFE, 0x02, NEXT) +OPDEF(CEE_CGT_UN, "cgt.un", Pop1+Pop1, PushI, InlineNone, 0, 2, 0xFE, 0x03, NEXT) +OPDEF(CEE_CLT, "clt", Pop1+Pop1, PushI, InlineNone, 0, 2, 0xFE, 0x04, NEXT) +OPDEF(CEE_CLT_UN, "clt.un", Pop1+Pop1, PushI, InlineNone, 0, 2, 0xFE, 0x05, NEXT) +OPDEF(CEE_LDFTN, "ldftn", Pop0, PushI, InlineMethod, 0, 2, 0xFE, 0x06, NEXT) +OPDEF(CEE_LDVIRTFTN, "ldvirtftn", PopRef, PushI, InlineMethod, 0, 2, 0xFE, 0x07, NEXT) +OPDEF(CEE_UNUSED56, "unused56", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x08, NEXT) +OPDEF(CEE_LDARG, "ldarg", Pop0, Push1, InlineVar, 0, 2, 0xFE, 0x09, NEXT) +OPDEF(CEE_LDARGA, "ldarga", Pop0, PushI, InlineVar, 0, 2, 0xFE, 0x0A, NEXT) +OPDEF(CEE_STARG, "starg", Pop1, Push0, InlineVar, 0, 2, 0xFE, 0x0B, NEXT) +OPDEF(CEE_LDLOC, "ldloc", Pop0, Push1, InlineVar, 0, 2, 0xFE, 0x0C, NEXT) +OPDEF(CEE_LDLOCA, "ldloca", Pop0, PushI, InlineVar, 0, 2, 0xFE, 0x0D, NEXT) +OPDEF(CEE_STLOC, "stloc", Pop1, Push0, InlineVar, 0, 2, 0xFE, 0x0E, NEXT) +OPDEF(CEE_LOCALLOC, "localloc", PopI, PushI, InlineNone, 0, 2, 0xFE, 0x0F, NEXT) +OPDEF(CEE_UNUSED57, "unused57", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x10, NEXT) +OPDEF(CEE_ENDFILTER, "endfilter", PopI, Push0, InlineNone, 0, 2, 0xFE, 0x11, RETURN) +OPDEF(CEE_UNALIGNED_, "unaligned.", Pop0, Push0, ShortInlineI, 0, 2, 0xFE, 0x12, META) +OPDEF(CEE_VOLATILE_, "volatile.", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x13, META) +OPDEF(CEE_TAIL_, "tail.", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x14, META) +OPDEF(CEE_INITOBJ, "initobj", PopI, Push0, InlineType, 0, 2, 0xFE, 0x15, NEXT) +OPDEF(CEE_CONSTRAINED_, "constrained.", Pop0, Push0, InlineType, 0, 2, 0xFE, 0x16, META) +OPDEF(CEE_CPBLK, "cpblk", PopI+PopI+PopI, Push0, InlineNone, 0, 2, 0xFE, 0x17, NEXT) +OPDEF(CEE_INITBLK, "initblk", PopI+PopI+PopI, Push0, InlineNone, 0, 2, 0xFE, 0x18, NEXT) +OPDEF(CEE_NO_, "no.", Pop0, Push0, ShortInlineI, 0, 2, 0xFE, 0x19, NEXT) +OPDEF(CEE_RETHROW, "rethrow", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x1A, ERROR) +OPDEF(CEE_UNUSED, "unused", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x1B, NEXT) +OPDEF(CEE_SIZEOF, "sizeof", Pop0, PushI, InlineType, 0, 2, 0xFE, 0x1C, NEXT) +OPDEF(CEE_REFANYTYPE, "refanytype", Pop1, PushI, InlineNone, 0, 2, 0xFE, 0x1D, NEXT) +OPDEF(CEE_READONLY_, "readonly.", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x1E, META) +OPDEF(CEE_UNUSED53, "unused53", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x1F, NEXT) +OPDEF(CEE_UNUSED54, "unused54", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x20, NEXT) +OPDEF(CEE_UNUSED55, "unused55", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x21, NEXT) +OPDEF(CEE_UNUSED70, "unused70", Pop0, Push0, InlineNone, 0, 2, 0xFE, 0x22, NEXT) +OPDEF(CEE_ILLEGAL, "illegal", Pop0, Push0, InlineNone, 0, 2, 0x00, 0x00, META) +OPDEF(CEE_ENDMAC, "endmac", Pop0, Push0, InlineNone, 0, 2, 0x00, 0x00, META) +OPDEF(CEE_MONO_ICALL, "mono_icall", VarPop, VarPush, InlineI, 0, 2, 0xF0, 0x00, NEXT) +OPDEF(CEE_MONO_OBJADDR, "mono_objaddr", Pop1, PushI, InlineNone, 0, 2, 0xF0, 0x01, NEXT) +OPDEF(CEE_MONO_LDPTR, "mono_ldptr", Pop0, PushI, InlineI, 0, 2, 0xF0, 0x02, NEXT) +OPDEF(CEE_MONO_VTADDR, "mono_vtaddr", Pop1, PushI, InlineNone, 0, 2, 0xF0, 0x03, NEXT) +OPDEF(CEE_MONO_NEWOBJ, "mono_newobj", Pop0, PushRef, InlineType, 0, 2, 0xF0, 0x04, NEXT) +OPDEF(CEE_MONO_RETOBJ, "mono_retobj", PopI, Push0, InlineType, 0, 2, 0xF0, 0x05, RETURN) +OPDEF(CEE_MONO_LDNATIVEOBJ, "mono_ldnativeobj", PopI, Push1, InlineType, 0, 2, 0xF0, 0x06, RETURN) +OPDEF(CEE_MONO_CISINST, "mono_cisinst", PopRef, Push1, InlineType, 0, 2, 0xF0, 0x07, NEXT) +OPDEF(CEE_MONO_CCASTCLASS, "mono_ccastclass", PopRef, Push1, InlineType, 0, 2, 0xF0, 0x08, NEXT) +OPDEF(CEE_MONO_SAVE_LMF, "mono_save_lmf", Pop0, Push0, InlineNone, 0, 2, 0xF0, 0x09, NEXT) +OPDEF(CEE_MONO_RESTORE_LMF, "mono_restore_lmf", Pop0, Push0, InlineNone, 0, 2, 0xF0, 0x0A, NEXT) +OPDEF(CEE_MONO_CLASSCONST, "mono_classconst", Pop0, PushI, InlineI, 0, 2, 0xF0, 0x0B, NEXT) +OPDEF(CEE_MONO_NOT_TAKEN, "mono_not_taken", Pop0, Push0, InlineNone, 0, 2, 0xF0, 0x0C, NEXT) +OPDEF(CEE_MONO_TLS, "mono_tls", Pop0, PushI, InlineI, 0, 2, 0xF0, 0x0D, NEXT) +OPDEF(CEE_MONO_ICALL_ADDR, "mono_icall_addr", Pop0, PushI, InlineI, 0, 2, 0xF0, 0x0E, NEXT) +OPDEF(CEE_MONO_DYN_CALL, "mono_dyn_call", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x0F, NEXT) +OPDEF(CEE_MONO_MEMORY_BARRIER, "mono_memory_barrier", Pop0, Push0, InlineI, 0, 2, 0xF0, 0x10, NEXT) +OPDEF(CEE_UNUSED71, "unused71", Pop0, Push0, InlineNone, 0, 2, 0xF0, 0x11, NEXT) +OPDEF(CEE_UNUSED72, "unused72", Pop0, Push0, InlineNone, 0, 2, 0xF0, 0x12, NEXT) +OPDEF(CEE_MONO_JIT_ICALL_ADDR, "mono_jit_icall_addr", Pop0, PushI, InlineI, 0, 2, 0xF0, 0x13, NEXT) +OPDEF(CEE_MONO_LDPTR_INT_REQ_FLAG, "mono_ldptr_int_req_flag", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x14, NEXT) +OPDEF(CEE_MONO_LDPTR_CARD_TABLE, "mono_ldptr_card_table", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x15, NEXT) +OPDEF(CEE_MONO_LDPTR_NURSERY_START, "mono_ldptr_nursery_start", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x16, NEXT) +OPDEF(CEE_MONO_LDPTR_NURSERY_BITS, "mono_ldptr_nursery_bits", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x17, NEXT) +OPDEF(CEE_MONO_CALLI_EXTRA_ARG, "mono_calli_extra_arg", VarPop, VarPush, InlineSig, 0, 2, 0xF0, 0x18, CALL) +OPDEF(CEE_MONO_LDDOMAIN, "mono_lddomain", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x19, NEXT) +OPDEF(CEE_MONO_ATOMIC_STORE_I4, "mono_atomic_store_i4", PopI+PopI, Push0, InlineI, 0, 2, 0xF0, 0x1A, NEXT) +OPDEF(CEE_MONO_SAVE_LAST_ERROR, "mono_save_last_error", Pop0, Push0, InlineNone, 0, 2, 0xF0, 0x1B, NEXT) +OPDEF(CEE_MONO_GET_RGCTX_ARG, "mono_get_rgctx_arg", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x1C, NEXT) +OPDEF(CEE_MONO_LDPTR_PROFILER_ALLOCATION_COUNT, "mono_ldptr_profiler_allocation_count", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x1D, NEXT) +OPDEF(CEE_MONO_LD_DELEGATE_METHOD_PTR, "mono_ld_delegate_method_ptr", Pop1, PushI, InlineNone, 0, 2, 0xF0, 0x1E, NEXT) +OPDEF(CEE_MONO_RETHROW, "mono_rethrow", PopRef, Push0, InlineNone, 0, 2, 0xF0, 0x1F, ERROR) +OPDEF(CEE_MONO_GET_SP, "mono_get_sp", Pop0, PushI, InlineNone, 0, 2, 0xF0, 0x20, NEXT) +#ifndef OPALIAS +#define _MONO_CIL_OPALIAS_DEFINED_ +#define OPALIAS(a,s,r) +#endif + +OPALIAS(CEE_BRNULL, "brnull", CEE_BRFALSE) +OPALIAS(CEE_BRNULL_S, "brnull.s", CEE_BRFALSE_S) +OPALIAS(CEE_BRZERO, "brzero", CEE_BRFALSE) +OPALIAS(CEE_BRZERO_S, "brzero.s", CEE_BRFALSE_S) +OPALIAS(CEE_BRINST, "brinst", CEE_BRTRUE) +OPALIAS(CEE_BRINST_S, "brinst.s", CEE_BRTRUE_S) +OPALIAS(CEE_LDIND_U8, "ldind.u8", CEE_LDIND_I8) +OPALIAS(CEE_LDELEM_U8, "ldelem.u8", CEE_LDELEM_I8) +OPALIAS(CEE_LDX_I4_MIX, "ldc.i4.M1", CEE_LDC_I4_M1) +OPALIAS(CEE_ENDFAULT, "endfault", CEE_ENDFINALLY) + +#ifdef _MONO_CIL_OPALIAS_DEFINED_ +#undef OPALIAS +#undef _MONO_CIL_OPALIAS_DEFINED_ +#endif diff --git a/Prism/vendor/mono/include/mono/jit/details/jit-functions.h b/Prism/vendor/mono/include/mono/jit/details/jit-functions.h deleted file mode 100644 index 34b2260..0000000 --- a/Prism/vendor/mono/include/mono/jit/details/jit-functions.h +++ /dev/null @@ -1,50 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoDomain *, mono_jit_init, (const char *root_domain_name)) - -/** - * This function is deprecated, use mono_jit_init instead. Ignores runtime_version parameter. - */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoDomain *, mono_jit_init_version, (const char *root_domain_name, const char *runtime_version)) - -MONO_API_FUNCTION(MonoDomain *, mono_jit_init_version_for_test_only, (const char *root_domain_name, const char *runtime_version)) - -MONO_API_FUNCTION(int, mono_jit_exec, (MonoDomain *domain, MonoAssembly *assembly, int argc, char *argv[])) -MONO_API_FUNCTION(void, mono_jit_cleanup, (MonoDomain *domain)) - -MONO_API_FUNCTION(mono_bool, mono_jit_set_trace_options, (const char* options)) - -MONO_API_FUNCTION(void, mono_set_signal_chaining, (mono_bool chain_signals)) - -MONO_API_FUNCTION(void, mono_set_crash_chaining, (mono_bool chain_signals)) - -/** - * This function is deprecated, use mono_jit_set_aot_mode instead. - */ -MONO_API_FUNCTION(void, mono_jit_set_aot_only, (mono_bool aot_only)) - -MONO_API_FUNCTION(void, mono_jit_set_aot_mode, (MonoAotMode mode)) - -/* - * Returns whether the runtime was invoked for the purpose of AOT-compiling an - * assembly, i.e. no managed code will run. - */ -MONO_API_FUNCTION(mono_bool, mono_jit_aot_compiling, (void)) - -MONO_API_FUNCTION(void, mono_set_break_policy, (MonoBreakPolicyFunc policy_callback)) - -MONO_API_FUNCTION(void, mono_jit_parse_options, (int argc, char * argv[])) - -MONO_API_FUNCTION(char*, mono_get_runtime_build_info, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_set_use_llvm, (mono_bool use_llvm)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_aot_register_module, (void **aot_info)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoDomain*, mono_jit_thread_attach, (MonoDomain *domain)) diff --git a/Prism/vendor/mono/include/mono/jit/details/jit-types.h b/Prism/vendor/mono/include/mono/jit/details/jit-types.h deleted file mode 100644 index 53b7c3d..0000000 --- a/Prism/vendor/mono/include/mono/jit/details/jit-types.h +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_JIT_TYPES_H -#define _MONO_JIT_TYPES_H - -#include - -MONO_BEGIN_DECLS - -/** - * Allows control over our AOT (Ahead-of-time) compilation mode. - */ -typedef enum { - /* Disables AOT mode */ - MONO_AOT_MODE_NONE, - /* Enables normal AOT mode, equivalent to mono_jit_set_aot_only (false) */ - MONO_AOT_MODE_NORMAL, - /* Enables hybrid AOT mode, JIT can still be used for wrappers */ - MONO_AOT_MODE_HYBRID, - /* Enables full AOT mode, JIT is disabled and not allowed, - * equivalent to mono_jit_set_aot_only (true) */ - MONO_AOT_MODE_FULL, - /* Same as LLVMONLY_INTERP */ - MONO_AOT_MODE_LLVMONLY, - /* - * Use interpreter only, no native code is generated - * at runtime. Trampolines are loaded from corlib aot image. - */ - MONO_AOT_MODE_INTERP, - /* Same as INTERP, but use only llvm compiled code */ - MONO_AOT_MODE_INTERP_LLVMONLY, - /* Use only llvm compiled code, fall back to the interpreter */ - MONO_AOT_MODE_LLVMONLY_INTERP, - /* Same as --interp */ - MONO_AOT_MODE_INTERP_ONLY, - /* Sentinel value used internally by the runtime. We use a large number to avoid clashing with some internal values. */ - MONO_AOT_MODE_LAST = 1000, -} MonoAotMode; - -/* Allow embedders to decide wherther to actually obey breakpoint instructions - * in specific methods (works for both break IL instructions and Debugger.Break () - * method calls). - */ -typedef enum { - /* the default is to always obey the breakpoint */ - MONO_BREAK_POLICY_ALWAYS, - /* a nop is inserted instead of a breakpoint */ - MONO_BREAK_POLICY_NEVER, - /* the breakpoint is executed only if the program has ben started under - * the debugger (that is if a debugger was attached at the time the method - * was compiled). - */ - MONO_BREAK_POLICY_ON_DBG -} MonoBreakPolicy; - -typedef MonoBreakPolicy (*MonoBreakPolicyFunc) (MonoMethod *method); - -MONO_END_DECLS - -#endif /* _MONO_JIT_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/jit/details/mono-private-unstable-functions.h b/Prism/vendor/mono/include/mono/jit/details/mono-private-unstable-functions.h deleted file mode 100644 index 04076d5..0000000 --- a/Prism/vendor/mono/include/mono/jit/details/mono-private-unstable-functions.h +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -/** - * - * Private unstable APIs. - * - * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at - * any time. - * - */ -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_load_aot_data_hook, (MonoLoadAotDataFunc load_func, MonoFreeAotDataFunc free_func, void* user_data)) - -MONO_API_FUNCTION(int, monovm_initialize, (int propertyCount, const char **propertyKeys, const char **propertyValues)) - -MONO_API_FUNCTION(int, monovm_runtimeconfig_initialize, (MonovmRuntimeConfigArguments *arg, MonovmRuntimeConfigArgumentsCleanup cleanup_fn, void *user_data)) - -// The wrapper MonoCoreRuntimeProperties struct can be stack-allocated or freed, but the structs inside it _must_ be heap-allocated and never freed, as they are not copied to avoid extra allocations -MONO_API_FUNCTION(int, monovm_initialize_preparsed, (MonoCoreRuntimeProperties *parsed_properties, int propertyCount, const char **propertyKeys, const char **propertyValues)) - -//#ifdef HOST_WASM -MONO_API_FUNCTION(void, mono_wasm_install_get_native_to_interp_tramp, (MonoWasmGetNativeToInterpTramp cb)) -//#endif diff --git a/Prism/vendor/mono/include/mono/jit/details/mono-private-unstable-types.h b/Prism/vendor/mono/include/mono/jit/details/mono-private-unstable-types.h deleted file mode 100644 index 6439889..0000000 --- a/Prism/vendor/mono/include/mono/jit/details/mono-private-unstable-types.h +++ /dev/null @@ -1,71 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -/** - * - * Private unstable APIs. - * - * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at - * any time. - * - */ -#ifndef _MONO_JIT_PRIVATE_UNSTABLE_TYPES_H -#define _MONO_JIT_PRIVATE_UNSTABLE_TYPES_H - -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef struct { - uint32_t kind; // 0 = Path of runtimeconfig.blob, 1 = pointer to image data, >= 2 undefined - union { - struct { - const char *path; - } name; - struct { - const char *data; - uint32_t data_len; - } data; - } runtimeconfig; -} MonovmRuntimeConfigArguments; - -typedef void (*MonovmRuntimeConfigArgumentsCleanup) (MonovmRuntimeConfigArguments *args, void *user_data); - -typedef struct { - uint32_t assembly_count; - char **basenames; /* Foo.dll */ - uint32_t *basename_lens; - char **assembly_filepaths; /* /blah/blah/blah/Foo.dll */ -} MonoCoreTrustedPlatformAssemblies; - -typedef struct { - uint32_t dir_count; - char **dirs; -} MonoCoreLookupPaths; - -typedef struct { - MonoCoreTrustedPlatformAssemblies *trusted_platform_assemblies; - MonoCoreLookupPaths *app_paths; - MonoCoreLookupPaths *native_dll_search_directories; - PInvokeOverrideFn pinvoke_override; -} MonoCoreRuntimeProperties; - -/* These are used to load the AOT data for aot images compiled with MONO_AOT_FILE_FLAG_SEPARATE_DATA */ -/* - * Return the AOT data for ASSEMBLY. SIZE is the size of the data. OUT_HANDLE should be set to a handle which is later - * passed to the free function. - */ -typedef unsigned char* (*MonoLoadAotDataFunc) (MonoAssembly *assembly, int size, void* user_data, void **out_handle); -/* Not yet used */ -typedef void (*MonoFreeAotDataFunc) (MonoAssembly *assembly, int size, void* user_data, void *handle); - -//#ifdef HOST_WASM -typedef void* (*MonoWasmGetNativeToInterpTramp) (MonoMethod *method, void *extra_arg); -typedef void* (*MonoWasmNativeToInterpCallback) (char * cookie); -//#endif - -MONO_END_DECLS - -#endif /* _MONO_JIT_PRIVATE_UNSTABLE_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/jit/jit.h b/Prism/vendor/mono/include/mono/jit/jit.h index 8c5323f..9fc6a18 100644 --- a/Prism/vendor/mono/include/mono/jit/jit.h +++ b/Prism/vendor/mono/include/mono/jit/jit.h @@ -9,14 +9,111 @@ #ifndef _MONO_JIT_JIT_H_ #define _MONO_JIT_JIT_H_ -#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API MONO_RT_EXTERNAL_ONLY MonoDomain * +mono_jit_init (const char *file); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoDomain * +mono_jit_init_version (const char *root_domain_name, const char *runtime_version); + +MONO_API MonoDomain * +mono_jit_init_version_for_test_only (const char *root_domain_name, const char *runtime_version); + +MONO_API int +mono_jit_exec (MonoDomain *domain, MonoAssembly *assembly, + int argc, char *argv[]); +MONO_API void +mono_jit_cleanup (MonoDomain *domain); + +MONO_API mono_bool +mono_jit_set_trace_options (const char* options); + +MONO_API void +mono_set_signal_chaining (mono_bool chain_signals); + +MONO_API void +mono_set_crash_chaining (mono_bool chain_signals); + +/** + * This function is deprecated, use mono_jit_set_aot_mode instead. + */ +MONO_API void +mono_jit_set_aot_only (mono_bool aot_only); + +/** + * Allows control over our AOT (Ahead-of-time) compilation mode. + */ +typedef enum { + /* Disables AOT mode */ + MONO_AOT_MODE_NONE, + /* Enables normal AOT mode, equivalent to mono_jit_set_aot_only (false) */ + MONO_AOT_MODE_NORMAL, + /* Enables hybrid AOT mode, JIT can still be used for wrappers */ + MONO_AOT_MODE_HYBRID, + /* Enables full AOT mode, JIT is disabled and not allowed, + * equivalent to mono_jit_set_aot_only (true) */ + MONO_AOT_MODE_FULL, + /* Same as full, but use only llvm compiled code */ + MONO_AOT_MODE_LLVMONLY, + /* Uses Interpreter, JIT is disabled and not allowed, + * equivalent to "--full-aot --interpreter" */ + MONO_AOT_MODE_INTERP, + /* Same as INTERP, but use only llvm compiled code */ + MONO_AOT_MODE_INTERP_LLVMONLY, + /* Use only llvm compiled code, fall back to the interpeter */ + MONO_AOT_MODE_LLVMONLY_INTERP, + /* Sentinel value used internally by the runtime. We use a large number to avoid clashing with some internal values. */ + MONO_AOT_MODE_LAST = 1000, +} MonoAotMode; + +MONO_API void +mono_jit_set_aot_mode (MonoAotMode mode); + +/* + * Returns whether the runtime was invoked for the purpose of AOT-compiling an + * assembly, i.e. no managed code will run. + */ +MONO_API mono_bool +mono_jit_aot_compiling (void); + +/* Allow embedders to decide wherther to actually obey breakpoint instructions + * in specific methods (works for both break IL instructions and Debugger.Break () + * method calls). + */ +typedef enum { + /* the default is to always obey the breakpoint */ + MONO_BREAK_POLICY_ALWAYS, + /* a nop is inserted instead of a breakpoint */ + MONO_BREAK_POLICY_NEVER, + /* the breakpoint is executed only if the program has ben started under + * the debugger (that is if a debugger was attached at the time the method + * was compiled). + */ + MONO_BREAK_POLICY_ON_DBG +} MonoBreakPolicy; + +typedef MonoBreakPolicy (*MonoBreakPolicyFunc) (MonoMethod *method); +MONO_API void mono_set_break_policy (MonoBreakPolicyFunc policy_callback); + +MONO_API void +mono_jit_parse_options (int argc, char * argv[]); + +MONO_API char* mono_get_runtime_build_info (void); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_set_use_llvm (mono_bool use_llvm); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_aot_register_module (void **aot_info); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoDomain* mono_jit_thread_attach (MonoDomain *domain); + MONO_END_DECLS #endif + diff --git a/Prism/vendor/mono/include/mono/jit/mono-private-unstable.h b/Prism/vendor/mono/include/mono/jit/mono-private-unstable.h deleted file mode 100644 index 006c0cf..0000000 --- a/Prism/vendor/mono/include/mono/jit/mono-private-unstable.h +++ /dev/null @@ -1,25 +0,0 @@ -/** - * \file - * - * Private unstable APIs. - * - * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at - * any time. - * - */ - - -#ifndef __MONO_JIT_MONO_PRIVATE_UNSTABLE_H__ -#define __MONO_JIT_MONO_PRIVATE_UNSTABLE_H__ - -#include - -MONO_BEGIN_DECLS - -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION - -MONO_END_DECLS - -#endif /*__MONO_JIT_MONO_PRIVATE_UNSTABLE_H__*/ diff --git a/Prism/vendor/mono/include/mono/metadata/appdomain.h b/Prism/vendor/mono/include/mono/metadata/appdomain.h index db135f1..ab26064 100644 --- a/Prism/vendor/mono/include/mono/metadata/appdomain.h +++ b/Prism/vendor/mono/include/mono/metadata/appdomain.h @@ -11,13 +11,219 @@ #ifndef _MONO_METADATA_APPDOMAIN_H_ #define _MONO_METADATA_APPDOMAIN_H_ -#include +#include + +#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef void (*MonoThreadStartCB) (intptr_t tid, void* stack_start, + void* func); +typedef void (*MonoThreadAttachCB) (intptr_t tid, void* stack_start); + +typedef struct _MonoAppDomain MonoAppDomain; + +typedef void (*MonoDomainFunc) (MonoDomain *domain, void* user_data); + +MONO_API MonoDomain* +mono_init (const char *filename); + +MONO_API MonoDomain * +mono_init_from_assembly (const char *domain_name, const char *filename); + +MONO_API MonoDomain * +mono_init_version (const char *domain_name, const char *version); + +MONO_API MonoDomain* +mono_get_root_domain (void); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_runtime_init (MonoDomain *domain, MonoThreadStartCB start_cb, + MonoThreadAttachCB attach_cb); + +MONO_API void +mono_runtime_cleanup (MonoDomain *domain); + +MONO_API void +mono_install_runtime_cleanup (MonoDomainFunc func); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_runtime_quit (void); + +MONO_API void +mono_runtime_set_shutting_down (void); + +MONO_API mono_bool +mono_runtime_is_shutting_down (void); + +MONO_API const char* +mono_check_corlib_version (void); + +MONO_API MonoDomain * +mono_domain_create (void); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoDomain * +mono_domain_create_appdomain (char *friendly_name, char *configuration_file); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_domain_set_config (MonoDomain *domain, const char *base_dir, const char *config_file_name); + +MONO_API MonoDomain * +mono_domain_get (void); + +MONO_API MonoDomain * +mono_domain_get_by_id (int32_t domainid); + +MONO_API int32_t +mono_domain_get_id (MonoDomain *domain); + +MONO_API const char * +mono_domain_get_friendly_name (MonoDomain *domain); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_domain_set (MonoDomain *domain, mono_bool force); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_domain_set_internal (MonoDomain *domain); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_domain_unload (MonoDomain *domain); + +MONO_API void +mono_domain_try_unload (MonoDomain *domain, MonoObject **exc); + +MONO_API mono_bool +mono_domain_is_unloading (MonoDomain *domain); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoDomain * +mono_domain_from_appdomain (MonoAppDomain *appdomain); + +MONO_API void +mono_domain_foreach (MonoDomainFunc func, void* user_data); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoAssembly * +mono_domain_assembly_open (MonoDomain *domain, const char *name); + +MONO_API mono_bool +mono_domain_finalize (MonoDomain *domain, uint32_t timeout); + +MONO_API void +mono_domain_free (MonoDomain *domain, mono_bool force); + +MONO_API mono_bool +mono_domain_has_type_resolve (MonoDomain *domain); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoReflectionAssembly * +mono_domain_try_type_resolve (MonoDomain *domain, char *name, MonoObject *tb); + +MONO_API mono_bool +mono_domain_owns_vtable_slot (MonoDomain *domain, void* vtable_slot); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_context_init (MonoDomain *domain); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_context_set (MonoAppContext *new_context); + +MONO_API MonoAppContext * +mono_context_get (void); + +MONO_API int32_t +mono_context_get_id (MonoAppContext *context); + +MONO_API int32_t +mono_context_get_domain_id (MonoAppContext *context); + +MONO_API MonoJitInfo * +mono_jit_info_table_find (MonoDomain *domain, void* addr); + +/* MonoJitInfo accessors */ + +MONO_API void* +mono_jit_info_get_code_start (MonoJitInfo* ji); + +MONO_API int +mono_jit_info_get_code_size (MonoJitInfo* ji); + +MONO_API MonoMethod* +mono_jit_info_get_method (MonoJitInfo* ji); + + +MONO_API MonoImage* +mono_get_corlib (void); + +MONO_API MonoClass* +mono_get_object_class (void); + +MONO_API MonoClass* +mono_get_byte_class (void); + +MONO_API MonoClass* +mono_get_void_class (void); + +MONO_API MonoClass* +mono_get_boolean_class (void); + +MONO_API MonoClass* +mono_get_sbyte_class (void); + +MONO_API MonoClass* +mono_get_int16_class (void); + +MONO_API MonoClass* +mono_get_uint16_class (void); + +MONO_API MonoClass* +mono_get_int32_class (void); + +MONO_API MonoClass* +mono_get_uint32_class (void); + +MONO_API MonoClass* +mono_get_intptr_class (void); + +MONO_API MonoClass* +mono_get_uintptr_class (void); + +MONO_API MonoClass* +mono_get_int64_class (void); + +MONO_API MonoClass* +mono_get_uint64_class (void); + +MONO_API MonoClass* +mono_get_single_class (void); + +MONO_API MonoClass* +mono_get_double_class (void); + +MONO_API MonoClass* +mono_get_char_class (void); + +MONO_API MonoClass* +mono_get_string_class (void); + +MONO_API MonoClass* +mono_get_enum_class (void); + +MONO_API MonoClass* +mono_get_array_class (void); + +MONO_API MonoClass* +mono_get_thread_class (void); + +MONO_API MonoClass* +mono_get_exception_class (void); + +MONO_API void +mono_security_enable_core_clr (void); + +typedef mono_bool (*MonoCoreClrPlatformCB) (const char *image_name); + +MONO_API void +mono_security_set_core_clr_platform_callback (MonoCoreClrPlatformCB callback); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/assembly.h b/Prism/vendor/mono/include/mono/metadata/assembly.h index b528dc9..e9c02ee 100644 --- a/Prism/vendor/mono/include/mono/metadata/assembly.h +++ b/Prism/vendor/mono/include/mono/metadata/assembly.h @@ -2,17 +2,134 @@ * \file */ -#ifndef _MONONET_METADATA_ASSEMBLY_H_ +#ifndef _MONONET_METADATA_ASSEMBLY_H_ #define _MONONET_METADATA_ASSEMBLY_H_ -#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API void mono_assemblies_init (void); +MONO_API void mono_assemblies_cleanup (void); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly *mono_assembly_open (const char *filename, + MonoImageOpenStatus *status); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly *mono_assembly_open_full (const char *filename, + MonoImageOpenStatus *status, + mono_bool refonly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly* mono_assembly_load (MonoAssemblyName *aname, + const char *basedir, + MonoImageOpenStatus *status); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly* mono_assembly_load_full (MonoAssemblyName *aname, + const char *basedir, + MonoImageOpenStatus *status, + mono_bool refonly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly* mono_assembly_load_from (MonoImage *image, const char *fname, + MonoImageOpenStatus *status); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly* mono_assembly_load_from_full (MonoImage *image, const char *fname, + MonoImageOpenStatus *status, + mono_bool refonly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly* mono_assembly_load_with_partial_name (const char *name, MonoImageOpenStatus *status); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly* mono_assembly_loaded (MonoAssemblyName *aname); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly* mono_assembly_loaded_full (MonoAssemblyName *aname, mono_bool refonly); +MONO_API void mono_assembly_get_assemblyref (MonoImage *image, int index, MonoAssemblyName *aname); +MONO_API void mono_assembly_load_reference (MonoImage *image, int index); +MONO_API void mono_assembly_load_references (MonoImage *image, MonoImageOpenStatus *status); +MONO_API MONO_RT_EXTERNAL_ONLY MonoImage* mono_assembly_load_module (MonoAssembly *assembly, uint32_t idx); +MONO_API void mono_assembly_close (MonoAssembly *assembly); +MONO_API void mono_assembly_setrootdir (const char *root_dir); +MONO_API MONO_CONST_RETURN char *mono_assembly_getrootdir (void); +MONO_API char *mono_native_getrootdir (void); +MONO_API void mono_assembly_foreach (MonoFunc func, void* user_data); +MONO_API void mono_assembly_set_main (MonoAssembly *assembly); +MONO_API MonoAssembly *mono_assembly_get_main (void); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_assembly_get_image (MonoAssembly *assembly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssemblyName *mono_assembly_get_name (MonoAssembly *assembly); +MONO_API mono_bool mono_assembly_fill_assembly_name (MonoImage *image, MonoAssemblyName *aname); +MONO_API mono_bool mono_assembly_names_equal (MonoAssemblyName *l, MonoAssemblyName *r); +MONO_API char* mono_stringify_assembly_name (MonoAssemblyName *aname); + +/* Installs a function which is called each time a new assembly is loaded. */ +typedef void (*MonoAssemblyLoadFunc) (MonoAssembly *assembly, void* user_data); +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_install_assembly_load_hook (MonoAssemblyLoadFunc func, void* user_data); + +/* + * Installs a new function which is used to search the list of loaded + * assemblies for a given assembly name. + */ +typedef MonoAssembly *(*MonoAssemblySearchFunc) (MonoAssemblyName *aname, void* user_data); +MONO_API MONO_RT_EXTERNAL_ONLY +void mono_install_assembly_search_hook (MonoAssemblySearchFunc func, void* user_data); +MONO_API MONO_RT_EXTERNAL_ONLY +void mono_install_assembly_refonly_search_hook (MonoAssemblySearchFunc func, void* user_data); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoAssembly* mono_assembly_invoke_search_hook (MonoAssemblyName *aname); + +/* + * Installs a new search function which is used as a last resort when loading + * an assembly fails. This could invoke AssemblyResolve events. + */ +MONO_API MONO_RT_EXTERNAL_ONLY +void +mono_install_assembly_postload_search_hook (MonoAssemblySearchFunc func, void* user_data); + +MONO_API MONO_RT_EXTERNAL_ONLY +void +mono_install_assembly_postload_refonly_search_hook (MonoAssemblySearchFunc func, void* user_data); + + +/* Installs a function which is called before a new assembly is loaded + * The hook are invoked from last hooked to first. If any of them returns + * a non-null value, that will be the value returned in mono_assembly_load */ +typedef MonoAssembly * (*MonoAssemblyPreLoadFunc) (MonoAssemblyName *aname, + char **assemblies_path, + void* user_data); + +MONO_API MONO_RT_EXTERNAL_ONLY +void mono_install_assembly_preload_hook (MonoAssemblyPreLoadFunc func, void* user_data); +MONO_API MONO_RT_EXTERNAL_ONLY +void mono_install_assembly_refonly_preload_hook (MonoAssemblyPreLoadFunc func, void* user_data); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_assembly_invoke_load_hook (MonoAssembly *ass); + +MONO_API MonoAssemblyName* mono_assembly_name_new (const char *name); +MONO_API const char* mono_assembly_name_get_name (MonoAssemblyName *aname); +MONO_API const char* mono_assembly_name_get_culture (MonoAssemblyName *aname); +MONO_API uint16_t mono_assembly_name_get_version (MonoAssemblyName *aname, + uint16_t *minor, uint16_t *build, uint16_t *revision); +MONO_API mono_byte* mono_assembly_name_get_pubkeytoken (MonoAssemblyName *aname); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_assembly_name_free (MonoAssemblyName *aname); + +typedef struct { + const char *name; + const unsigned char *data; + unsigned int size; +} MonoBundledAssembly; + +MONO_API void mono_register_bundled_assemblies (const MonoBundledAssembly **assemblies); +MONO_API void mono_register_config_for_assembly (const char* assembly_name, const char* config_xml); +MONO_API void mono_register_symfile_for_assembly (const char* assembly_name, const mono_byte *raw_contents, int size); +MONO_API void mono_register_machine_config (const char *config_xml); + +MONO_API void mono_set_rootdir (void); +MONO_API void mono_set_dirs (const char *assembly_dir, const char *config_dir); +MONO_API void mono_set_assemblies_path (const char* path); MONO_END_DECLS #endif diff --git a/Prism/vendor/mono/include/mono/metadata/attrdefs.h b/Prism/vendor/mono/include/mono/metadata/attrdefs.h index a3a4749..504c6c6 100644 --- a/Prism/vendor/mono/include/mono/metadata/attrdefs.h +++ b/Prism/vendor/mono/include/mono/metadata/attrdefs.h @@ -12,12 +12,12 @@ * * From the ECMA documentation */ - + #ifndef _MONO_METADATA_ATTRDEFS_H_ #define _MONO_METADATA_ATTRDEFS_H_ /* - * 23.1.1 Values for AssemblyHashAlgorithm + * 23.1.1 Values for AssemblyHashAlgorithm */ enum { MONO_ASSEMBLY_HASH_NONE, @@ -186,7 +186,7 @@ enum { MONO_METHOD_IMPL_ATTR_INTERNAL_CALL = 0x1000, MONO_METHOD_IMPL_ATTR_SYNCHRONIZED = 0x0020, MONO_METHOD_IMPL_ATTR_NOINLINING = 0x0008, - MONO_METHOD_IMPL_ATTR_NOOPTIMIZATION = 0x0040, + MONO_METHOD_IMPL_ATTR_NOOPTIMIZATION = 0x0040, MONO_METHOD_IMPL_ATTR_MAX_METHOD_IMPL_VAL = 0xffff }; diff --git a/Prism/vendor/mono/include/mono/metadata/blob.h b/Prism/vendor/mono/include/mono/metadata/blob.h index 7405d54..df26858 100644 --- a/Prism/vendor/mono/include/mono/metadata/blob.h +++ b/Prism/vendor/mono/include/mono/metadata/blob.h @@ -81,8 +81,8 @@ typedef enum { MONO_TABLE_TYPESPEC, MONO_TABLE_IMPLMAP, MONO_TABLE_FIELDRVA, - MONO_TABLE_ENCLOG, - MONO_TABLE_ENCMAP, + MONO_TABLE_UNUSED6, + MONO_TABLE_UNUSED7, MONO_TABLE_ASSEMBLY, /* 0x20 */ MONO_TABLE_ASSEMBLYPROCESSOR, MONO_TABLE_ASSEMBLYOS, diff --git a/Prism/vendor/mono/include/mono/metadata/class.h b/Prism/vendor/mono/include/mono/metadata/class.h index f343542..8966e02 100644 --- a/Prism/vendor/mono/include/mono/metadata/class.h +++ b/Prism/vendor/mono/include/mono/metadata/class.h @@ -10,13 +10,303 @@ #include #include -#include - MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef struct MonoVTable MonoVTable; + +typedef struct _MonoClassField MonoClassField; +typedef struct _MonoProperty MonoProperty; +typedef struct _MonoEvent MonoEvent; + +typedef enum { + MONO_TYPE_NAME_FORMAT_IL, + MONO_TYPE_NAME_FORMAT_REFLECTION, + MONO_TYPE_NAME_FORMAT_FULL_NAME, + MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED +} MonoTypeNameFormat; + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass * +mono_class_get (MonoImage *image, uint32_t type_token); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass * +mono_class_get_full (MonoImage *image, uint32_t type_token, MonoGenericContext *context); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_class_init (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoVTable * +mono_class_vtable (MonoDomain *domain, MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoClass * +mono_class_from_name (MonoImage *image, const char* name_space, const char *name); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoClass * +mono_class_from_name_case (MonoImage *image, const char* name_space, const char *name); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod * +mono_class_get_method_from_name_flags (MonoClass *klass, const char *name, int param_count, int flags); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoClass * +mono_class_from_typeref (MonoImage *image, uint32_t type_token); + +MONO_API MonoClass * +mono_class_from_typeref_checked (MonoImage *image, uint32_t type_token, MonoError *error); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass * +mono_class_from_generic_parameter (MonoGenericParam *param, MonoImage *image, mono_bool is_mvar); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoType* +mono_class_inflate_generic_type (MonoType *type, MonoGenericContext *context) /* MONO_DEPRECATED */; + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoMethod* +mono_class_inflate_generic_method (MonoMethod *method, MonoGenericContext *context); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoMethod * +mono_get_inflated_method (MonoMethod *method); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClassField* +mono_field_from_token (MonoImage *image, uint32_t token, MonoClass **retklass, MonoGenericContext *context); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass * +mono_bounded_array_class_get (MonoClass *element_class, uint32_t rank, mono_bool bounded); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass * +mono_array_class_get (MonoClass *element_class, uint32_t rank); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass * +mono_ptr_class_get (MonoType *type); + +MONO_API MonoClassField * +mono_class_get_field (MonoClass *klass, uint32_t field_token); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClassField * +mono_class_get_field_from_name (MonoClass *klass, const char *name); + +MONO_API uint32_t +mono_class_get_field_token (MonoClassField *field); + +MONO_API uint32_t +mono_class_get_event_token (MonoEvent *event); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoProperty * +mono_class_get_property_from_name (MonoClass *klass, const char *name); + +MONO_API uint32_t +mono_class_get_property_token (MonoProperty *prop); + +MONO_API int32_t +mono_array_element_size (MonoClass *ac); + +MONO_API int32_t +mono_class_instance_size (MonoClass *klass); + +MONO_API int32_t +mono_class_array_element_size (MonoClass *klass); + +MONO_API int32_t +mono_class_data_size (MonoClass *klass); + +MONO_API int32_t +mono_class_value_size (MonoClass *klass, uint32_t *align); + +MONO_API int32_t +mono_class_min_align (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoClass * +mono_class_from_mono_type (MonoType *type); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_class_is_subclass_of (MonoClass *klass, MonoClass *klassc, + mono_bool check_interfaces); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_class_is_assignable_from (MonoClass *klass, MonoClass *oklass); + +MONO_API MONO_RT_EXTERNAL_ONLY +void* +mono_ldtoken (MonoImage *image, uint32_t token, MonoClass **retclass, MonoGenericContext *context); + +MONO_API char * +mono_type_get_name_full (MonoType *type, MonoTypeNameFormat format); + +MONO_API char* +mono_type_get_name (MonoType *type); + +MONO_API MonoType* +mono_type_get_underlying_type (MonoType *type); + +/* MonoClass accessors */ +MONO_API MonoImage* +mono_class_get_image (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass* +mono_class_get_element_class (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +mono_bool +mono_class_is_valuetype (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +mono_bool +mono_class_is_enum (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoType* +mono_class_enum_basetype (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass* +mono_class_get_parent (MonoClass *klass); + +MONO_API MonoClass* +mono_class_get_nesting_type (MonoClass *klass); + +MONO_API int +mono_class_get_rank (MonoClass *klass); + +MONO_API uint32_t +mono_class_get_flags (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +const char* +mono_class_get_name (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +const char* +mono_class_get_namespace (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoType* +mono_class_get_type (MonoClass *klass); + +MONO_API uint32_t +mono_class_get_type_token (MonoClass *klass); + +MONO_API MonoType* +mono_class_get_byref_type (MonoClass *klass); + +MONO_API int +mono_class_num_fields (MonoClass *klass); + +MONO_API int +mono_class_num_methods (MonoClass *klass); + +MONO_API int +mono_class_num_properties (MonoClass *klass); + +MONO_API int +mono_class_num_events (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClassField* +mono_class_get_fields (MonoClass* klass, void **iter); + +MONO_API MonoMethod* +mono_class_get_methods (MonoClass* klass, void **iter); + +MONO_API MonoProperty* +mono_class_get_properties (MonoClass* klass, void **iter); + +MONO_API MonoEvent* +mono_class_get_events (MonoClass* klass, void **iter); + +MONO_API MonoClass* +mono_class_get_interfaces (MonoClass* klass, void **iter); + +MONO_API MonoClass* +mono_class_get_nested_types (MonoClass* klass, void **iter); + +MONO_API MONO_RT_EXTERNAL_ONLY +mono_bool +mono_class_is_delegate (MonoClass* klass); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_class_implements_interface (MonoClass* klass, MonoClass* iface); + +/* MonoClassField accessors */ +MONO_API const char* +mono_field_get_name (MonoClassField *field); + +MONO_API MonoType* +mono_field_get_type (MonoClassField *field); + +MONO_API MonoClass* +mono_field_get_parent (MonoClassField *field); + +MONO_API uint32_t +mono_field_get_flags (MonoClassField *field); + +MONO_API uint32_t +mono_field_get_offset (MonoClassField *field); + +MONO_API const char * +mono_field_get_data (MonoClassField *field); + +/* MonoProperty acessors */ +MONO_API const char* +mono_property_get_name (MonoProperty *prop); + +MONO_API MonoMethod* +mono_property_get_set_method (MonoProperty *prop); + +MONO_API MonoMethod* +mono_property_get_get_method (MonoProperty *prop); + +MONO_API MonoClass* +mono_property_get_parent (MonoProperty *prop); + +MONO_API uint32_t +mono_property_get_flags (MonoProperty *prop); + +/* MonoEvent accessors */ +MONO_API const char* +mono_event_get_name (MonoEvent *event); + +MONO_API MonoMethod* +mono_event_get_add_method (MonoEvent *event); + +MONO_API MonoMethod* +mono_event_get_remove_method (MonoEvent *event); + +MONO_API MonoMethod* +mono_event_get_remove_method (MonoEvent *event); + +MONO_API MonoMethod* +mono_event_get_raise_method (MonoEvent *event); + +MONO_API MonoClass* +mono_event_get_parent (MonoEvent *event); + +MONO_API uint32_t +mono_event_get_flags (MonoEvent *event); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod * +mono_class_get_method_from_name (MonoClass *klass, const char *name, int param_count); + +MONO_API char * +mono_class_name_from_token (MonoImage *image, uint32_t type_token); + +MONO_API mono_bool +mono_method_can_access_field (MonoMethod *method, MonoClassField *field); + +MONO_API mono_bool +mono_method_can_access_method (MonoMethod *method, MonoMethod *called); + +MONO_API mono_bool +mono_class_is_nullable (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoClass* +mono_class_get_nullable_param (MonoClass *klass); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/debug-helpers.h b/Prism/vendor/mono/include/mono/metadata/debug-helpers.h index 4f0bde1..8ecdf8e 100644 --- a/Prism/vendor/mono/include/mono/metadata/debug-helpers.h +++ b/Prism/vendor/mono/include/mono/metadata/debug-helpers.h @@ -5,13 +5,48 @@ #ifndef __MONO_DEBUG_HELPERS_H__ #define __MONO_DEBUG_HELPERS_H__ -#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef struct MonoDisHelper MonoDisHelper; + +typedef char* (*MonoDisIndenter) (MonoDisHelper *dh, MonoMethod *method, uint32_t ip_offset); +typedef char* (*MonoDisTokener) (MonoDisHelper *dh, MonoMethod *method, uint32_t token); + +struct MonoDisHelper { + const char *newline; + const char *label_format; + const char *label_target; + MonoDisIndenter indenter; + MonoDisTokener tokener; + void* user_data; +}; + +MONO_API char* mono_disasm_code_one (MonoDisHelper *dh, MonoMethod *method, const mono_byte *ip, const mono_byte** endp); +MONO_API char* mono_disasm_code (MonoDisHelper *dh, MonoMethod *method, const mono_byte *ip, const mono_byte* end); + +typedef struct MonoMethodDesc MonoMethodDesc; + +MONO_API char* mono_type_full_name (MonoType *type); + +MONO_API char* mono_signature_get_desc (MonoMethodSignature *sig, mono_bool include_namespace); + +MONO_API char* mono_context_get_desc (MonoGenericContext *context); + +MONO_API MonoMethodDesc* mono_method_desc_new (const char *name, mono_bool include_namespace); +MONO_API MonoMethodDesc* mono_method_desc_from_method (MonoMethod *method); +MONO_API void mono_method_desc_free (MonoMethodDesc *desc); +MONO_API mono_bool mono_method_desc_match (MonoMethodDesc *desc, MonoMethod *method); +MONO_API mono_bool mono_method_desc_is_full (MonoMethodDesc *desc); +MONO_API mono_bool mono_method_desc_full_match (MonoMethodDesc *desc, MonoMethod *method); +MONO_API MonoMethod* mono_method_desc_search_in_class (MonoMethodDesc *desc, MonoClass *klass); +MONO_API MonoMethod* mono_method_desc_search_in_image (MonoMethodDesc *desc, MonoImage *image); + +MONO_API char* mono_method_full_name (MonoMethod *method, mono_bool signature); +MONO_API char* mono_method_get_reflection_name (MonoMethod *method); + +MONO_API char* mono_field_full_name (MonoClassField *field); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/details/appdomain-functions.h b/Prism/vendor/mono/include/mono/metadata/details/appdomain-functions.h deleted file mode 100644 index ea290eb..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/appdomain-functions.h +++ /dev/null @@ -1,146 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MonoDomain*, mono_init, (const char *root_domain_name)) - -/** - * This function is deprecated, use mono_init instead. Ignores filename parameter. - */ -MONO_API_FUNCTION(MonoDomain *, mono_init_from_assembly, (const char *root_domain_name, const char *filename)) - -/** - * This function is deprecated, use mono_init instead. Ignores version parameter. - */ -MONO_API_FUNCTION(MonoDomain *, mono_init_version, (const char *root_domain_name, const char *version)) - -MONO_API_FUNCTION(MonoDomain*, mono_get_root_domain, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_runtime_init, (MonoDomain *domain, MonoThreadStartCB start_cb, MonoThreadAttachCB attach_cb)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_runtime_cleanup, (MonoDomain *domain)) - -MONO_API_FUNCTION(void, mono_install_runtime_cleanup, (MonoDomainFunc func)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_runtime_quit, (void)) - -MONO_API_FUNCTION(void, mono_runtime_set_shutting_down, (void)) - -MONO_API_FUNCTION(mono_bool, mono_runtime_is_shutting_down, (void)) - -MONO_API_FUNCTION(const char*, mono_check_corlib_version, (void)) - -MONO_API_FUNCTION(MonoDomain *, mono_domain_create, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoDomain *, mono_domain_create_appdomain, (char *friendly_name, char *configuration_file)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_domain_set_config, (MonoDomain *domain, const char *base_dir, const char *config_file_name)) - -MONO_API_FUNCTION(MonoDomain *, mono_domain_get, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoDomain *, mono_domain_get_by_id, (int32_t domainid)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int32_t, mono_domain_get_id, (MonoDomain *domain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY const char *, mono_domain_get_friendly_name, (MonoDomain *domain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_domain_set, (MonoDomain *domain, mono_bool force)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_domain_set_internal, (MonoDomain *domain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_domain_unload, (MonoDomain *domain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_domain_try_unload, (MonoDomain *domain, MonoObject **exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_domain_is_unloading, (MonoDomain *domain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoDomain *, mono_domain_from_appdomain, (MonoAppDomain *appdomain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_domain_foreach, (MonoDomainFunc func, void* user_data)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly *, mono_domain_assembly_open, (MonoDomain *domain, const char *name)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_domain_ensure_entry_assembly, (MonoDomain *domain, MonoAssembly *assembly)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_domain_finalize, (MonoDomain *domain, uint32_t timeout)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_domain_free, (MonoDomain *domain, mono_bool force)) - -MONO_API_FUNCTION(mono_bool, mono_domain_has_type_resolve, (MonoDomain *domain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionAssembly *, mono_domain_try_type_resolve, (MonoDomain *domain, char *name, MonoObject *tb)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_domain_owns_vtable_slot, (MonoDomain *domain, void* vtable_slot)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_context_init, (MonoDomain *domain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_context_set, (MonoAppContext *new_context)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAppContext *, mono_context_get, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int32_t, mono_context_get_id, (MonoAppContext *context)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int32_t, mono_context_get_domain_id, (MonoAppContext *context)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoJitInfo *, mono_jit_info_table_find, (MonoDomain *domain, void* addr)) - -/* MonoJitInfo accessors */ - -MONO_API_FUNCTION(void*, mono_jit_info_get_code_start, (MonoJitInfo* ji)) - -MONO_API_FUNCTION(int, mono_jit_info_get_code_size, (MonoJitInfo* ji)) - -MONO_API_FUNCTION(MonoMethod*, mono_jit_info_get_method, (MonoJitInfo* ji)) - - -MONO_API_FUNCTION(MonoImage*, mono_get_corlib, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_object_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_byte_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_void_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_boolean_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_sbyte_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_int16_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_uint16_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_int32_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_uint32_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_intptr_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_uintptr_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_int64_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_uint64_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_single_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_double_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_char_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_string_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_enum_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_array_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_thread_class, (void)) - -MONO_API_FUNCTION(MonoClass*, mono_get_exception_class, (void)) - -MONO_API_FUNCTION(void, mono_security_enable_core_clr, (void)) - -MONO_API_FUNCTION(void, mono_security_set_core_clr_platform_callback, (MonoCoreClrPlatformCB callback)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/appdomain-types.h b/Prism/vendor/mono/include/mono/metadata/details/appdomain-types.h deleted file mode 100644 index b30eb3d..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/appdomain-types.h +++ /dev/null @@ -1,26 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_APPDOMAIN_TYPES_H -#define _MONO_APPDOMAIN_TYPES_H - -#include -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef void (*MonoThreadStartCB) (intptr_t tid, void* stack_start, - void* func); -typedef void (*MonoThreadAttachCB) (intptr_t tid, void* stack_start); - -typedef struct _MonoAppDomain MonoAppDomain; - -typedef void (*MonoDomainFunc) (MonoDomain *domain, void* user_data); - -typedef mono_bool (*MonoCoreClrPlatformCB) (const char *image_name); - -MONO_END_DECLS - -#endif /* _MONO_APPDOMAIN_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/assembly-functions.h b/Prism/vendor/mono/include/mono/metadata/details/assembly-functions.h deleted file mode 100644 index df752b6..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/assembly-functions.h +++ /dev/null @@ -1,84 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(void, mono_assemblies_init, (void)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_assemblies_cleanup, (void)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly *, mono_assembly_open, (const char *filename, MonoImageOpenStatus *status)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly *, mono_assembly_open_full, (const char *filename, MonoImageOpenStatus *status, mono_bool refonly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly*, mono_assembly_load, (MonoAssemblyName *aname, const char *basedir, MonoImageOpenStatus *status)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly*, mono_assembly_load_full, (MonoAssemblyName *aname, const char *basedir, MonoImageOpenStatus *status, mono_bool refonly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly*, mono_assembly_load_from, (MonoImage *image, const char *fname, MonoImageOpenStatus *status)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly*, mono_assembly_load_from_full, (MonoImage *image, const char *fname, MonoImageOpenStatus *status, mono_bool refonly)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly*, mono_assembly_load_with_partial_name, (const char *name, MonoImageOpenStatus *status)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly*, mono_assembly_loaded, (MonoAssemblyName *aname)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly*, mono_assembly_loaded_full, (MonoAssemblyName *aname, mono_bool refonly)) -MONO_API_FUNCTION(void, mono_assembly_get_assemblyref, (MonoImage *image, int index, MonoAssemblyName *aname)) -MONO_API_FUNCTION(void, mono_assembly_load_reference, (MonoImage *image, int index)) -MONO_API_FUNCTION(void, mono_assembly_load_references, (MonoImage *image, MonoImageOpenStatus *status)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage*, mono_assembly_load_module, (MonoAssembly *assembly, uint32_t idx)) -MONO_API_FUNCTION(void, mono_assembly_close, (MonoAssembly *assembly)) -MONO_API_FUNCTION(void, mono_assembly_foreach, (MonoFunc func, void* user_data)) -MONO_API_FUNCTION(void, mono_assembly_set_main, (MonoAssembly *assembly)) -MONO_API_FUNCTION(MonoAssembly *, mono_assembly_get_main, (void)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_assembly_get_image, (MonoAssembly *assembly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssemblyName *, mono_assembly_get_name, (MonoAssembly *assembly)) -MONO_API_FUNCTION(mono_bool, mono_assembly_fill_assembly_name, (MonoImage *image, MonoAssemblyName *aname)) -MONO_API_FUNCTION(mono_bool, mono_assembly_names_equal, (MonoAssemblyName *l, MonoAssemblyName *r)) -MONO_API_FUNCTION(char*, mono_stringify_assembly_name, (MonoAssemblyName *aname)) - - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_assembly_load_hook, (MonoAssemblyLoadFunc func, void* user_data)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_assembly_search_hook, (MonoAssemblySearchFunc func, void* user_data)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_assembly_refonly_search_hook, (MonoAssemblySearchFunc func, void* user_data)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly*, mono_assembly_invoke_search_hook, (MonoAssemblyName *aname)) - -/* - * Installs a new search function which is used as a last resort when loading - * an assembly fails. This could invoke AssemblyResolve events. - */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_assembly_postload_search_hook, (MonoAssemblySearchFunc func, void* user_data)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_assembly_postload_refonly_search_hook, (MonoAssemblySearchFunc func, void* user_data)) - - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_assembly_preload_hook, (MonoAssemblyPreLoadFunc func, void* user_data)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_assembly_refonly_preload_hook, (MonoAssemblyPreLoadFunc func, void* user_data)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_assembly_invoke_load_hook, (MonoAssembly *ass)) - -MONO_API_FUNCTION(MonoAssemblyName*, mono_assembly_name_new, (const char *name)) -MONO_API_FUNCTION(const char*, mono_assembly_name_get_name, (MonoAssemblyName *aname)) -MONO_API_FUNCTION(const char*, mono_assembly_name_get_culture, (MonoAssemblyName *aname)) -MONO_API_FUNCTION(uint16_t, mono_assembly_name_get_version, (MonoAssemblyName *aname, uint16_t *minor, uint16_t *build, uint16_t *revision)) -MONO_API_FUNCTION(mono_byte*, mono_assembly_name_get_pubkeytoken, (MonoAssemblyName *aname)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_assembly_name_free, (MonoAssemblyName *aname)) - -MONO_API_FUNCTION(void, mono_register_bundled_assemblies, (const MonoBundledAssembly **assemblies)) -MONO_API_FUNCTION(void, mono_register_symfile_for_assembly, (const char* assembly_name, const mono_byte *raw_contents, int size)) -MONO_API_FUNCTION(const mono_byte *, mono_get_symfile_bytes_from_bundle, (const char* assembly_name, int *size)) - -MONO_API_FUNCTION(void, mono_set_assemblies_path, (const char* path)) - -/** - * These functions are deprecated. - */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_set_rootdir, (void)) // no-ops -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_set_dirs, (const char *assembly_dir, const char *config_dir)) // ignores config_dir parameter, use mono_set_assemblies_path instead -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY char *, mono_native_getrootdir, (void)) // returns the same value as mono_assembly_getrootdir -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_assembly_setrootdir, (const char *root_dir)) // use mono_set_assemblies_path instead -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MONO_CONST_RETURN char *, mono_assembly_getrootdir, (void)) - -/** - * These functions are deprecated and no-ops since app.config/machine.config handling is not available in dotnet/runtime. - */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_register_config_for_assembly, (const char* assembly_name, const char* config_xml)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_register_machine_config, (const char *config_xml)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/assembly-types.h b/Prism/vendor/mono/include/mono/metadata/details/assembly-types.h deleted file mode 100644 index cfe8f43..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/assembly-types.h +++ /dev/null @@ -1,38 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_ASSEMBLY_TYPES_H -#define _MONO_ASSEMBLY_TYPES_H - -#include -#include - -MONO_BEGIN_DECLS - -/* Installs a function which is called each time a new assembly is loaded. */ -typedef void (*MonoAssemblyLoadFunc) (MonoAssembly *assembly, void* user_data); - -/* - * Installs a new function which is used to search the list of loaded - * assemblies for a given assembly name. - */ -typedef MonoAssembly *(*MonoAssemblySearchFunc) (MonoAssemblyName *aname, void* user_data); - -/* Installs a function which is called before a new assembly is loaded - * The hook are invoked from last hooked to first. If any of them returns - * a non-null value, that will be the value returned in mono_assembly_load */ -typedef MonoAssembly * (*MonoAssemblyPreLoadFunc) (MonoAssemblyName *aname, - char **assemblies_path, - void* user_data); - -typedef struct { - const char *name; - const unsigned char *data; - unsigned int size; -} MonoBundledAssembly; - - - -MONO_END_DECLS - -#endif /* _MONO_ASSEMBLY_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/class-functions.h b/Prism/vendor/mono/include/mono/metadata/details/class-functions.h deleted file mode 100644 index 3d71d16..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/class-functions.h +++ /dev/null @@ -1,181 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_class_get, (MonoImage *image, uint32_t type_token)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_class_get_full, (MonoImage *image, uint32_t type_token, MonoGenericContext *context)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_class_init, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoVTable *, mono_class_vtable, (MonoDomain *domain, MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_class_from_name, (MonoImage *image, const char* name_space, const char *name)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_class_from_name_case, (MonoImage *image, const char* name_space, const char *name)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod *, mono_class_get_method_from_name_flags, (MonoClass *klass, const char *name, int param_count, int flags)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_class_from_typeref, (MonoImage *image, uint32_t type_token)) - -MONO_API_FUNCTION(MonoClass *, mono_class_from_typeref_checked, (MonoImage *image, uint32_t type_token, MonoError *error)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_class_from_generic_parameter, (MonoGenericParam *param, MonoImage *image, mono_bool is_mvar)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType*, mono_class_inflate_generic_type, (MonoType *type, MonoGenericContext *context) /* MONO_DEPRECATED */) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod*, mono_class_inflate_generic_method, (MonoMethod *method, MonoGenericContext *context)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod *, mono_get_inflated_method, (MonoMethod *method)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClassField*, mono_field_from_token, (MonoImage *image, uint32_t token, MonoClass **retklass, MonoGenericContext *context)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_bounded_array_class_get, (MonoClass *element_class, uint32_t rank, mono_bool bounded)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_array_class_get, (MonoClass *element_class, uint32_t rank)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_ptr_class_get, (MonoType *type)) - -MONO_API_FUNCTION(MonoClassField *, mono_class_get_field, (MonoClass *klass, uint32_t field_token)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClassField *, mono_class_get_field_from_name, (MonoClass *klass, const char *name)) - -MONO_API_FUNCTION(uint32_t, mono_class_get_field_token, (MonoClassField *field)) - -MONO_API_FUNCTION(uint32_t, mono_class_get_event_token, (MonoEvent *event)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoProperty *, mono_class_get_property_from_name, (MonoClass *klass, const char *name)) - -MONO_API_FUNCTION(uint32_t, mono_class_get_property_token, (MonoProperty *prop)) - -MONO_API_FUNCTION(int32_t, mono_array_element_size, (MonoClass *ac)) - -MONO_API_FUNCTION(int32_t, mono_class_instance_size, (MonoClass *klass)) - -MONO_API_FUNCTION(int32_t, mono_class_array_element_size, (MonoClass *klass)) - -MONO_API_FUNCTION(int32_t, mono_class_data_size, (MonoClass *klass)) - -MONO_API_FUNCTION(int32_t, mono_class_value_size, (MonoClass *klass, uint32_t *align)) - -MONO_API_FUNCTION(int32_t, mono_class_min_align, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass *, mono_class_from_mono_type, (MonoType *type)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_class_is_subclass_of, (MonoClass *klass, MonoClass *klassc, mono_bool check_interfaces)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_class_is_assignable_from, (MonoClass *klass, MonoClass *oklass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void*, mono_ldtoken, (MonoImage *image, uint32_t token, MonoClass **retclass, MonoGenericContext *context)) - -MONO_API_FUNCTION(char *, mono_type_get_name_full, (MonoType *type, MonoTypeNameFormat format)) - -MONO_API_FUNCTION(char*, mono_type_get_name, (MonoType *type)) - -MONO_API_FUNCTION(MonoType*, mono_type_get_underlying_type, (MonoType *type)) - -/* MonoClass accessors */ -MONO_API_FUNCTION(MonoImage*, mono_class_get_image, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass*, mono_class_get_element_class, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_class_is_valuetype, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_class_is_enum, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType*, mono_class_enum_basetype, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass*, mono_class_get_parent, (MonoClass *klass)) - -MONO_API_FUNCTION(MonoClass*, mono_class_get_nesting_type, (MonoClass *klass)) - -MONO_API_FUNCTION(int, mono_class_get_rank, (MonoClass *klass)) - -MONO_API_FUNCTION(uint32_t, mono_class_get_flags, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY const char*, mono_class_get_name, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY const char*, mono_class_get_namespace, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType*, mono_class_get_type, (MonoClass *klass)) - -MONO_API_FUNCTION(uint32_t, mono_class_get_type_token, (MonoClass *klass)) - -MONO_API_FUNCTION(MonoType*, mono_class_get_byref_type, (MonoClass *klass)) - -MONO_API_FUNCTION(int, mono_class_num_fields, (MonoClass *klass)) - -MONO_API_FUNCTION(int, mono_class_num_methods, (MonoClass *klass)) - -MONO_API_FUNCTION(int, mono_class_num_properties, (MonoClass *klass)) - -MONO_API_FUNCTION(int, mono_class_num_events, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClassField*, mono_class_get_fields, (MonoClass* klass, void **iter)) - -MONO_API_FUNCTION(MonoMethod*, mono_class_get_methods, (MonoClass* klass, void **iter)) - -MONO_API_FUNCTION(MonoProperty*, mono_class_get_properties, (MonoClass* klass, void **iter)) - -MONO_API_FUNCTION(MonoEvent*, mono_class_get_events, (MonoClass* klass, void **iter)) - -MONO_API_FUNCTION(MonoClass*, mono_class_get_interfaces, (MonoClass* klass, void **iter)) - -MONO_API_FUNCTION(MonoClass*, mono_class_get_nested_types, (MonoClass* klass, void **iter)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_class_is_delegate, (MonoClass* klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_class_implements_interface, (MonoClass* klass, MonoClass* iface)) - -/* MonoClassField accessors */ -MONO_API_FUNCTION(const char*, mono_field_get_name, (MonoClassField *field)) - -MONO_API_FUNCTION(MonoType*, mono_field_get_type, (MonoClassField *field)) - -MONO_API_FUNCTION(MonoClass*, mono_field_get_parent, (MonoClassField *field)) - -MONO_API_FUNCTION(uint32_t, mono_field_get_flags, (MonoClassField *field)) - -MONO_API_FUNCTION(uint32_t, mono_field_get_offset, (MonoClassField *field)) - -MONO_API_FUNCTION(const char *, mono_field_get_data, (MonoClassField *field)) - -/* MonoProperty accessors */ -MONO_API_FUNCTION(const char*, mono_property_get_name, (MonoProperty *prop)) - -MONO_API_FUNCTION(MonoMethod*, mono_property_get_set_method, (MonoProperty *prop)) - -MONO_API_FUNCTION(MonoMethod*, mono_property_get_get_method, (MonoProperty *prop)) - -MONO_API_FUNCTION(MonoClass*, mono_property_get_parent, (MonoProperty *prop)) - -MONO_API_FUNCTION(uint32_t, mono_property_get_flags, (MonoProperty *prop)) - -/* MonoEvent accessors */ -MONO_API_FUNCTION(const char*, mono_event_get_name, (MonoEvent *event)) - -MONO_API_FUNCTION(MonoMethod*, mono_event_get_add_method, (MonoEvent *event)) - -MONO_API_FUNCTION(MonoMethod*, mono_event_get_remove_method, (MonoEvent *event)) - -MONO_API_FUNCTION(MonoMethod*, mono_event_get_raise_method, (MonoEvent *event)) - -MONO_API_FUNCTION(MonoClass*, mono_event_get_parent, (MonoEvent *event)) - -MONO_API_FUNCTION(uint32_t, mono_event_get_flags, (MonoEvent *event)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod *, mono_class_get_method_from_name, (MonoClass *klass, const char *name, int param_count)) - -MONO_API_FUNCTION(char *, mono_class_name_from_token, (MonoImage *image, uint32_t type_token)) - -MONO_API_FUNCTION(mono_bool, mono_method_can_access_field, (MonoMethod *method, MonoClassField *field)) - -MONO_API_FUNCTION(mono_bool, mono_method_can_access_method, (MonoMethod *method, MonoMethod *called)) - -MONO_API_FUNCTION(mono_bool, mono_class_is_nullable, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass*, mono_class_get_nullable_param, (MonoClass *klass)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/class-types.h b/Prism/vendor/mono/include/mono/metadata/details/class-types.h deleted file mode 100644 index 716025e..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/class-types.h +++ /dev/null @@ -1,29 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_CLASS_TYPES_H -#define _MONO_CLASS_TYPES_H - -#include -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef struct MonoVTable MonoVTable; - -typedef struct _MonoClassField MonoClassField; -typedef struct _MonoProperty MonoProperty; -typedef struct _MonoEvent MonoEvent; - -typedef enum { - MONO_TYPE_NAME_FORMAT_IL, - MONO_TYPE_NAME_FORMAT_REFLECTION, - MONO_TYPE_NAME_FORMAT_FULL_NAME, - MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED -} MonoTypeNameFormat; - -MONO_END_DECLS - -#endif /* _MONO_CLASS_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/debug-helpers-functions.h b/Prism/vendor/mono/include/mono/metadata/details/debug-helpers-functions.h deleted file mode 100644 index de0ca6e..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/debug-helpers-functions.h +++ /dev/null @@ -1,32 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(char*, mono_disasm_code_one, (MonoDisHelper *dh, MonoMethod *method, const mono_byte *ip, const mono_byte** endp)) -MONO_API_FUNCTION(char*, mono_disasm_code, (MonoDisHelper *dh, MonoMethod *method, const mono_byte *ip, const mono_byte* end)) - -MONO_API_FUNCTION(char*, mono_type_full_name, (MonoType *type)) - -MONO_API_FUNCTION(char*, mono_signature_get_desc, (MonoMethodSignature *sig, mono_bool include_namespace)) - -MONO_API_FUNCTION(char*, mono_context_get_desc, (MonoGenericContext *context)) - -MONO_API_FUNCTION(MonoMethodDesc*, mono_method_desc_new, (const char *name, mono_bool include_namespace)) -MONO_API_FUNCTION(MonoMethodDesc*, mono_method_desc_from_method, (MonoMethod *method)) -MONO_API_FUNCTION(void, mono_method_desc_free, (MonoMethodDesc *desc)) -MONO_API_FUNCTION(mono_bool, mono_method_desc_match, (MonoMethodDesc *desc, MonoMethod *method)) -MONO_API_FUNCTION(mono_bool, mono_method_desc_is_full, (MonoMethodDesc *desc)) -MONO_API_FUNCTION(mono_bool, mono_method_desc_full_match, (MonoMethodDesc *desc, MonoMethod *method)) -MONO_API_FUNCTION(MonoMethod*, mono_method_desc_search_in_class, (MonoMethodDesc *desc, MonoClass *klass)) -MONO_API_FUNCTION(MonoMethod*, mono_method_desc_search_in_image, (MonoMethodDesc *desc, MonoImage *image)) - -MONO_API_FUNCTION(char*, mono_method_full_name, (MonoMethod *method, mono_bool signature)) -MONO_API_FUNCTION(char*, mono_method_get_reflection_name, (MonoMethod *method)) - -MONO_API_FUNCTION(char*, mono_field_full_name, (MonoClassField *field)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_debugger_agent_unhandled_exception, (MonoException *e)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/debug-helpers-types.h b/Prism/vendor/mono/include/mono/metadata/details/debug-helpers-types.h deleted file mode 100644 index ee73181..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/debug-helpers-types.h +++ /dev/null @@ -1,29 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_DEBUG_HELPERS_TYPES_H -#define _MONO_DEBUG_HELPERS_TYPES_H - -#include - -MONO_BEGIN_DECLS - -typedef struct MonoDisHelper MonoDisHelper; - -typedef char* (*MonoDisIndenter) (MonoDisHelper *dh, MonoMethod *method, uint32_t ip_offset); -typedef char* (*MonoDisTokener) (MonoDisHelper *dh, MonoMethod *method, uint32_t token); - -struct MonoDisHelper { - const char *newline; - const char *label_format; - const char *label_target; - MonoDisIndenter indenter; - MonoDisTokener tokener; - void* user_data; -}; - -typedef struct MonoMethodDesc MonoMethodDesc; - -MONO_END_DECLS - -#endif /* _MONO_DEBUG_HELPERS_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/environment-functions.h b/Prism/vendor/mono/include/mono/metadata/details/environment-functions.h deleted file mode 100644 index afdd61b..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/environment-functions.h +++ /dev/null @@ -1,11 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(int32_t, mono_environment_exitcode_get, (void)) -MONO_API_FUNCTION(void, mono_environment_exitcode_set, (int32_t value)) - diff --git a/Prism/vendor/mono/include/mono/metadata/details/exception-functions.h b/Prism/vendor/mono/include/mono/metadata/details/exception-functions.h deleted file mode 100644 index 0644779..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/exception-functions.h +++ /dev/null @@ -1,99 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MonoException *, mono_exception_from_name, (MonoImage *image, const char* name_space, const char *name)) - -MONO_API_FUNCTION(MonoException *, mono_exception_from_token, (MonoImage *image, uint32_t token)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_exception_from_name_two_strings, (MonoImage *image, const char *name_space, const char *name, MonoString *a1, MonoString *a2)) - -MONO_API_FUNCTION(MonoException *, mono_exception_from_name_msg, (MonoImage *image, const char *name_space, const char *name, const char *msg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_exception_from_token_two_strings, (MonoImage *image, uint32_t token, MonoString *a1, MonoString *a2)) - -MONO_API_FUNCTION(MonoException *, mono_exception_from_name_domain, (MonoDomain *domain, MonoImage *image, const char* name_space, const char *name)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_divide_by_zero, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_security, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_arithmetic, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_overflow, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_null_reference, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_execution_engine, (const char *msg)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_thread_abort, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_thread_state, (const char *msg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_thread_interrupted, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_serialization, (const char *msg)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_invalid_cast, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_invalid_operation, (const char *msg)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_index_out_of_range, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_array_type_mismatch, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_type_load, (MonoString *class_name, char *assembly_name)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_missing_method, (const char *class_name, const char *member_name)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_missing_field, (const char *class_name, const char *member_name)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_not_implemented, (const char *msg)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_not_supported, (const char *msg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException*, mono_get_exception_argument_null, (const char *arg)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_argument, (const char *arg, const char *msg)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_argument_out_of_range, (const char *arg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_io, (const char *msg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_file_not_found, (MonoString *fname)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_file_not_found2, (const char *msg, MonoString *fname)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_type_initialization, (const char *type_name, MonoException *inner)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_synchronization_lock, (const char *msg)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_cannot_unload_appdomain, (const char *msg)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_appdomain_unloaded, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_bad_image_format, (const char *msg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_bad_image_format2, (const char *msg, MonoString *fname)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_stack_overflow, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_out_of_memory, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_field_access, (void)) - -MONO_API_FUNCTION(MonoException *, mono_get_exception_method_access, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_reflection_type_load, (MonoArray *types, MonoArray *exceptions)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoException *, mono_get_exception_runtime_wrapped, (MonoObject *wrapped_exception)) - -/* Installs a function which is called when the runtime encounters an unhandled exception. - * This hook isn't expected to return. - * If no hook has been installed, the runtime will print a message before aborting. - */ -MONO_API_FUNCTION(void, mono_install_unhandled_exception_hook, (MonoUnhandledExceptionFunc func, void *user_data)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/exception-types.h b/Prism/vendor/mono/include/mono/metadata/details/exception-types.h deleted file mode 100644 index 640bc95..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/exception-types.h +++ /dev/null @@ -1,18 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_EXCEPTION_TYPES_H -#define _MONO_EXCEPTION_TYPES_H - -#include -#include -#include - - -MONO_BEGIN_DECLS - -typedef void (*MonoUnhandledExceptionFunc) (MonoObject *exc, void *user_data); - -MONO_END_DECLS - -#endif /* _MONO_EXCEPTION_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/image-functions.h b/Prism/vendor/mono/include/mono/metadata/details/image-functions.h deleted file mode 100644 index b857533..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/image-functions.h +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(void, mono_images_init, (void)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_images_cleanup, (void)) - -MONO_API_FUNCTION(MonoImage *, mono_image_open, (const char *fname, MonoImageOpenStatus *status)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_open_full, (const char *fname, MonoImageOpenStatus *status, mono_bool refonly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_pe_file_open, (const char *fname, MonoImageOpenStatus *status)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_open_from_data, (char *data, uint32_t data_len, mono_bool need_copy, MonoImageOpenStatus *status)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_open_from_data_full, (char *data, uint32_t data_len, mono_bool need_copy, MonoImageOpenStatus *status, mono_bool refonly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_open_from_data_with_name, (char *data, uint32_t data_len, mono_bool need_copy, MonoImageOpenStatus *status, mono_bool refonly, const char *name)) -MONO_API_FUNCTION(void, mono_image_fixup_vtable, (MonoImage *image)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_loaded, (const char *name)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_loaded_full, (const char *name, mono_bool refonly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_loaded_by_guid, (const char *guid)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_loaded_by_guid_full, (const char *guid, mono_bool refonly)) -MONO_API_FUNCTION(void, mono_image_init, (MonoImage *image)) -MONO_API_FUNCTION(void, mono_image_close, (MonoImage *image)) -MONO_API_FUNCTION(void, mono_image_addref, (MonoImage *image)) -MONO_API_FUNCTION(const char *, mono_image_strerror, (MonoImageOpenStatus status)) - -MONO_API_FUNCTION(int, mono_image_ensure_section, (MonoImage *image, const char *section)) -MONO_API_FUNCTION(int, mono_image_ensure_section_idx, (MonoImage *image, int section)) - -MONO_API_FUNCTION(uint32_t, mono_image_get_entry_point, (MonoImage *image)) -MONO_API_FUNCTION(const char *, mono_image_get_resource, (MonoImage *image, uint32_t offset, uint32_t *size)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage*, mono_image_load_file_for_image, (MonoImage *image, int fileidx)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage*, mono_image_load_module, (MonoImage *image, int idx)) - -MONO_API_FUNCTION(const char*, mono_image_get_name, (MonoImage *image)) -MONO_API_FUNCTION(const char*, mono_image_get_filename, (MonoImage *image)) -MONO_API_FUNCTION(const char*, mono_image_get_guid, (MonoImage *image)) -MONO_API_FUNCTION(MonoAssembly*, mono_image_get_assembly, (MonoImage *image)) -MONO_API_FUNCTION(mono_bool, mono_image_is_dynamic, (MonoImage *image)) -MONO_API_FUNCTION(char*, mono_image_rva_map, (MonoImage *image, uint32_t rva)) - -MONO_API_FUNCTION(const MonoTableInfo *, mono_image_get_table_info, (MonoImage *image, int table_id)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_image_get_table_rows, (MonoImage *image, int table_id)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_table_info_get_rows, (const MonoTableInfo *table)) - -/* This actually returns a MonoPEResourceDataEntry *, but declaring it - * causes an include file loop. - */ -MONO_API_FUNCTION(void*, mono_image_lookup_resource, (MonoImage *image, uint32_t res_id, uint32_t lang_id, mono_unichar2 *name)) - -MONO_API_FUNCTION(const char*, mono_image_get_public_key, (MonoImage *image, uint32_t *size)) -MONO_API_FUNCTION(const char*, mono_image_get_strong_name, (MonoImage *image, uint32_t *size)) -MONO_API_FUNCTION(uint32_t, mono_image_strong_name_position, (MonoImage *image, uint32_t *size)) -MONO_API_FUNCTION(void, mono_image_add_to_name_cache, (MonoImage *image, const char *nspace, const char *name, uint32_t idx)) -MONO_API_FUNCTION(mono_bool, mono_image_has_authenticode_entry, (MonoImage *image)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/image-types.h b/Prism/vendor/mono/include/mono/metadata/details/image-types.h deleted file mode 100644 index 5e0900b..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/image-types.h +++ /dev/null @@ -1,29 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_IMAGE_TYPES_H -#define _MONO_IMAGE_TYPES_H - -#include -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef struct _MonoAssembly MonoAssembly; -typedef struct _MonoAssemblyName MonoAssemblyName; -typedef struct _MonoTableInfo MonoTableInfo; - -typedef enum { - MONO_IMAGE_OK, - MONO_IMAGE_ERROR_ERRNO, - MONO_IMAGE_MISSING_ASSEMBLYREF, - MONO_IMAGE_IMAGE_INVALID, - MONO_IMAGE_NOT_SUPPORTED, ///< \since net7 -} MonoImageOpenStatus; - - -MONO_END_DECLS - -#endif /* _MONO_IMAGE_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/loader-functions.h b/Prism/vendor/mono/include/mono/metadata/details/loader-functions.h deleted file mode 100644 index 11d86e7..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/loader-functions.h +++ /dev/null @@ -1,64 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod *, mono_get_method, (MonoImage *image, uint32_t token, MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod *, mono_get_method_full, (MonoImage *image, uint32_t token, MonoClass *klass, MonoGenericContext *context)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod *, mono_get_method_constrained, (MonoImage *image, uint32_t token, MonoClass *constrained_class, MonoGenericContext *context, MonoMethod **cil_method)) - -MONO_API_FUNCTION(void, mono_free_method, (MonoMethod *method)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethodSignature*, mono_method_get_signature_full, (MonoMethod *method, MonoImage *image, uint32_t token, MonoGenericContext *context)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethodSignature*, mono_method_get_signature, (MonoMethod *method, MonoImage *image, uint32_t token)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethodSignature*, mono_method_signature, (MonoMethod *method)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethodHeader*, mono_method_get_header, (MonoMethod *method)) - -MONO_API_FUNCTION(const char*, mono_method_get_name, (MonoMethod *method)) - -MONO_API_FUNCTION(MonoClass*, mono_method_get_class, (MonoMethod *method)) - -MONO_API_FUNCTION(uint32_t, mono_method_get_token, (MonoMethod *method)) - -MONO_API_FUNCTION(uint32_t, mono_method_get_flags, (MonoMethod *method, uint32_t *iflags)) - -MONO_API_FUNCTION(uint32_t, mono_method_get_index, (MonoMethod *method)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_add_internal_call, (const char *name, const void* method)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_dangerous_add_raw_internal_call, (const char *name, const void* method)) - -MONO_API_FUNCTION(void*, mono_lookup_internal_call, (MonoMethod *method)) - -MONO_API_FUNCTION(const char*, mono_lookup_icall_symbol, (MonoMethod *m)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_dllmap_insert, (MonoImage *assembly, const char *dll, const char *func, const char *tdll, const char *tfunc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void*, mono_lookup_pinvoke_call, (MonoMethod *method, const char **exc_class, const char **exc_arg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_method_get_param_names, (MonoMethod *method, const char **names)) - -MONO_API_FUNCTION(uint32_t, mono_method_get_param_token, (MonoMethod *method, int idx)) - -MONO_API_FUNCTION(void, mono_method_get_marshal_info, (MonoMethod *method, MonoMarshalSpec **mspecs)) - -MONO_API_FUNCTION(mono_bool, mono_method_has_marshal_info, (MonoMethod *method)) - -MONO_API_FUNCTION(MonoMethod*, mono_method_get_last_managed, (void)) - -MONO_API_FUNCTION(void, mono_stack_walk, (MonoStackWalk func, void* user_data)) - -/* Use this if the IL offset is not needed: it's faster */ -MONO_API_FUNCTION(void, mono_stack_walk_no_il, (MonoStackWalk func, void* user_data)) - -MONO_API_FUNCTION(void, mono_stack_walk_async_safe, (MonoStackWalkAsyncSafe func, void *initial_sig_context, void* user_data)) - -MONO_API_FUNCTION(MonoMethodHeader*, mono_method_get_header_checked, (MonoMethod *method, MonoError *error)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/loader-types.h b/Prism/vendor/mono/include/mono/metadata/details/loader-types.h deleted file mode 100644 index 9e266d4..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/loader-types.h +++ /dev/null @@ -1,20 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_LOADER_TYPES_H -#define _MONO_LOADER_TYPES_H - -#include -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef mono_bool (*MonoStackWalk) (MonoMethod *method, int32_t native_offset, int32_t il_offset, mono_bool managed, void* data); - -typedef mono_bool (*MonoStackWalkAsyncSafe) (MonoMethod *method, MonoDomain *domain, void *base_address, int offset, void* data); - -MONO_END_DECLS - -#endif /* _MONO_LOADER_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/metadata-functions.h b/Prism/vendor/mono/include/mono/metadata/details/metadata-functions.h deleted file mode 100644 index 3b665f2..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/metadata-functions.h +++ /dev/null @@ -1,159 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - - -MONO_API_FUNCTION(void, mono_metadata_init, (void)) - -MONO_API_FUNCTION(void, mono_metadata_decode_row, (const MonoTableInfo *t, int idx, uint32_t *res, int res_size)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_decode_row_col, (const MonoTableInfo *t, int idx, unsigned int col)) - -MONO_API_FUNCTION(int, mono_metadata_compute_size, (MonoImage *meta, int tableindex, uint32_t *result_bitfield)) - -/* - * - */ -MONO_API_FUNCTION(const char *, mono_metadata_locate, (MonoImage *meta, int table, int idx)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY const char *, mono_metadata_locate_token, (MonoImage *meta, uint32_t token)) - -MONO_API_FUNCTION(const char *, mono_metadata_string_heap, (MonoImage *meta, uint32_t table_index)) -MONO_API_FUNCTION(const char *, mono_metadata_blob_heap, (MonoImage *meta, uint32_t table_index)) -MONO_API_FUNCTION(const char *, mono_metadata_user_string, (MonoImage *meta, uint32_t table_index)) -MONO_API_FUNCTION(const char *, mono_metadata_guid_heap, (MonoImage *meta, uint32_t table_index)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_typedef_from_field, (MonoImage *meta, uint32_t table_index)) -MONO_API_FUNCTION(uint32_t, mono_metadata_typedef_from_method, (MonoImage *meta, uint32_t table_index)) -MONO_API_FUNCTION(uint32_t, mono_metadata_nested_in_typedef, (MonoImage *meta, uint32_t table_index)) -MONO_API_FUNCTION(uint32_t, mono_metadata_nesting_typedef, (MonoImage *meta, uint32_t table_index, uint32_t start_index)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass**, mono_metadata_interfaces_from_typedef, (MonoImage *meta, uint32_t table_index, unsigned int *count)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_events_from_typedef, (MonoImage *meta, uint32_t table_index, unsigned int *end_idx)) -MONO_API_FUNCTION(uint32_t, mono_metadata_methods_from_event, (MonoImage *meta, uint32_t table_index, unsigned int *end)) -MONO_API_FUNCTION(uint32_t, mono_metadata_properties_from_typedef, (MonoImage *meta, uint32_t table_index, unsigned int *end)) -MONO_API_FUNCTION(uint32_t, mono_metadata_methods_from_property, (MonoImage *meta, uint32_t table_index, unsigned int *end)) -MONO_API_FUNCTION(uint32_t, mono_metadata_packing_from_typedef, (MonoImage *meta, uint32_t table_index, uint32_t *packing, uint32_t *size)) -MONO_API_FUNCTION(const char*, mono_metadata_get_marshal_info, (MonoImage *meta, uint32_t idx, mono_bool is_field)) -MONO_API_FUNCTION(uint32_t, mono_metadata_custom_attrs_from_index, (MonoImage *meta, uint32_t cattr_index)) - -MONO_API_FUNCTION(MonoMarshalSpec *, mono_metadata_parse_marshal_spec, (MonoImage *image, const char *ptr)) - -MONO_API_FUNCTION(void, mono_metadata_free_marshal_spec, (MonoMarshalSpec *spec)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_implmap_from_method, (MonoImage *meta, uint32_t method_idx)) - -MONO_API_FUNCTION(void, mono_metadata_field_info, (MonoImage *meta, uint32_t table_index, uint32_t *offset, uint32_t *rva, MonoMarshalSpec **marshal_spec)) -MONO_API_FUNCTION(uint32_t, mono_metadata_get_constant_index, (MonoImage *meta, uint32_t token, uint32_t hint)) - -/* - * Functions to extract information from the Blobs - */ -MONO_API_FUNCTION(uint32_t, mono_metadata_decode_value, (const char *ptr, const char **rptr)) -MONO_API_FUNCTION(int32_t, mono_metadata_decode_signed_value, (const char *ptr, const char **rptr)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_decode_blob_size, (const char *ptr, const char **rptr)) - -MONO_API_FUNCTION(void, mono_metadata_encode_value, (uint32_t value, char *bug, char **endbuf)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_type_is_byref, (MonoType *type)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_type_get_type, (MonoType *type)) - -/* For MONO_TYPE_FNPTR */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethodSignature*, mono_type_get_signature, (MonoType *type)) - -/* For MONO_TYPE_CLASS, VALUETYPE */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass*, mono_type_get_class, (MonoType *type)) - -MONO_API_FUNCTION(MonoArrayType*, mono_type_get_array_type, (MonoType *type)) - -/* For MONO_TYPE_PTR */ -MONO_API_FUNCTION(MonoType*, mono_type_get_ptr_type, (MonoType *type)) - -MONO_API_FUNCTION(MonoClass*, mono_type_get_modifiers, (MonoType *type, mono_bool *is_required, void **iter)) - -MONO_API_FUNCTION(mono_bool, mono_type_is_struct, (MonoType *type)) -MONO_API_FUNCTION(mono_bool, mono_type_is_void, (MonoType *type)) -MONO_API_FUNCTION(mono_bool, mono_type_is_pointer, (MonoType *type)) -MONO_API_FUNCTION(mono_bool, mono_type_is_reference, (MonoType *type)) -MONO_API_FUNCTION(mono_bool, mono_type_is_generic_parameter, (MonoType *type)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType*, mono_signature_get_return_type, (MonoMethodSignature *sig)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType*, mono_signature_get_params, (MonoMethodSignature *sig, void **iter)) - -MONO_API_FUNCTION(uint32_t, mono_signature_get_param_count, (MonoMethodSignature *sig)) - -MONO_API_FUNCTION(uint32_t, mono_signature_get_call_conv, (MonoMethodSignature *sig)) - -MONO_API_FUNCTION(int, mono_signature_vararg_start, (MonoMethodSignature *sig)) - -MONO_API_FUNCTION(mono_bool, mono_signature_is_instance, (MonoMethodSignature *sig)) - -MONO_API_FUNCTION(mono_bool, mono_signature_explicit_this, (MonoMethodSignature *sig)) - -MONO_API_FUNCTION(mono_bool, mono_signature_param_is_out, (MonoMethodSignature *sig, int param_num)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_parse_typedef_or_ref, (MonoImage *m, const char *ptr, const char **rptr)) -MONO_API_FUNCTION(int, mono_metadata_parse_custom_mod, (MonoImage *m, MonoCustomMod *dest, const char *ptr, const char **rptr)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArrayType *, mono_metadata_parse_array, (MonoImage *m, const char *ptr, const char **rptr)) -MONO_API_FUNCTION(void, mono_metadata_free_array, (MonoArrayType *array)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType *, mono_metadata_parse_type, (MonoImage *m, MonoParseTypeMode mode, short opt_attrs, const char *ptr, const char **rptr)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType *, mono_metadata_parse_param, (MonoImage *m, const char *ptr, const char **rptr)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType *, mono_metadata_parse_field_type, (MonoImage *m, short field_flags, const char *ptr, const char **rptr)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType *, mono_type_create_from_typespec, (MonoImage *image, uint32_t type_spec)) -MONO_API_FUNCTION(void, mono_metadata_free_type, (MonoType *type)) -MONO_API_FUNCTION(int, mono_type_size, (MonoType *type, int *alignment)) -MONO_API_FUNCTION(int, mono_type_stack_size, (MonoType *type, int *alignment)) - -MONO_API_FUNCTION(mono_bool, mono_type_generic_inst_is_valuetype, (MonoType *type)) -MONO_API_FUNCTION(mono_bool, mono_metadata_generic_class_is_valuetype, (MonoGenericClass *gclass)) - -MONO_API_FUNCTION(unsigned int, mono_metadata_type_hash, (MonoType *t1)) -MONO_API_FUNCTION(mono_bool, mono_metadata_type_equal, (MonoType *t1, MonoType *t2)) - -MONO_API_FUNCTION(MonoMethodSignature *, mono_metadata_signature_alloc, (MonoImage *image, uint32_t nparams)) - -MONO_API_FUNCTION(MonoMethodSignature *, mono_metadata_signature_dup, (MonoMethodSignature *sig)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethodSignature *, mono_metadata_parse_signature, (MonoImage *image, uint32_t token)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethodSignature *, mono_metadata_parse_method_signature, (MonoImage *m, int def, const char *ptr, const char **rptr)) -MONO_API_FUNCTION(void, mono_metadata_free_method_signature, (MonoMethodSignature *method)) - -MONO_API_FUNCTION(mono_bool, mono_metadata_signature_equal, (MonoMethodSignature *sig1, MonoMethodSignature *sig2)) - -MONO_API_FUNCTION(unsigned int, mono_signature_hash, (MonoMethodSignature *sig)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethodHeader *, mono_metadata_parse_mh, (MonoImage *m, const char *ptr)) -MONO_API_FUNCTION(void, mono_metadata_free_mh, (MonoMethodHeader *mh)) - -/* MonoMethodHeader accessors */ -MONO_API_FUNCTION(const unsigned char*, mono_method_header_get_code, (MonoMethodHeader *header, uint32_t* code_size, uint32_t* max_stack)) - -MONO_API_FUNCTION(MonoType**, mono_method_header_get_locals, (MonoMethodHeader *header, uint32_t* num_locals, mono_bool *init_locals)) - -MONO_API_FUNCTION(int, mono_method_header_get_num_clauses, (MonoMethodHeader *header)) - -MONO_API_FUNCTION(int, mono_method_header_get_clauses, (MonoMethodHeader *header, MonoMethod *method, void **iter, MonoExceptionClause *clause)) - -MONO_API_FUNCTION(uint32_t, mono_type_to_unmanaged, (MonoType *type, MonoMarshalSpec *mspec, mono_bool as_field, mono_bool unicode, MonoMarshalConv *conv)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_token_from_dor, (uint32_t dor_index)) - -MONO_API_FUNCTION(char *, mono_guid_to_string, (const uint8_t *guid)) - -MONO_API_FUNCTION(char *, mono_guid_to_string_minimal, (const uint8_t *guid)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_declsec_from_index, (MonoImage *meta, uint32_t idx)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_translate_token_index, (MonoImage *image, int table, uint32_t idx)) - -MONO_API_FUNCTION(void, mono_metadata_decode_table_row, (MonoImage *image, int table, int idx, uint32_t *res, int res_size)) - -MONO_API_FUNCTION(uint32_t, mono_metadata_decode_table_row_col, (MonoImage *image, int table, int idx, unsigned int col)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/metadata-types.h b/Prism/vendor/mono/include/mono/metadata/details/metadata-types.h deleted file mode 100644 index 7ae6ab2..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/metadata-types.h +++ /dev/null @@ -1,257 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_METADATA_TYPES_H -#define _MONO_METADATA_TYPES_H - - -#include - -#include -#include -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef enum { - MONO_EXCEPTION_CLAUSE_NONE, - MONO_EXCEPTION_CLAUSE_FILTER, - MONO_EXCEPTION_CLAUSE_FINALLY, - MONO_EXCEPTION_CLAUSE_FAULT = 4 -} MonoExceptionEnum; - -typedef enum { - MONO_CALL_DEFAULT, - MONO_CALL_C, - MONO_CALL_STDCALL, - MONO_CALL_THISCALL, - MONO_CALL_FASTCALL, - MONO_CALL_VARARG = 0x05, - /* unused, */ - /* unused, */ - /* unused, */ - MONO_CALL_UNMANAGED_MD = 0x09, /* default unmanaged calling convention, with additional attributed encoded in modopts */ -} MonoCallConvention; - -/* ECMA lamespec: the old spec had more info... */ -typedef enum { - MONO_NATIVE_BOOLEAN = 0x02, /* 4 bytes, 0 is false, != 0 is true */ - MONO_NATIVE_I1 = 0x03, - MONO_NATIVE_U1 = 0x04, - MONO_NATIVE_I2 = 0x05, - MONO_NATIVE_U2 = 0x06, - MONO_NATIVE_I4 = 0x07, - MONO_NATIVE_U4 = 0x08, - MONO_NATIVE_I8 = 0x09, - MONO_NATIVE_U8 = 0x0a, - MONO_NATIVE_R4 = 0x0b, - MONO_NATIVE_R8 = 0x0c, - MONO_NATIVE_CURRENCY = 0x0f, - MONO_NATIVE_BSTR = 0x13, /* prefixed length, Unicode */ - MONO_NATIVE_LPSTR = 0x14, /* ANSI, null terminated */ - MONO_NATIVE_LPWSTR = 0x15, /* UNICODE, null terminated */ - MONO_NATIVE_LPTSTR = 0x16, /* platform dep., null terminated */ - MONO_NATIVE_BYVALTSTR = 0x17, - MONO_NATIVE_IUNKNOWN = 0x19, - MONO_NATIVE_IDISPATCH = 0x1a, - MONO_NATIVE_STRUCT = 0x1b, - MONO_NATIVE_INTERFACE = 0x1c, - MONO_NATIVE_SAFEARRAY = 0x1d, - MONO_NATIVE_BYVALARRAY = 0x1e, - MONO_NATIVE_INT = 0x1f, - MONO_NATIVE_UINT = 0x20, - MONO_NATIVE_VBBYREFSTR = 0x22, - MONO_NATIVE_ANSIBSTR = 0x23, /* prefixed length, ANSI */ - MONO_NATIVE_TBSTR = 0x24, /* prefixed length, platform dep. */ - MONO_NATIVE_VARIANTBOOL = 0x25, - MONO_NATIVE_FUNC = 0x26, - MONO_NATIVE_ASANY = 0x28, - MONO_NATIVE_LPARRAY = 0x2a, - MONO_NATIVE_LPSTRUCT = 0x2b, - MONO_NATIVE_CUSTOM = 0x2c, - MONO_NATIVE_ERROR = 0x2d, - // TODO: MONO_NATIVE_IINSPECTABLE = 0x2e - // TODO: MONO_NATIVE_HSTRING = 0x2f - MONO_NATIVE_UTF8STR = 0x30, - MONO_NATIVE_MAX = 0x50 /* no info */ -} MonoMarshalNative; - -/* Used only in context of SafeArray */ -typedef enum { - MONO_VARIANT_EMPTY = 0x00, - MONO_VARIANT_NULL = 0x01, - MONO_VARIANT_I2 = 0x02, - MONO_VARIANT_I4 = 0x03, - MONO_VARIANT_R4 = 0x04, - MONO_VARIANT_R8 = 0x05, - MONO_VARIANT_CY = 0x06, - MONO_VARIANT_DATE = 0x07, - MONO_VARIANT_BSTR = 0x08, - MONO_VARIANT_DISPATCH = 0x09, - MONO_VARIANT_ERROR = 0x0a, - MONO_VARIANT_BOOL = 0x0b, - MONO_VARIANT_VARIANT = 0x0c, - MONO_VARIANT_UNKNOWN = 0x0d, - MONO_VARIANT_DECIMAL = 0x0e, - MONO_VARIANT_I1 = 0x10, - MONO_VARIANT_UI1 = 0x11, - MONO_VARIANT_UI2 = 0x12, - MONO_VARIANT_UI4 = 0x13, - MONO_VARIANT_I8 = 0x14, - MONO_VARIANT_UI8 = 0x15, - MONO_VARIANT_INT = 0x16, - MONO_VARIANT_UINT = 0x17, - MONO_VARIANT_VOID = 0x18, - MONO_VARIANT_HRESULT = 0x19, - MONO_VARIANT_PTR = 0x1a, - MONO_VARIANT_SAFEARRAY = 0x1b, - MONO_VARIANT_CARRAY = 0x1c, - MONO_VARIANT_USERDEFINED = 0x1d, - MONO_VARIANT_LPSTR = 0x1e, - MONO_VARIANT_LPWSTR = 0x1f, - MONO_VARIANT_RECORD = 0x24, - MONO_VARIANT_FILETIME = 0x40, - MONO_VARIANT_BLOB = 0x41, - MONO_VARIANT_STREAM = 0x42, - MONO_VARIANT_STORAGE = 0x43, - MONO_VARIANT_STREAMED_OBJECT = 0x44, - MONO_VARIANT_STORED_OBJECT = 0x45, - MONO_VARIANT_BLOB_OBJECT = 0x46, - MONO_VARIANT_CF = 0x47, - MONO_VARIANT_CLSID = 0x48, - MONO_VARIANT_VECTOR = 0x1000, - MONO_VARIANT_ARRAY = 0x2000, - MONO_VARIANT_BYREF = 0x4000 -} MonoMarshalVariant; - -typedef enum { - MONO_MARSHAL_CONV_NONE, - MONO_MARSHAL_CONV_BOOL_VARIANTBOOL, - MONO_MARSHAL_CONV_BOOL_I4, - MONO_MARSHAL_CONV_STR_BSTR, - MONO_MARSHAL_CONV_STR_LPSTR, - MONO_MARSHAL_CONV_LPSTR_STR, - MONO_MARSHAL_CONV_LPTSTR_STR, - MONO_MARSHAL_CONV_STR_LPWSTR, - MONO_MARSHAL_CONV_LPWSTR_STR, - MONO_MARSHAL_CONV_STR_LPTSTR, - MONO_MARSHAL_CONV_STR_ANSIBSTR, - MONO_MARSHAL_CONV_STR_TBSTR, - MONO_MARSHAL_CONV_STR_BYVALSTR, - MONO_MARSHAL_CONV_STR_BYVALWSTR, - MONO_MARSHAL_CONV_SB_LPSTR, - MONO_MARSHAL_CONV_SB_LPTSTR, - MONO_MARSHAL_CONV_SB_LPWSTR, - MONO_MARSHAL_CONV_LPSTR_SB, - MONO_MARSHAL_CONV_LPTSTR_SB, - MONO_MARSHAL_CONV_LPWSTR_SB, - MONO_MARSHAL_CONV_ARRAY_BYVALARRAY, - MONO_MARSHAL_CONV_ARRAY_BYVALCHARARRAY, - MONO_MARSHAL_CONV_ARRAY_SAVEARRAY, - MONO_MARSHAL_CONV_ARRAY_LPARRAY, - MONO_MARSHAL_FREE_LPARRAY, - MONO_MARSHAL_CONV_OBJECT_INTERFACE, - MONO_MARSHAL_CONV_OBJECT_IDISPATCH, - MONO_MARSHAL_CONV_OBJECT_IUNKNOWN, - MONO_MARSHAL_CONV_OBJECT_STRUCT, - MONO_MARSHAL_CONV_DEL_FTN, - MONO_MARSHAL_CONV_FTN_DEL, - MONO_MARSHAL_FREE_ARRAY, - MONO_MARSHAL_CONV_BSTR_STR, - MONO_MARSHAL_CONV_SAFEHANDLE, - MONO_MARSHAL_CONV_HANDLEREF, - MONO_MARSHAL_CONV_STR_UTF8STR, - MONO_MARSHAL_CONV_SB_UTF8STR, - MONO_MARSHAL_CONV_UTF8STR_STR, - MONO_MARSHAL_CONV_UTF8STR_SB, - MONO_MARSHAL_CONV_FIXED_BUFFER, - MONO_MARSHAL_CONV_ANSIBSTR_STR, - MONO_MARSHAL_CONV_TBSTR_STR -} MonoMarshalConv; - -#define MONO_MARSHAL_CONV_INVALID ((MonoMarshalConv)-1) - -typedef struct { - MonoMarshalNative native; - union { - struct { - MonoMarshalNative elem_type; - int32_t num_elem; /* -1 if not set */ - int16_t param_num; /* -1 if not set */ - int16_t elem_mult; /* -1 if not set */ - } array_data; - struct { - char *custom_name; - char *cookie; - MonoImage *image; - } custom_data; - struct { - MonoMarshalVariant elem_type; - int32_t num_elem; - } safearray_data; - } data; -} MonoMarshalSpec; - -typedef struct { - uint32_t flags; - uint32_t try_offset; - uint32_t try_len; - uint32_t handler_offset; - uint32_t handler_len; - union { - uint32_t filter_offset; - MonoClass *catch_class; - } data; -} MonoExceptionClause; - -typedef struct _MonoType MonoType; -typedef struct _MonoGenericInst MonoGenericInst; -typedef struct _MonoGenericClass MonoGenericClass; -typedef struct _MonoGenericContext MonoGenericContext; -typedef struct _MonoGenericContainer MonoGenericContainer; -typedef struct _MonoGenericParam MonoGenericParam; -typedef struct _MonoArrayType MonoArrayType; -typedef struct _MonoMethodSignature MonoMethodSignature; - -/* FIXME: Keeping this name alive for now, since it is part of the exposed API, even though no entrypoint uses it. */ -typedef struct invalid_name MonoGenericMethod; - -typedef struct { - unsigned int required : 1; - unsigned int token : 31; -} MonoCustomMod; - -typedef struct _MonoCustomModContainer { - uint8_t count; /* max 64 modifiers follow at the end */ - MonoImage *image; /* Image containing types in modifiers array */ - MonoCustomMod modifiers [1]; /* Actual length is count */ -} MonoCustomModContainer; - -struct _MonoArrayType { - MonoClass *eklass; - // Number of dimensions of the array - uint8_t rank; - - // Arrays recording known upper and lower index bounds for each dimension - uint8_t numsizes; - uint8_t numlobounds; - int *sizes; - int *lobounds; -}; - -typedef struct _MonoMethodHeader MonoMethodHeader; - -typedef enum { - MONO_PARSE_TYPE, - MONO_PARSE_MOD_TYPE, - MONO_PARSE_LOCAL, - MONO_PARSE_PARAM, - MONO_PARSE_RET, - MONO_PARSE_FIELD -} MonoParseTypeMode; - -MONO_END_DECLS - -#endif /* _MONO_METADATA_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/mono-config-functions.h b/Prism/vendor/mono/include/mono/metadata/details/mono-config-functions.h deleted file mode 100644 index 3f25e3b..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/mono-config-functions.h +++ /dev/null @@ -1,25 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(const char *, mono_config_get_os, (void)) -MONO_API_FUNCTION(const char *, mono_config_get_cpu, (void)) -MONO_API_FUNCTION(const char *, mono_config_get_wordsize, (void)) - -/** - * These functions are no-ops since app.config/machine.config handling is not available in dotnet/runtime. - */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY const char*, mono_get_config_dir, (void)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_set_config_dir, (const char *dir)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY const char *, mono_get_machine_config, (void)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_config_cleanup, (void)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_config_parse, (const char *filename)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_config_for_assembly, (MonoImage *assembly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_config_parse_memory, (const char *buffer)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY const char*, mono_config_string_for_assembly_file, (const char *filename)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_config_set_server_mode, (mono_bool server_mode)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_config_is_server_mode, (void)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/mono-config-types.h b/Prism/vendor/mono/include/mono/metadata/details/mono-config-types.h deleted file mode 100644 index 1832f5b..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/mono-config-types.h +++ /dev/null @@ -1,14 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_METADATA_CONFIG_TYPES_H -#define _MONO_METADATA_CONFIG_TYPES_H - -#include -#include - -MONO_BEGIN_DECLS - -MONO_END_DECLS - -#endif /* _MONO_METADATA_CONFIG_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/mono-debug-functions.h b/Prism/vendor/mono/include/mono/metadata/details/mono-debug-functions.h deleted file mode 100644 index 1ef12f7..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/mono-debug-functions.h +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(mono_bool, mono_debug_enabled, (void)) - -MONO_API_FUNCTION(void, mono_debug_init, (MonoDebugFormat format)) -MONO_API_FUNCTION(void, mono_debug_open_image_from_memory, (MonoImage *image, const mono_byte *raw_contents, int size)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_debug_cleanup, (void)) - -MONO_API_FUNCTION(void, mono_debug_close_image, (MonoImage *image)) - -MONO_API_FUNCTION(void, mono_debug_domain_unload, (MonoDomain *domain)) -MONO_API_FUNCTION(void, mono_debug_domain_create, (MonoDomain *domain)) - -MONO_API_FUNCTION(MonoDebugMethodAddress *, mono_debug_add_method, (MonoMethod *method, MonoDebugMethodJitInfo *jit, MonoDomain *domain)) - -MONO_API_FUNCTION(void, mono_debug_remove_method, (MonoMethod *method, MonoDomain *domain)) - -MONO_API_FUNCTION(MonoDebugMethodInfo *, mono_debug_lookup_method, (MonoMethod *method)) - -MONO_API_FUNCTION(MonoDebugMethodAddressList *, mono_debug_lookup_method_addresses, (MonoMethod *method)) - -MONO_API_FUNCTION(MonoDebugMethodJitInfo*, mono_debug_find_method, (MonoMethod *method, MonoDomain *domain)) - -MONO_API_FUNCTION(MonoDebugHandle *, mono_debug_get_handle, (MonoImage *image)) - -MONO_API_FUNCTION(void, mono_debug_free_method_jit_info, (MonoDebugMethodJitInfo *jit)) - - -MONO_API_FUNCTION(void, mono_debug_add_delegate_trampoline, (void* code, int size)) - -MONO_API_FUNCTION(MonoDebugLocalsInfo*, mono_debug_lookup_locals, (MonoMethod *method)) - -MONO_API_FUNCTION(MonoDebugMethodAsyncInfo*, mono_debug_lookup_method_async_debug_info, (MonoMethod *method)) - -MONO_API_FUNCTION(MonoDebugSourceLocation *, mono_debug_method_lookup_location, (MonoDebugMethodInfo *minfo, int il_offset)) - -/* - * Line number support. - */ - -MONO_API_FUNCTION(MonoDebugSourceLocation *, mono_debug_lookup_source_location, (MonoMethod *method, uint32_t address, MonoDomain *domain)) - -MONO_API_FUNCTION(int32_t, mono_debug_il_offset_from_address, (MonoMethod *method, MonoDomain *domain, uint32_t native_offset)) - -MONO_API_FUNCTION(void, mono_debug_free_source_location, (MonoDebugSourceLocation *location)) - -MONO_API_FUNCTION(char *, mono_debug_print_stack_frame, (MonoMethod *method, uint32_t native_offset, MonoDomain *domain)) - -/* - * Mono Debugger support functions - * - * These methods are used by the JIT while running inside the Mono Debugger. - */ - -MONO_API_FUNCTION(int, mono_debugger_method_has_breakpoint, (MonoMethod *method)) -MONO_API_FUNCTION(int, mono_debugger_insert_breakpoint, (const char *method_name, mono_bool include_namespace)) - -MONO_API_FUNCTION(void, mono_set_is_debugger_attached, (mono_bool attached)) -MONO_API_FUNCTION(mono_bool, mono_is_debugger_attached, (void)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/mono-debug-types.h b/Prism/vendor/mono/include/mono/metadata/details/mono-debug-types.h deleted file mode 100644 index 197ec40..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/mono-debug-types.h +++ /dev/null @@ -1,154 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_MONO_DEBUG_TYPES_H -#define _MONO_MONO_DEBUG_TYPES_H - -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef struct _MonoSymbolTable MonoSymbolTable; -typedef struct _MonoDebugDataTable MonoDebugDataTable; - -typedef struct _MonoSymbolFile MonoSymbolFile; -typedef struct _MonoPPDBFile MonoPPDBFile; - -typedef struct _MonoDebugHandle MonoDebugHandle; - -typedef struct _MonoDebugLineNumberEntry MonoDebugLineNumberEntry; - -typedef struct _MonoDebugVarInfo MonoDebugVarInfo; -typedef struct _MonoDebugMethodJitInfo MonoDebugMethodJitInfo; -typedef struct _MonoDebugMethodAddress MonoDebugMethodAddress; -typedef struct _MonoDebugMethodAddressList MonoDebugMethodAddressList; -typedef struct _MonoDebugClassEntry MonoDebugClassEntry; - -typedef struct _MonoDebugMethodInfo MonoDebugMethodInfo; -typedef struct _MonoDebugLocalsInfo MonoDebugLocalsInfo; -typedef struct _MonoDebugMethodAsyncInfo MonoDebugMethodAsyncInfo; -typedef struct _MonoDebugSourceLocation MonoDebugSourceLocation; - -typedef struct _MonoDebugList MonoDebugList; - -typedef enum { - MONO_DEBUG_FORMAT_NONE, - MONO_DEBUG_FORMAT_MONO, - /* Deprecated, the mdb debugger is not longer supported. */ - MONO_DEBUG_FORMAT_DEBUGGER -} MonoDebugFormat; - -/* - * NOTE: - * We intentionally do not use GList here since the debugger needs to know about - * the layout of the fields. -*/ -struct _MonoDebugList { - MonoDebugList *next; - const void* data; -}; - -struct _MonoSymbolTable { - uint64_t magic; - uint32_t version; - uint32_t total_size; - - /* - * Corlib and metadata info. - */ - MonoDebugHandle *corlib; - MonoDebugDataTable *global_data_table; - MonoDebugList *data_tables; - - /* - * The symbol files. - */ - MonoDebugList *symbol_files; -}; - -struct _MonoDebugHandle { - uint32_t index; - char *image_file; - MonoImage *image; - MonoDebugDataTable *type_table; - MonoSymbolFile *symfile; - MonoPPDBFile *ppdb; -}; - -struct _MonoDebugMethodJitInfo { - const mono_byte *code_start; - uint32_t code_size; - uint32_t prologue_end; - uint32_t epilogue_begin; - const mono_byte *wrapper_addr; - uint32_t num_line_numbers; - MonoDebugLineNumberEntry *line_numbers; - uint32_t has_var_info; - uint32_t num_params; - MonoDebugVarInfo *this_var; - MonoDebugVarInfo *params; - uint32_t num_locals; - MonoDebugVarInfo *locals; - MonoDebugVarInfo *gsharedvt_info_var; - MonoDebugVarInfo *gsharedvt_locals_var; -}; - -struct _MonoDebugMethodAddressList { - uint32_t size; - uint32_t count; - mono_byte data [MONO_ZERO_LEN_ARRAY]; -}; - -struct _MonoDebugSourceLocation { - char *source_file; - uint32_t row, column; - uint32_t il_offset; -}; - -/* - * These bits of the MonoDebugLocalInfo's "index" field are flags specifying - * where the variable is actually stored. - * - * See relocate_variable() in debug-symfile.c for more info. - */ -#define MONO_DEBUG_VAR_ADDRESS_MODE_FLAGS 0xf0000000 - -/* The variable is in register "index". */ -#define MONO_DEBUG_VAR_ADDRESS_MODE_REGISTER 0 - -/* The variable is at offset "offset" from register "index". */ -#define MONO_DEBUG_VAR_ADDRESS_MODE_REGOFFSET 0x10000000 - -/* The variable is in the two registers "offset" and "index". */ -#define MONO_DEBUG_VAR_ADDRESS_MODE_TWO_REGISTERS 0x20000000 - -/* The variable is dead. */ -#define MONO_DEBUG_VAR_ADDRESS_MODE_DEAD 0x30000000 - -/* Same as REGOFFSET, but do an indirection */ -#define MONO_DEBUG_VAR_ADDRESS_MODE_REGOFFSET_INDIR 0x40000000 - -/* gsharedvt local */ -#define MONO_DEBUG_VAR_ADDRESS_MODE_GSHAREDVT_LOCAL 0x50000000 - -/* variable is a vt address */ -#define MONO_DEBUG_VAR_ADDRESS_MODE_VTADDR 0x60000000 - -struct _MonoDebugVarInfo { - uint32_t index; - uint32_t offset; - uint32_t size; - uint32_t begin_scope; - uint32_t end_scope; - MonoType *type; -}; - -#define MONO_DEBUGGER_MAJOR_VERSION 81 -#define MONO_DEBUGGER_MINOR_VERSION 6 -#define MONO_DEBUGGER_MAGIC 0x7aff65af4253d427ULL - -MONO_END_DECLS - -#endif /* _MONO_MONO_DEBUG_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/mono-gc-functions.h b/Prism/vendor/mono/include/mono/metadata/details/mono-gc-functions.h deleted file mode 100644 index 6208110..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/mono-gc-functions.h +++ /dev/null @@ -1,22 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(void, mono_gc_collect, (int generation)) -MONO_API_FUNCTION(int, mono_gc_max_generation, (void)) -MONO_API_FUNCTION(int, mono_gc_get_generation, (MonoObject *object)) -MONO_API_FUNCTION(int, mono_gc_collection_count, (int generation)) -MONO_API_FUNCTION(int64_t, mono_gc_get_generation_size, (int generation)) -MONO_API_FUNCTION(int64_t, mono_gc_get_used_size, (void)) -MONO_API_FUNCTION(int64_t, mono_gc_get_heap_size, (void)) -MONO_API_FUNCTION(MonoBoolean, mono_gc_pending_finalizers, (void)) -MONO_API_FUNCTION(void, mono_gc_finalize_notify, (void)) -MONO_API_FUNCTION(int, mono_gc_invoke_finalizers, (void)) -/* heap walking is only valid in the pre-stop-world event callback */ -MONO_API_FUNCTION(int, mono_gc_walk_heap, (int flags, MonoGCReferences callback, void *data)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_init_finalizer_thread, (void)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/mono-gc-types.h b/Prism/vendor/mono/include/mono/metadata/details/mono-gc-types.h deleted file mode 100644 index 1675210..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/mono-gc-types.h +++ /dev/null @@ -1,114 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_METADATA_MONO_GC_TYPES_H -#define _MONO_METADATA_MONO_GC_TYPES_H - -#include - -MONO_BEGIN_DECLS - -typedef int (*MonoGCReferences) (MonoObject *obj, MonoClass *klass, uintptr_t size, uintptr_t num, MonoObject **refs, uintptr_t *offsets, void *data); - -/** - * This enum is used by the profiler API when reporting root registration. - */ -typedef enum { - /** - * Roots external to Mono. Embedders may only use this value. - */ - MONO_ROOT_SOURCE_EXTERNAL = 0, - /** - * Thread call stack. - * - * The \c key parameter is a thread ID as a \c uintptr_t. - */ - MONO_ROOT_SOURCE_STACK = 1, - /** - * Roots in the finalizer queue. This is a pseudo-root. - */ - MONO_ROOT_SOURCE_FINALIZER_QUEUE = 2, - /** - * Managed \c static variables. - * - * The \c key parameter is a \c MonoVTable pointer. - */ - MONO_ROOT_SOURCE_STATIC = 3, - /** - * Managed \c static variables with \c ThreadStaticAttribute. - * - * The \c key parameter is a thread ID as a \c uintptr_t. - */ - MONO_ROOT_SOURCE_THREAD_STATIC = 4, - /** - * Managed \c static variables with \c ContextStaticAttribute. - * - * The \c key parameter is a \c MonoAppContext pointer. - */ - MONO_ROOT_SOURCE_CONTEXT_STATIC = 5, - /** - * \c GCHandle structures. - */ - MONO_ROOT_SOURCE_GC_HANDLE = 6, - /** - * Roots in the just-in-time compiler. - */ - MONO_ROOT_SOURCE_JIT = 7, - /** - * Roots in the threading subsystem. - * - * The \c key parameter, if not \c NULL, is a thread ID as a \c uintptr_t. - */ - MONO_ROOT_SOURCE_THREADING = 8, - /** - * Roots in application domains. - * - * The \c key parameter, if not \c NULL, is a \c MonoDomain pointer. - */ - MONO_ROOT_SOURCE_DOMAIN = 9, - /** - * Roots in reflection code. - * - * The \c key parameter, if not \c NULL, is a \c MonoVTable pointer. - */ - MONO_ROOT_SOURCE_REFLECTION = 10, - /** - * Roots from P/Invoke or other marshaling infrastructure. - */ - MONO_ROOT_SOURCE_MARSHAL = 11, - /** - * Roots in the thread pool data structures. - */ - MONO_ROOT_SOURCE_THREAD_POOL = 12, - /** - * Roots in the debugger agent. - */ - MONO_ROOT_SOURCE_DEBUGGER = 13, - /** - * Roots in the runtime handle stack. This is a pseudo-root. - * - * The \c key parameter is a thread ID as a \c uintptr_t. - */ - MONO_ROOT_SOURCE_HANDLE = 14, - /** - * Roots in the ephemeron arrays. This is a pseudo-root. - */ - MONO_ROOT_SOURCE_EPHEMERON = 15, - /** - * Roots in the toggleref arrays. This is a pseudo-root. - */ - MONO_ROOT_SOURCE_TOGGLEREF = 16, -} MonoGCRootSource; - -typedef enum { - MONO_GC_HANDLE_TYPE_MIN = 0, - MONO_GC_HANDLE_WEAK = MONO_GC_HANDLE_TYPE_MIN, - MONO_GC_HANDLE_WEAK_TRACK_RESURRECTION, - MONO_GC_HANDLE_NORMAL, - MONO_GC_HANDLE_PINNED, - MONO_GC_HANDLE_TYPE_MAX, -} MonoGCHandleType; - -MONO_END_DECLS - -#endif /* _MONO_METADATA_MONO_GC_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/mono-private-unstable-functions.h b/Prism/vendor/mono/include/mono/metadata/details/mono-private-unstable-functions.h deleted file mode 100644 index 0eb931c..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/mono-private-unstable-functions.h +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -/** - * - * Private unstable APIs. - * - * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at - * any time. - * - */ -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssembly *, mono_assembly_load_full_alc, (MonoAssemblyLoadContextGCHandle alc_gchandle, MonoAssemblyName *aname, const char *basedir, MonoImageOpenStatus *status)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoImage *, mono_image_open_from_data_alc, (MonoAssemblyLoadContextGCHandle alc_gchandle, char *data, uint32_t data_len, mono_bool need_copy, MonoImageOpenStatus *status, const char *name)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_install_assembly_preload_hook_v3, (MonoAssemblyPreLoadFuncV3 func, void *user_data, mono_bool append)) - -// This can point at NULL before the default ALC is initialized -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoAssemblyLoadContextGCHandle, mono_alc_get_default_gchandle, (void)) - -MONO_API_FUNCTION(void, mono_register_bundled_satellite_assemblies, (const MonoBundledSatelliteAssembly **assemblies)) - -MONO_API_FUNCTION(MonoBundledSatelliteAssembly *, mono_create_new_bundled_satellite_assembly, (const char *name, const char *culture, const unsigned char *data, unsigned int size)) - - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void*, mono_method_get_unmanaged_callers_only_ftnptr, (MonoMethod *method, MonoError *error)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/mono-private-unstable-types.h b/Prism/vendor/mono/include/mono/metadata/details/mono-private-unstable-types.h deleted file mode 100644 index c66bd78..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/mono-private-unstable-types.h +++ /dev/null @@ -1,30 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -/** - * - * Private unstable APIs. - * - * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at - * any time. - * - */ -#ifndef _MONO_METADATA_PRIVATE_UNSTABLE_TYPES_H -#define _MONO_METADATA_PRIVATE_UNSTABLE_TYPES_H - -#include -#include - -MONO_BEGIN_DECLS - -typedef MonoGCHandle MonoAssemblyLoadContextGCHandle; - -typedef MonoAssembly * (*MonoAssemblyPreLoadFuncV3) (MonoAssemblyLoadContextGCHandle alc_gchandle, MonoAssemblyName *aname, char **assemblies_path, void *user_data, MonoError *error); - -typedef struct _MonoBundledSatelliteAssembly MonoBundledSatelliteAssembly; - -typedef void * (*PInvokeOverrideFn) (const char *libraryName, const char *entrypointName); - -MONO_END_DECLS - -#endif /* _MONO_METADATA_PRIVATE_UNSTABLE_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/object-functions.h b/Prism/vendor/mono/include/mono/metadata/details/object-functions.h deleted file mode 100644 index 18b80f3..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/object-functions.h +++ /dev/null @@ -1,223 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_unichar2 *, mono_string_chars, (MonoString *s)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_string_length, (MonoString *s)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_new, (MonoDomain *domain, MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_new_specific, (MonoVTable *vtable)) - -/* can be used for classes without finalizer in non-profiling mode */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_new_fast, (MonoVTable *vtable)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_new_alloc_specific, (MonoVTable *vtable)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_new_from_token, (MonoDomain *domain, MonoImage *image, uint32_t token)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray*, mono_array_new, (MonoDomain *domain, MonoClass *eclass, uintptr_t n)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray*, mono_array_new_full, (MonoDomain *domain, MonoClass *array_class, uintptr_t *lengths, intptr_t *lower_bounds)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray *, mono_array_new_specific, (MonoVTable *vtable, uintptr_t n)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray*, mono_array_clone, (MonoArray *array)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY char*, mono_array_addr_with_size, (MonoArray *array, int size, uintptr_t idx)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY uintptr_t, mono_array_length, (MonoArray *array)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_empty, (MonoDomain *domain)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_empty_wrapper, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_new_utf16, (MonoDomain *domain, const mono_unichar2 *text, int32_t len)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_new_size, (MonoDomain *domain, int32_t len)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_ldstr, (MonoDomain *domain, MonoImage *image, uint32_t str_index)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_is_interned, (MonoString *str)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_intern, (MonoString *str)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_new, (MonoDomain *domain, const char *text)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_new_wrapper, (const char *text)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_new_len, (MonoDomain *domain, const char *text, unsigned int length)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString*, mono_string_new_utf32, (MonoDomain *domain, const mono_unichar4 *text, int32_t len)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY char *, mono_string_to_utf8, (MonoString *string_obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY char *, mono_string_to_utf8_checked, (MonoString *string_obj, MonoError *error)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_unichar2 *, mono_string_to_utf16, (MonoString *string_obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_unichar4 *, mono_string_to_utf32, (MonoString *string_obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString *, mono_string_from_utf16, (/*const*/ mono_unichar2 *data)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString *, mono_string_from_utf32, (/*const*/ mono_unichar4 *data)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_string_equal, (MonoString *s1, MonoString *s2)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY unsigned int, mono_string_hash, (MonoString *s)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_object_hash, (MonoObject* obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoString *, mono_object_to_string, (MonoObject *obj, MonoObject **exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_value_box, (MonoDomain *domain, MonoClass *klass, void* val)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_value_copy, (void* dest, /*const*/ void* src, MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_value_copy_array, (MonoArray *dest, int dest_idx, void* src, int count)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoVTable*, mono_object_get_vtable, (MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoDomain*, mono_object_get_domain, (MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass*, mono_object_get_class, (MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void*, mono_object_unbox, (MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_clone, (MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_isinst, (MonoObject *obj, MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_isinst_mbyref, (MonoObject *obj, MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_object_castclass_mbyref, (MonoObject *obj, MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_monitor_try_enter, (MonoObject *obj, uint32_t ms)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_monitor_enter, (MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_monitor_enter_v4, (MonoObject *obj, char *lock_taken)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY unsigned int, mono_object_get_size, (MonoObject *o)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_monitor_exit, (MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_raise_exception, (MonoException *ex)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_runtime_set_pending_exception, (MonoException *exc, mono_bool overwrite)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_reraise_exception, (MonoException *ex)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_runtime_object_init, (MonoObject *this_obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_runtime_class_init, (MonoVTable *vtable)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoDomain*, mono_vtable_domain, (MonoVTable *vtable)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoClass*, mono_vtable_class, (MonoVTable *vtable)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod*, mono_object_get_virtual_method, (MonoObject *obj, MonoMethod *method)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject*, mono_runtime_invoke, (MonoMethod *method, void *obj, void **params, MonoObject **exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod*, mono_get_delegate_invoke, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod*, mono_get_delegate_begin_invoke, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoMethod*, mono_get_delegate_end_invoke, (MonoClass *klass)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject*, mono_runtime_delegate_invoke, (MonoObject *delegate, void **params, MonoObject **exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject*, mono_runtime_invoke_array, (MonoMethod *method, void *obj, MonoArray *params, MonoObject **exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void*, mono_method_get_unmanaged_thunk, (MonoMethod *method)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray*, mono_runtime_get_main_args, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_runtime_exec_managed_code, (MonoDomain *domain, MonoMainThreadFunc main_func, void* main_args)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_runtime_run_main, (MonoMethod *method, int argc, char* argv[],MonoObject **exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_runtime_exec_main, (MonoMethod *method, MonoArray *args, MonoObject **exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_runtime_set_main_args, (int argc, char* argv[])) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void*, mono_load_remote_field, (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, void **res)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_load_remote_field_new, (MonoObject *this_obj, MonoClass *klass, MonoClassField *field)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_store_remote_field, (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, void* val)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_store_remote_field_new, (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, MonoObject *arg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_unhandled_exception, (MonoObject *exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_print_unhandled_exception, (MonoObject *exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void*, mono_compile_method, (MonoMethod *method)) - -/* accessors for fields and properties */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_field_set_value, (MonoObject *obj, MonoClassField *field, void *value)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_field_static_set_value, (MonoVTable *vt, MonoClassField *field, void *value)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_field_get_value, (MonoObject *obj, MonoClassField *field, void *value)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_field_static_get_value, (MonoVTable *vt, MonoClassField *field, void *value)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject *, mono_field_get_value_object, (MonoDomain *domain, MonoClassField *field, MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_property_set_value, (MonoProperty *prop, void *obj, void **params, MonoObject **exc)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject*, mono_property_get_value, (MonoProperty *prop, void *obj, void **params, MonoObject **exc)) - -/* GC handles support - * - * A handle can be created to refer to a managed object and either prevent it - * from being garbage collected or moved or to be able to know if it has been - * collected or not (weak references). - * mono_gchandle_new () is used to prevent an object from being garbage collected - * until mono_gchandle_free() is called. Use a TRUE value for the pinned argument to - * prevent the object from being moved (this should be avoided as much as possible - * and this should be used only for shorts periods of time or performance will suffer). - * To create a weakref use mono_gchandle_new_weakref (): track_resurrection should - * usually be false (see the GC docs for more details). - * mono_gchandle_get_target () can be used to get the object referenced by both kinds - * of handle: for a weakref handle, if an object has been collected, it will return NULL. - */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY uint32_t, mono_gchandle_new, (MonoObject *obj, mono_bool pinned)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY uint32_t, mono_gchandle_new_weakref, (MonoObject *obj, mono_bool track_resurrection)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject*, mono_gchandle_get_target, (uint32_t gchandle)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gchandle_free, (uint32_t gchandle)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoGCHandle, mono_gchandle_new_v2, (MonoObject *obj, mono_bool pinned)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoGCHandle, mono_gchandle_new_weakref_v2, (MonoObject *obj, mono_bool track_resurrection)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject*, mono_gchandle_get_target_v2, (MonoGCHandle gchandle)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gchandle_free_v2, (MonoGCHandle gchandle)) - -/* Reference queue support - * - * A reference queue is used to get notifications of when objects are collected. - * Call mono_gc_reference_queue_new to create a new queue and pass the callback that - * will be invoked when registered objects are collected. - * Call mono_gc_reference_queue_add to register a pair of objects and data within a queue. - * The callback will be triggered once an object is both unreachable and finalized. - */ - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReferenceQueue*, mono_gc_reference_queue_new, (mono_reference_queue_callback callback)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_reference_queue_free, (MonoReferenceQueue *queue)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_gc_reference_queue_add, (MonoReferenceQueue *queue, MonoObject *obj, void *user_data)) - -/* GC write barriers support */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wbarrier_set_field, (MonoObject *obj, void* field_ptr, MonoObject* value)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wbarrier_set_arrayref, (MonoArray *arr, void* slot_ptr, MonoObject* value)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wbarrier_arrayref_copy, (void* dest_ptr, /*const*/ void* src_ptr, int count)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wbarrier_generic_store, (void* ptr, MonoObject* value)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wbarrier_generic_store_atomic, (void *ptr, MonoObject *value)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wbarrier_generic_nostore, (void* ptr)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wbarrier_value_copy, (void* dest, /*const*/ void* src, int count, MonoClass *klass)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wbarrier_object_copy, (MonoObject* obj, MonoObject *src)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/object-types.h b/Prism/vendor/mono/include/mono/metadata/details/object-types.h deleted file mode 100644 index e95e7ee..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/object-types.h +++ /dev/null @@ -1,44 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_OBJECT_TYPES_H -#define _MONO_OBJECT_TYPES_H - -#include -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef struct _MonoString MONO_RT_MANAGED_ATTR MonoString; -typedef struct _MonoArray MONO_RT_MANAGED_ATTR MonoArray; -typedef struct _MonoReflectionMethod MONO_RT_MANAGED_ATTR MonoReflectionMethod; -typedef struct _MonoReflectionModule MONO_RT_MANAGED_ATTR MonoReflectionModule; -typedef struct _MonoReflectionField MONO_RT_MANAGED_ATTR MonoReflectionField; -typedef struct _MonoReflectionProperty MONO_RT_MANAGED_ATTR MonoReflectionProperty; -typedef struct _MonoReflectionEvent MONO_RT_MANAGED_ATTR MonoReflectionEvent; -typedef struct _MonoReflectionType MONO_RT_MANAGED_ATTR MonoReflectionType; -typedef struct _MonoDelegate MONO_RT_MANAGED_ATTR MonoDelegate; -typedef struct _MonoThreadsSync MonoThreadsSync; -typedef struct _MonoInternalThread MONO_RT_MANAGED_ATTR MonoThread; -typedef struct _MonoDynamicAssembly MonoDynamicAssembly; -typedef struct _MonoDynamicImage MonoDynamicImage; -typedef struct _MonoReflectionMethodBody MONO_RT_MANAGED_ATTR MonoReflectionMethodBody; -typedef struct _MonoAppContext MONO_RT_MANAGED_ATTR MonoAppContext; - -struct _MonoObject { - MonoVTable *vtable; - MonoThreadsSync *synchronisation; -}; - -typedef MonoObject* (*MonoInvokeFunc) (MonoMethod *method, void *obj, void **params, MonoObject **exc, MonoError *error); -typedef void* (*MonoCompileFunc) (MonoMethod *method); -typedef void (*MonoMainThreadFunc) (void* user_data); - -typedef void (*mono_reference_queue_callback) (void *user_data); -typedef struct _MonoReferenceQueue MonoReferenceQueue; - -MONO_END_DECLS - -#endif /* _MONO_OBJECT_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/opcodes-functions.h b/Prism/vendor/mono/include/mono/metadata/details/opcodes-functions.h deleted file mode 100644 index 04444b8..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/opcodes-functions.h +++ /dev/null @@ -1,11 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(const char*, mono_opcode_name, (int opcode)) - -MONO_API_FUNCTION(MonoOpcodeEnum, mono_opcode_value, (const mono_byte **ip, const mono_byte *end)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/opcodes-types.h b/Prism/vendor/mono/include/mono/metadata/details/opcodes-types.h deleted file mode 100644 index 7f923f2..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/opcodes-types.h +++ /dev/null @@ -1,62 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_OPCODES_TYPES_H -#define _MONO_OPCODES_TYPES_H - -#include - -MONO_BEGIN_DECLS - -#define MONO_CUSTOM_PREFIX 0xf0 - -#define OPDEF(a,b,c,d,e,f,g,h,i,j) \ - MONO_ ## a, - -typedef enum MonoOpcodeEnum { - MonoOpcodeEnum_Invalid = -1, -#include "mono/cil/opcode.def" - MONO_CEE_LAST -} MonoOpcodeEnum; - -#undef OPDEF - -enum { - MONO_FLOW_NEXT, - MONO_FLOW_BRANCH, - MONO_FLOW_COND_BRANCH, - MONO_FLOW_ERROR, - MONO_FLOW_CALL, - MONO_FLOW_RETURN, - MONO_FLOW_META -}; - -enum { - MonoInlineNone = 0, - MonoInlineType = 1, - MonoInlineField = 2, - MonoInlineMethod = 3, - MonoInlineTok = 4, - MonoInlineString = 5, - MonoInlineSig = 6, - MonoInlineVar = 7, - MonoShortInlineVar = 8, - MonoInlineBrTarget = 9, - MonoShortInlineBrTarget = 10, - MonoInlineSwitch = 11, - MonoInlineR = 12, - MonoShortInlineR = 13, - MonoInlineI = 14, - MonoShortInlineI = 15, - MonoInlineI8 = 16, -}; - -typedef struct { - unsigned char argument; - unsigned char flow_type; - unsigned short opval; -} MonoOpcode; - -MONO_END_DECLS - -#endif /* _MONO_OPCODES_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/profiler-functions.h b/Prism/vendor/mono/include/mono/metadata/details/profiler-functions.h deleted file mode 100644 index 828ccb2..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/profiler-functions.h +++ /dev/null @@ -1,30 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(void, mono_profiler_load, (const char *desc)) -MONO_API_FUNCTION(MonoProfilerHandle, mono_profiler_create, (MonoProfiler *prof)) -MONO_API_FUNCTION(void, mono_profiler_set_cleanup_callback, (MonoProfilerHandle handle, MonoProfilerCleanupCallback cb)) - -MONO_API_FUNCTION(mono_bool, mono_profiler_enable_coverage, (void)) -MONO_API_FUNCTION(void, mono_profiler_set_coverage_filter_callback, (MonoProfilerHandle handle, MonoProfilerCoverageFilterCallback cb)) -MONO_API_FUNCTION(mono_bool, mono_profiler_get_coverage_data, (MonoProfilerHandle handle, MonoMethod *method, MonoProfilerCoverageCallback cb)) - -MONO_API_FUNCTION(mono_bool, mono_profiler_enable_sampling, (MonoProfilerHandle handle)) -MONO_API_FUNCTION(mono_bool, mono_profiler_set_sample_mode, (MonoProfilerHandle handle, MonoProfilerSampleMode mode, uint32_t freq)) -MONO_API_FUNCTION(mono_bool, mono_profiler_get_sample_mode, (MonoProfilerHandle handle, MonoProfilerSampleMode *mode, uint32_t *freq)) - -MONO_API_FUNCTION(mono_bool, mono_profiler_enable_allocations, (void)) -MONO_API_FUNCTION(mono_bool, mono_profiler_enable_clauses, (void)) - -MONO_API_FUNCTION(void, mono_profiler_set_call_instrumentation_filter_callback, (MonoProfilerHandle handle, MonoProfilerCallInstrumentationFilterCallback cb)) -MONO_API_FUNCTION(mono_bool, mono_profiler_enable_call_context_introspection, (void)) -MONO_API_FUNCTION(void *, mono_profiler_call_context_get_this, (MonoProfilerCallContext *context)) -MONO_API_FUNCTION(void *, mono_profiler_call_context_get_argument, (MonoProfilerCallContext *context, uint32_t position)) -MONO_API_FUNCTION(void *, mono_profiler_call_context_get_local, (MonoProfilerCallContext *context, uint32_t position)) -MONO_API_FUNCTION(void *, mono_profiler_call_context_get_result, (MonoProfilerCallContext *context)) -MONO_API_FUNCTION(void, mono_profiler_call_context_free_buffer, (void *buffer)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/profiler-types.h b/Prism/vendor/mono/include/mono/metadata/details/profiler-types.h deleted file mode 100644 index 966459e..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/profiler-types.h +++ /dev/null @@ -1,131 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_PROFILER_TYPES_H -#define _MONO_PROFILER_TYPES_H - -#include -#include -#include -#include - -MONO_BEGIN_DECLS - -typedef struct _MonoProfiler MonoProfiler; -typedef struct _MonoProfilerDesc *MonoProfilerHandle; - -typedef void (*MonoProfilerCleanupCallback) (MonoProfiler *prof); - -typedef struct { - MonoMethod *method; - uint32_t il_offset; - uint32_t counter; - const char *file_name; - uint32_t line; - uint32_t column; -} MonoProfilerCoverageData; - -typedef mono_bool (*MonoProfilerCoverageFilterCallback) (MonoProfiler *prof, MonoMethod *method); -typedef void (*MonoProfilerCoverageCallback) (MonoProfiler *prof, const MonoProfilerCoverageData *data); - -typedef enum { - /** - * Do not perform sampling. Will make the sampling thread sleep until the - * sampling mode is changed to one of the below modes. - */ - MONO_PROFILER_SAMPLE_MODE_NONE = 0, - /** - * Try to base sampling frequency on process activity. Falls back to - * MONO_PROFILER_SAMPLE_MODE_REAL if such a clock is not available. - */ - MONO_PROFILER_SAMPLE_MODE_PROCESS = 1, - /** - * Base sampling frequency on wall clock time. Uses a monotonic clock when - * available (all major platforms). - */ - MONO_PROFILER_SAMPLE_MODE_REAL = 2, -} MonoProfilerSampleMode; - -typedef struct _MonoProfilerCallContext MonoProfilerCallContext; - -typedef enum { - /** - * Do not instrument calls. - */ - MONO_PROFILER_CALL_INSTRUMENTATION_NONE = 0, - /** - * Instrument method entries. - */ - MONO_PROFILER_CALL_INSTRUMENTATION_ENTER = 1 << 1, - /** - * Also capture a call context for method entries. - */ - MONO_PROFILER_CALL_INSTRUMENTATION_ENTER_CONTEXT = 1 << 2, - /** - * Instrument method exits. - */ - MONO_PROFILER_CALL_INSTRUMENTATION_LEAVE = 1 << 3, - /** - * Also capture a call context for method exits. - */ - MONO_PROFILER_CALL_INSTRUMENTATION_LEAVE_CONTEXT = 1 << 4, - /** - * Instrument method exits as a result of a tail call. - */ - MONO_PROFILER_CALL_INSTRUMENTATION_TAIL_CALL = 1 << 5, - /** - * Instrument exceptional method exits. - */ - MONO_PROFILER_CALL_INSTRUMENTATION_EXCEPTION_LEAVE = 1 << 6, -} MonoProfilerCallInstrumentationFlags; - -typedef MonoProfilerCallInstrumentationFlags (*MonoProfilerCallInstrumentationFilterCallback) (MonoProfiler *prof, MonoMethod *method); - -typedef enum { - /** - * The \c data parameter is a \c MonoMethod pointer. - */ - MONO_PROFILER_CODE_BUFFER_METHOD = 0, - /** - * \deprecated No longer used. - */ - MONO_PROFILER_CODE_BUFFER_METHOD_TRAMPOLINE = 1, - /** - * The \c data parameter is a \c MonoMethod pointer. - */ - MONO_PROFILER_CODE_BUFFER_UNBOX_TRAMPOLINE = 2, - MONO_PROFILER_CODE_BUFFER_IMT_TRAMPOLINE = 3, - MONO_PROFILER_CODE_BUFFER_GENERICS_TRAMPOLINE = 4, - /** - * The \c data parameter is a C string. - */ - MONO_PROFILER_CODE_BUFFER_SPECIFIC_TRAMPOLINE = 5, - MONO_PROFILER_CODE_BUFFER_HELPER = 6, - /** - * \deprecated No longer used. - */ - MONO_PROFILER_CODE_BUFFER_MONITOR = 7, - MONO_PROFILER_CODE_BUFFER_DELEGATE_INVOKE = 8, - MONO_PROFILER_CODE_BUFFER_EXCEPTION_HANDLING = 9, -} MonoProfilerCodeBufferType; - -typedef enum { - MONO_GC_EVENT_PRE_STOP_WORLD = 6, - /** - * When this event arrives, the GC and suspend locks are acquired. - */ - MONO_GC_EVENT_PRE_STOP_WORLD_LOCKED = 10, - MONO_GC_EVENT_POST_STOP_WORLD = 7, - MONO_GC_EVENT_START = 0, - MONO_GC_EVENT_END = 5, - MONO_GC_EVENT_PRE_START_WORLD = 8, - /** - * When this event arrives, the GC and suspend locks are released. - */ - MONO_GC_EVENT_POST_START_WORLD_UNLOCKED = 11, - MONO_GC_EVENT_POST_START_WORLD = 9, -} MonoProfilerGCEvent; - -MONO_END_DECLS - -#endif /* _MONO_PROFILER_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/reflection-functions.h b/Prism/vendor/mono/include/mono/metadata/details/reflection-functions.h deleted file mode 100644 index 718db5e..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/reflection-functions.h +++ /dev/null @@ -1,64 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY int, mono_reflection_parse_type, (char *name, MonoTypeNameParse *info)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType*, mono_reflection_get_type, (MonoImage* image, MonoTypeNameParse *info, mono_bool ignorecase, mono_bool *type_resolve)) -MONO_API_FUNCTION(void, mono_reflection_free_type_info, (MonoTypeNameParse *info)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType*, mono_reflection_type_from_name, (char *name, MonoImage *image)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY uint32_t, mono_reflection_get_token, (MonoObject *obj)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionAssembly*, mono_assembly_get_object, (MonoDomain *domain, MonoAssembly *assembly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionModule*, mono_module_get_object, (MonoDomain *domain, MonoImage *image)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionModule*, mono_module_file_get_object, (MonoDomain *domain, MonoImage *image, int table_index)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionType*, mono_type_get_object, (MonoDomain *domain, MonoType *type)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionMethod*, mono_method_get_object, (MonoDomain *domain, MonoMethod *method, MonoClass *refclass)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionField*, mono_field_get_object, (MonoDomain *domain, MonoClass *klass, MonoClassField *field)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionProperty*, mono_property_get_object, (MonoDomain *domain, MonoClass *klass, MonoProperty *property)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionEvent*, mono_event_get_object, (MonoDomain *domain, MonoClass *klass, MonoEvent *event)) -/* note: this one is slightly different: we keep the whole array of params in the cache */ -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray*, mono_param_get_objects, (MonoDomain *domain, MonoMethod *method)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoReflectionMethodBody*, mono_method_body_get_object, (MonoDomain *domain, MonoMethod *method)) - -MONO_API_FUNCTION(MonoObject *, mono_get_dbnull_object, (MonoDomain *domain)) - -MONO_API_FUNCTION(MonoArray*, mono_reflection_get_custom_attrs_by_type, (MonoObject *obj, MonoClass *attr_klass, MonoError *error)) -MONO_API_FUNCTION(MonoArray*, mono_reflection_get_custom_attrs, (MonoObject *obj)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray*, mono_reflection_get_custom_attrs_data, (MonoObject *obj)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray*, mono_reflection_get_custom_attrs_blob, (MonoReflectionAssembly *assembly, MonoObject *ctor, MonoArray *ctorArgs, MonoArray *properties, MonoArray *porpValues, MonoArray *fields, MonoArray* fieldValues)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_reflection_get_custom_attrs_info, (MonoObject *obj)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoArray*, mono_custom_attrs_construct, (MonoCustomAttrInfo *cinfo)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_custom_attrs_from_index, (MonoImage *image, uint32_t idx)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_custom_attrs_from_method, (MonoMethod *method)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_custom_attrs_from_class, (MonoClass *klass)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_custom_attrs_from_assembly, (MonoAssembly *assembly)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_custom_attrs_from_property, (MonoClass *klass, MonoProperty *property)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_custom_attrs_from_event, (MonoClass *klass, MonoEvent *event)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_custom_attrs_from_field, (MonoClass *klass, MonoClassField *field)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoCustomAttrInfo*, mono_custom_attrs_from_param, (MonoMethod *method, uint32_t param)) -MONO_API_FUNCTION(mono_bool, mono_custom_attrs_has_attr, (MonoCustomAttrInfo *ainfo, MonoClass *attr_klass)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoObject*, mono_custom_attrs_get_attr, (MonoCustomAttrInfo *ainfo, MonoClass *attr_klass)) -MONO_API_FUNCTION(void, mono_custom_attrs_free, (MonoCustomAttrInfo *ainfo)) - - -MONO_API_FUNCTION(uint32_t, mono_declsec_flags_from_method, (MonoMethod *method)) -MONO_API_FUNCTION(uint32_t, mono_declsec_flags_from_class, (MonoClass *klass)) -MONO_API_FUNCTION(uint32_t, mono_declsec_flags_from_assembly, (MonoAssembly *assembly)) - -MONO_API_FUNCTION(MonoBoolean, mono_declsec_get_demands, (MonoMethod *callee, MonoDeclSecurityActions* demands)) -MONO_API_FUNCTION(MonoBoolean, mono_declsec_get_linkdemands, (MonoMethod *callee, MonoDeclSecurityActions* klass, MonoDeclSecurityActions* cmethod)) -MONO_API_FUNCTION(MonoBoolean, mono_declsec_get_inheritdemands_class, (MonoClass *klass, MonoDeclSecurityActions* demands)) -MONO_API_FUNCTION(MonoBoolean, mono_declsec_get_inheritdemands_method, (MonoMethod *callee, MonoDeclSecurityActions* demands)) - -MONO_API_FUNCTION(MonoBoolean, mono_declsec_get_method_action, (MonoMethod *method, uint32_t action, MonoDeclSecurityEntry *entry)) -MONO_API_FUNCTION(MonoBoolean, mono_declsec_get_class_action, (MonoClass *klass, uint32_t action, MonoDeclSecurityEntry *entry)) -MONO_API_FUNCTION(MonoBoolean, mono_declsec_get_assembly_action, (MonoAssembly *assembly, uint32_t action, MonoDeclSecurityEntry *entry)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoType*, mono_reflection_type_get_type, (MonoReflectionType *reftype)) - -MONO_API_FUNCTION(MonoAssembly*, mono_reflection_assembly_get_assembly, (MonoReflectionAssembly *refassembly)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/reflection-types.h b/Prism/vendor/mono/include/mono/metadata/details/reflection-types.h deleted file mode 100644 index b2b680e..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/reflection-types.h +++ /dev/null @@ -1,88 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_REFLECTION_TYPES_H -#define _MONO_REFLECTION_TYPES_H - -#include -#include - -MONO_BEGIN_DECLS - -typedef struct MonoTypeNameParse MonoTypeNameParse; - -typedef struct { - MonoMethod *ctor; - uint32_t data_size; - const mono_byte* data; -} MonoCustomAttrEntry; - -typedef struct { - int num_attrs; - int cached; - MonoImage *image; - MonoCustomAttrEntry attrs [MONO_ZERO_LEN_ARRAY]; -} MonoCustomAttrInfo; - -#define MONO_SIZEOF_CUSTOM_ATTR_INFO (offsetof (MonoCustomAttrInfo, attrs)) - -/* - * Information which isn't in the MonoMethod structure is stored here for - * dynamic methods. - */ -typedef struct { - char **param_names; - MonoMarshalSpec **param_marshall; - MonoCustomAttrInfo **param_cattr; - uint8_t** param_defaults; - uint32_t *param_default_types; - char *dllentry, *dll; -} MonoReflectionMethodAux; - -typedef enum { - ResolveTokenError_OutOfRange, - ResolveTokenError_BadTable, - ResolveTokenError_Other -} MonoResolveTokenError; - -#define MONO_DECLSEC_ACTION_MIN 0x1 -#define MONO_DECLSEC_ACTION_MAX 0x12 - -enum { - MONO_DECLSEC_FLAG_REQUEST = 0x00000001, - MONO_DECLSEC_FLAG_DEMAND = 0x00000002, - MONO_DECLSEC_FLAG_ASSERT = 0x00000004, - MONO_DECLSEC_FLAG_DENY = 0x00000008, - MONO_DECLSEC_FLAG_PERMITONLY = 0x00000010, - MONO_DECLSEC_FLAG_LINKDEMAND = 0x00000020, - MONO_DECLSEC_FLAG_INHERITANCEDEMAND = 0x00000040, - MONO_DECLSEC_FLAG_REQUEST_MINIMUM = 0x00000080, - MONO_DECLSEC_FLAG_REQUEST_OPTIONAL = 0x00000100, - MONO_DECLSEC_FLAG_REQUEST_REFUSE = 0x00000200, - MONO_DECLSEC_FLAG_PREJIT_GRANT = 0x00000400, - MONO_DECLSEC_FLAG_PREJIT_DENY = 0x00000800, - MONO_DECLSEC_FLAG_NONCAS_DEMAND = 0x00001000, - MONO_DECLSEC_FLAG_NONCAS_LINKDEMAND = 0x00002000, - MONO_DECLSEC_FLAG_NONCAS_INHERITANCEDEMAND = 0x00004000, - MONO_DECLSEC_FLAG_LINKDEMAND_CHOICE = 0x00008000, - MONO_DECLSEC_FLAG_INHERITANCEDEMAND_CHOICE = 0x00010000, - MONO_DECLSEC_FLAG_DEMAND_CHOICE = 0x00020000 -}; - -/* this structure MUST be kept in synch with RuntimeDeclSecurityEntry - * located in /mcs/class/corlib/System.Security/SecurityFrame.cs */ -typedef struct { - char *blob; /* pointer to metadata blob */ - uint32_t size; /* size of the metadata blob */ - uint32_t index; -} MonoDeclSecurityEntry; - -typedef struct { - MonoDeclSecurityEntry demand; - MonoDeclSecurityEntry noncasdemand; - MonoDeclSecurityEntry demandchoice; -} MonoDeclSecurityActions; - -MONO_END_DECLS - -#endif /* _MONO_REFLECTION_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/sgen-bridge-functions.h b/Prism/vendor/mono/include/mono/metadata/details/sgen-bridge-functions.h deleted file mode 100644 index dc1c552..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/sgen-bridge-functions.h +++ /dev/null @@ -1,16 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -/* - * Note: This may be called at any time, but cannot be called concurrently - * with (during and on a separate thread from) sgen init. Callers are - * responsible for enforcing this. - */ -MONO_API_FUNCTION(void, mono_gc_register_bridge_callbacks, (MonoGCBridgeCallbacks *callbacks)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_gc_wait_for_bridge_processing, (void)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/sgen-bridge-types.h b/Prism/vendor/mono/include/mono/metadata/details/sgen-bridge-types.h deleted file mode 100644 index cdb0be9..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/sgen-bridge-types.h +++ /dev/null @@ -1,55 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_SGEN_BRIDGE_TYPES_H -#define _MONO_SGEN_BRIDGE_TYPES_H - -#include - -MONO_BEGIN_DECLS - -enum { - SGEN_BRIDGE_VERSION = 5 -}; - -typedef enum { - /* Instances of this class should be scanned when computing the transitive dependency among bridges. E.g. List*/ - GC_BRIDGE_TRANSPARENT_CLASS, - /* Instances of this class should not be scanned when computing the transitive dependency among bridges. E.g. String*/ - GC_BRIDGE_OPAQUE_CLASS, - /* Instances of this class should be bridged and have their dependency computed. */ - GC_BRIDGE_TRANSPARENT_BRIDGE_CLASS, - /* Instances of this class should be bridged but no dependencies should not be calculated. */ - GC_BRIDGE_OPAQUE_BRIDGE_CLASS, -} MonoGCBridgeObjectKind; - -typedef struct { - mono_bool is_alive; /* to be set by the cross reference callback */ - int num_objs; - MonoObject *objs [MONO_ZERO_LEN_ARRAY]; -} MonoGCBridgeSCC; - -typedef struct { - int src_scc_index; - int dst_scc_index; -} MonoGCBridgeXRef; - -typedef struct { - int bridge_version; - /* - * Tells the runtime which classes to even consider when looking for - * bridged objects. If subclasses are to be considered as well, the - * subclass check must be done in the callback. - */ - MonoGCBridgeObjectKind (*bridge_class_kind) (MonoClass *klass); - /* - * This is only called on objects for whose classes - * `bridge_class_kind()` returned `XXX_BRIDGE_CLASS`. - */ - mono_bool (*is_bridge_object) (MonoObject *object); - void (*cross_references) (int num_sccs, MonoGCBridgeSCC **sccs, int num_xrefs, MonoGCBridgeXRef *xrefs); -} MonoGCBridgeCallbacks; - -MONO_END_DECLS - -#endif /* _MONO_SGEN_BRIDGE_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/details/threads-functions.h b/Prism/vendor/mono/include/mono/metadata/details/threads-functions.h deleted file mode 100644 index 9fb3031..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/threads-functions.h +++ /dev/null @@ -1,42 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(void, mono_thread_init, (MonoThreadStartCB start_cb, MonoThreadAttachCB attach_cb)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_thread_cleanup, (void)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_thread_manage, (void)) - -MONO_API_FUNCTION(MonoThread *, mono_thread_current, (void)) - -MONO_API_FUNCTION(void, mono_thread_set_main, (MonoThread *thread)) -MONO_API_FUNCTION(MonoThread *, mono_thread_get_main, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_thread_stop, (MonoThread *thread)) - -MONO_API_FUNCTION(void, mono_thread_new_init, (intptr_t tid, void* stack_start, void* func)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_thread_create, (MonoDomain *domain, void* func, void* arg)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY MonoThread *, mono_thread_attach, (MonoDomain *domain)) -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_thread_detach, (MonoThread *thread)) -MONO_API_FUNCTION(void, mono_thread_exit, (void)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_threads_attach_tools_thread, (void)) - -MONO_API_FUNCTION(char *, mono_thread_get_name_utf8, (MonoThread *thread)) -MONO_API_FUNCTION(int32_t, mono_thread_get_managed_id, (MonoThread *thread)) - -MONO_API_FUNCTION(void, mono_thread_set_manage_callback, (MonoThread *thread, MonoThreadManageCallback func)) - -MONO_API_FUNCTION(void, mono_threads_set_default_stacksize, (uint32_t stacksize)) -MONO_API_FUNCTION(uint32_t, mono_threads_get_default_stacksize, (void)) - -MONO_API_FUNCTION(void, mono_threads_request_thread_dump, (void)) - -MONO_API_FUNCTION(mono_bool, mono_thread_is_foreign, (MonoThread *thread)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_thread_detach_if_exiting, (void)) diff --git a/Prism/vendor/mono/include/mono/metadata/details/threads-types.h b/Prism/vendor/mono/include/mono/metadata/details/threads-types.h deleted file mode 100644 index d79d0ab..0000000 --- a/Prism/vendor/mono/include/mono/metadata/details/threads-types.h +++ /dev/null @@ -1,18 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_METADATA_DETAILS_THREADS_TYPES_H -#define _MONO_METADATA_DETAILS_THREADS_TYPES_H - -#include -#include -#include - -MONO_BEGIN_DECLS - -/* This callback should return TRUE if the runtime must wait for the thread, FALSE otherwise */ -typedef mono_bool (*MonoThreadManageCallback) (MonoThread* thread); - -MONO_END_DECLS - -#endif /* _MONO_METADATA_DETAILS_THREADS_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/metadata/environment.h b/Prism/vendor/mono/include/mono/metadata/environment.h index 0ae5c05..1fb5a57 100644 --- a/Prism/vendor/mono/include/mono/metadata/environment.h +++ b/Prism/vendor/mono/include/mono/metadata/environment.h @@ -15,9 +15,8 @@ MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API int32_t mono_environment_exitcode_get (void); +MONO_API void mono_environment_exitcode_set (int32_t value); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/exception.h b/Prism/vendor/mono/include/mono/metadata/exception.h index 25caa38..721dd49 100644 --- a/Prism/vendor/mono/include/mono/metadata/exception.h +++ b/Prism/vendor/mono/include/mono/metadata/exception.h @@ -5,14 +5,172 @@ #ifndef _MONO_METADATA_EXCEPTION_H_ #define _MONO_METADATA_EXCEPTION_H_ -#include +#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API MonoException * +mono_exception_from_name (MonoImage *image, + const char* name_space, + const char *name); +MONO_API MonoException * +mono_exception_from_token (MonoImage *image, uint32_t token); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_exception_from_name_two_strings (MonoImage *image, const char *name_space, + const char *name, MonoString *a1, MonoString *a2); + +MONO_API MonoException * +mono_exception_from_name_msg (MonoImage *image, const char *name_space, + const char *name, const char *msg); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_exception_from_token_two_strings (MonoImage *image, uint32_t token, + MonoString *a1, MonoString *a2); + +MONO_API MonoException * +mono_exception_from_name_domain (MonoDomain *domain, MonoImage *image, + const char* name_space, + const char *name); + +MONO_API MonoException * +mono_get_exception_divide_by_zero (void); + +MONO_API MonoException * +mono_get_exception_security (void); + +MONO_API MonoException * +mono_get_exception_arithmetic (void); + +MONO_API MonoException * +mono_get_exception_overflow (void); + +MONO_API MonoException * +mono_get_exception_null_reference (void); + +MONO_API MonoException * +mono_get_exception_execution_engine (const char *msg); + +MONO_API MonoException * +mono_get_exception_thread_abort (void); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_thread_state (const char *msg); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_thread_interrupted (void); + +MONO_API MonoException * +mono_get_exception_serialization (const char *msg); + +MONO_API MonoException * +mono_get_exception_invalid_cast (void); + +MONO_API MonoException * +mono_get_exception_invalid_operation (const char *msg); + +MONO_API MonoException * +mono_get_exception_index_out_of_range (void); + +MONO_API MonoException * +mono_get_exception_array_type_mismatch (void); + +MONO_API MonoException * +mono_get_exception_type_load (MonoString *class_name, char *assembly_name); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_missing_method (const char *class_name, const char *member_name); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_missing_field (const char *class_name, const char *member_name); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_not_implemented (const char *msg); + +MONO_API MonoException * +mono_get_exception_not_supported (const char *msg); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoException* +mono_get_exception_argument_null (const char *arg); + +MONO_API MonoException * +mono_get_exception_argument (const char *arg, const char *msg); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_argument_out_of_range (const char *arg); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_io (const char *msg); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_file_not_found (MonoString *fname); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_file_not_found2 (const char *msg, MonoString *fname); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_type_initialization (const char *type_name, MonoException *inner); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_synchronization_lock (const char *msg); + +MONO_API MonoException * +mono_get_exception_cannot_unload_appdomain (const char *msg); + +MONO_API MonoException * +mono_get_exception_appdomain_unloaded (void); + +MONO_API MonoException * +mono_get_exception_bad_image_format (const char *msg); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_bad_image_format2 (const char *msg, MonoString *fname); + +MONO_API MonoException * +mono_get_exception_stack_overflow (void); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_out_of_memory (void); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_field_access (void); + +MONO_API MonoException * +mono_get_exception_method_access (void); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_reflection_type_load (MonoArray *types, MonoArray *exceptions); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoException * +mono_get_exception_runtime_wrapped (MonoObject *wrapped_exception); + +/* Installs a function which is called when the runtime encounters an unhandled exception. + * This hook isn't expected to return. + * If no hook has been installed, the runtime will print a message before aborting. + */ +typedef void (*MonoUnhandledExceptionFunc) (MonoObject *exc, void *user_data); +MONO_API void mono_install_unhandled_exception_hook (MonoUnhandledExceptionFunc func, void *user_data); void mono_invoke_unhandled_exception_hook (MonoObject *exc); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/image.h b/Prism/vendor/mono/include/mono/metadata/image.h index 5dd28b8..1d8fd9e 100644 --- a/Prism/vendor/mono/include/mono/metadata/image.h +++ b/Prism/vendor/mono/include/mono/metadata/image.h @@ -2,18 +2,95 @@ * \file */ -#ifndef _MONONET_METADATA_IMAGE_H_ +#ifndef _MONONET_METADATA_IMAGE_H_ #define _MONONET_METADATA_IMAGE_H_ -#include +#include +#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef struct _MonoAssembly MonoAssembly; +typedef struct _MonoAssemblyName MonoAssemblyName; +typedef struct _MonoTableInfo MonoTableInfo; -mono_bool mono_has_pdb_checksum (char *raw_data, uint32_t raw_data_len); +typedef enum { + MONO_IMAGE_OK, + MONO_IMAGE_ERROR_ERRNO, + MONO_IMAGE_MISSING_ASSEMBLYREF, + MONO_IMAGE_IMAGE_INVALID +} MonoImageOpenStatus; + +MONO_API void mono_images_init (void); +MONO_API void mono_images_cleanup (void); + +MONO_API MonoImage *mono_image_open (const char *fname, + MonoImageOpenStatus *status); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_image_open_full (const char *fname, + MonoImageOpenStatus *status, mono_bool refonly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_pe_file_open (const char *fname, + MonoImageOpenStatus *status); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_image_open_from_data (char *data, uint32_t data_len, mono_bool need_copy, + MonoImageOpenStatus *status); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_image_open_from_data_full (char *data, uint32_t data_len, mono_bool need_copy, + MonoImageOpenStatus *status, mono_bool refonly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_image_open_from_data_with_name (char *data, uint32_t data_len, mono_bool need_copy, + MonoImageOpenStatus *status, mono_bool refonly, const char *name); +MONO_API void mono_image_fixup_vtable (MonoImage *image); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_image_loaded (const char *name); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_image_loaded_full (const char *name, mono_bool refonly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_image_loaded_by_guid (const char *guid); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoImage *mono_image_loaded_by_guid_full (const char *guid, mono_bool refonly); +MONO_API void mono_image_init (MonoImage *image); +MONO_API void mono_image_close (MonoImage *image); +MONO_API void mono_image_addref (MonoImage *image); +MONO_API const char *mono_image_strerror (MonoImageOpenStatus status); + +MONO_API int mono_image_ensure_section (MonoImage *image, + const char *section); +MONO_API int mono_image_ensure_section_idx (MonoImage *image, + int section); + +MONO_API uint32_t mono_image_get_entry_point (MonoImage *image); +MONO_API const char *mono_image_get_resource (MonoImage *image, uint32_t offset, uint32_t *size); +MONO_API MONO_RT_EXTERNAL_ONLY MonoImage* mono_image_load_file_for_image (MonoImage *image, int fileidx); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoImage* mono_image_load_module (MonoImage *image, int idx); + +MONO_API const char* mono_image_get_name (MonoImage *image); +MONO_API const char* mono_image_get_filename (MonoImage *image); +MONO_API const char * mono_image_get_guid (MonoImage *image); +MONO_API MonoAssembly* mono_image_get_assembly (MonoImage *image); +MONO_API mono_bool mono_image_is_dynamic (MonoImage *image); +MONO_API char* mono_image_rva_map (MonoImage *image, uint32_t rva); + +MONO_API const MonoTableInfo *mono_image_get_table_info (MonoImage *image, int table_id); +MONO_API int mono_image_get_table_rows (MonoImage *image, int table_id); +MONO_API int mono_table_info_get_rows (const MonoTableInfo *table); + +/* This actually returns a MonoPEResourceDataEntry *, but declaring it + * causes an include file loop. + */ +MONO_API void* mono_image_lookup_resource (MonoImage *image, uint32_t res_id, + uint32_t lang_id, mono_unichar2 *name); + +MONO_API const char* mono_image_get_public_key (MonoImage *image, uint32_t *size); +MONO_API const char* mono_image_get_strong_name (MonoImage *image, uint32_t *size); +MONO_API uint32_t mono_image_strong_name_position (MonoImage *image, uint32_t *size); +MONO_API void mono_image_add_to_name_cache (MonoImage *image, + const char *nspace, const char *name, uint32_t idx); +MONO_API mono_bool mono_image_has_authenticode_entry (MonoImage *image); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/loader.h b/Prism/vendor/mono/include/mono/metadata/loader.h index bb6b53c..42c8928 100644 --- a/Prism/vendor/mono/include/mono/metadata/loader.h +++ b/Prism/vendor/mono/include/mono/metadata/loader.h @@ -5,13 +5,103 @@ #ifndef _MONO_METADATA_LOADER_H_ #define _MONO_METADATA_LOADER_H_ 1 -#include +#include +#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef mono_bool (*MonoStackWalk) (MonoMethod *method, int32_t native_offset, int32_t il_offset, mono_bool managed, void* data); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod * +mono_get_method (MonoImage *image, uint32_t token, MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod * +mono_get_method_full (MonoImage *image, uint32_t token, MonoClass *klass, + MonoGenericContext *context); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod * +mono_get_method_constrained (MonoImage *image, uint32_t token, MonoClass *constrained_class, + MonoGenericContext *context, MonoMethod **cil_method); + +MONO_API void +mono_free_method (MonoMethod *method); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodSignature* +mono_method_get_signature_full (MonoMethod *method, MonoImage *image, uint32_t token, + MonoGenericContext *context); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodSignature* +mono_method_get_signature (MonoMethod *method, MonoImage *image, uint32_t token); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodSignature* +mono_method_signature (MonoMethod *method); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodHeader* +mono_method_get_header (MonoMethod *method); + +MONO_API const char* +mono_method_get_name (MonoMethod *method); + +MONO_API MonoClass* +mono_method_get_class (MonoMethod *method); + +MONO_API uint32_t +mono_method_get_token (MonoMethod *method); + +MONO_API uint32_t +mono_method_get_flags (MonoMethod *method, uint32_t *iflags); + +MONO_API uint32_t +mono_method_get_index (MonoMethod *method); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_add_internal_call (const char *name, const void* method); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_dangerous_add_raw_internal_call (const char *name, const void* method); + +MONO_API void* +mono_lookup_internal_call (MonoMethod *method); + +MONO_API const char* +mono_lookup_icall_symbol (MonoMethod *m); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_dllmap_insert (MonoImage *assembly, const char *dll, const char *func, const char *tdll, const char *tfunc); + +MONO_API MONO_RT_EXTERNAL_ONLY void* +mono_lookup_pinvoke_call (MonoMethod *method, const char **exc_class, const char **exc_arg); + +MONO_API void +mono_method_get_param_names (MonoMethod *method, const char **names); + +MONO_API uint32_t +mono_method_get_param_token (MonoMethod *method, int idx); + +MONO_API void +mono_method_get_marshal_info (MonoMethod *method, MonoMarshalSpec **mspecs); + +MONO_API mono_bool +mono_method_has_marshal_info (MonoMethod *method); + +MONO_API MonoMethod* +mono_method_get_last_managed (void); + +MONO_API void +mono_stack_walk (MonoStackWalk func, void* user_data); + +/* Use this if the IL offset is not needed: it's faster */ +MONO_API void +mono_stack_walk_no_il (MonoStackWalk func, void* user_data); + +typedef mono_bool (*MonoStackWalkAsyncSafe) (MonoMethod *method, MonoDomain *domain, void *base_address, int offset, void* data); +MONO_API void +mono_stack_walk_async_safe (MonoStackWalkAsyncSafe func, void *initial_sig_context, void* user_data); + +MONO_API MonoMethodHeader* +mono_method_get_header_checked (MonoMethod *method, MonoError *error); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/metadata.h b/Prism/vendor/mono/include/mono/metadata/metadata.h index 928f38f..f6646d6 100644 --- a/Prism/vendor/mono/include/mono/metadata/metadata.h +++ b/Prism/vendor/mono/include/mono/metadata/metadata.h @@ -5,7 +5,13 @@ #ifndef __MONO_METADATA_H__ #define __MONO_METADATA_H__ -#include +#include + +#include +#include +#include +#include +#include MONO_BEGIN_DECLS @@ -18,6 +24,190 @@ MONO_BEGIN_DECLS #define MONO_CLASS_IS_IMPORT(c) ((mono_class_get_flags (c) & TYPE_ATTRIBUTE_IMPORT)) +typedef enum { + MONO_EXCEPTION_CLAUSE_NONE, + MONO_EXCEPTION_CLAUSE_FILTER, + MONO_EXCEPTION_CLAUSE_FINALLY, + MONO_EXCEPTION_CLAUSE_FAULT = 4 +} MonoExceptionEnum; + +typedef enum { + MONO_CALL_DEFAULT, + MONO_CALL_C, + MONO_CALL_STDCALL, + MONO_CALL_THISCALL, + MONO_CALL_FASTCALL, + MONO_CALL_VARARG +} MonoCallConvention; + +/* ECMA lamespec: the old spec had more info... */ +typedef enum { + MONO_NATIVE_BOOLEAN = 0x02, /* 4 bytes, 0 is false, != 0 is true */ + MONO_NATIVE_I1 = 0x03, + MONO_NATIVE_U1 = 0x04, + MONO_NATIVE_I2 = 0x05, + MONO_NATIVE_U2 = 0x06, + MONO_NATIVE_I4 = 0x07, + MONO_NATIVE_U4 = 0x08, + MONO_NATIVE_I8 = 0x09, + MONO_NATIVE_U8 = 0x0a, + MONO_NATIVE_R4 = 0x0b, + MONO_NATIVE_R8 = 0x0c, + MONO_NATIVE_CURRENCY = 0x0f, + MONO_NATIVE_BSTR = 0x13, /* prefixed length, Unicode */ + MONO_NATIVE_LPSTR = 0x14, /* ANSI, null terminated */ + MONO_NATIVE_LPWSTR = 0x15, /* UNICODE, null terminated */ + MONO_NATIVE_LPTSTR = 0x16, /* plattform dep., null terminated */ + MONO_NATIVE_BYVALTSTR = 0x17, + MONO_NATIVE_IUNKNOWN = 0x19, + MONO_NATIVE_IDISPATCH = 0x1a, + MONO_NATIVE_STRUCT = 0x1b, + MONO_NATIVE_INTERFACE = 0x1c, + MONO_NATIVE_SAFEARRAY = 0x1d, + MONO_NATIVE_BYVALARRAY = 0x1e, + MONO_NATIVE_INT = 0x1f, + MONO_NATIVE_UINT = 0x20, + MONO_NATIVE_VBBYREFSTR = 0x22, + MONO_NATIVE_ANSIBSTR = 0x23, /* prefixed length, ANSI */ + MONO_NATIVE_TBSTR = 0x24, /* prefixed length, plattform dep. */ + MONO_NATIVE_VARIANTBOOL = 0x25, + MONO_NATIVE_FUNC = 0x26, + MONO_NATIVE_ASANY = 0x28, + MONO_NATIVE_LPARRAY = 0x2a, + MONO_NATIVE_LPSTRUCT = 0x2b, + MONO_NATIVE_CUSTOM = 0x2c, + MONO_NATIVE_ERROR = 0x2d, + // TODO: MONO_NATIVE_IINSPECTABLE = 0x2e + // TODO: MONO_NATIVE_HSTRING = 0x2f + MONO_NATIVE_UTF8STR = 0x30, + MONO_NATIVE_MAX = 0x50 /* no info */ +} MonoMarshalNative; + +/* Used only in context of SafeArray */ +typedef enum { + MONO_VARIANT_EMPTY = 0x00, + MONO_VARIANT_NULL = 0x01, + MONO_VARIANT_I2 = 0x02, + MONO_VARIANT_I4 = 0x03, + MONO_VARIANT_R4 = 0x04, + MONO_VARIANT_R8 = 0x05, + MONO_VARIANT_CY = 0x06, + MONO_VARIANT_DATE = 0x07, + MONO_VARIANT_BSTR = 0x08, + MONO_VARIANT_DISPATCH = 0x09, + MONO_VARIANT_ERROR = 0x0a, + MONO_VARIANT_BOOL = 0x0b, + MONO_VARIANT_VARIANT = 0x0c, + MONO_VARIANT_UNKNOWN = 0x0d, + MONO_VARIANT_DECIMAL = 0x0e, + MONO_VARIANT_I1 = 0x10, + MONO_VARIANT_UI1 = 0x11, + MONO_VARIANT_UI2 = 0x12, + MONO_VARIANT_UI4 = 0x13, + MONO_VARIANT_I8 = 0x14, + MONO_VARIANT_UI8 = 0x15, + MONO_VARIANT_INT = 0x16, + MONO_VARIANT_UINT = 0x17, + MONO_VARIANT_VOID = 0x18, + MONO_VARIANT_HRESULT = 0x19, + MONO_VARIANT_PTR = 0x1a, + MONO_VARIANT_SAFEARRAY = 0x1b, + MONO_VARIANT_CARRAY = 0x1c, + MONO_VARIANT_USERDEFINED = 0x1d, + MONO_VARIANT_LPSTR = 0x1e, + MONO_VARIANT_LPWSTR = 0x1f, + MONO_VARIANT_RECORD = 0x24, + MONO_VARIANT_FILETIME = 0x40, + MONO_VARIANT_BLOB = 0x41, + MONO_VARIANT_STREAM = 0x42, + MONO_VARIANT_STORAGE = 0x43, + MONO_VARIANT_STREAMED_OBJECT = 0x44, + MONO_VARIANT_STORED_OBJECT = 0x45, + MONO_VARIANT_BLOB_OBJECT = 0x46, + MONO_VARIANT_CF = 0x47, + MONO_VARIANT_CLSID = 0x48, + MONO_VARIANT_VECTOR = 0x1000, + MONO_VARIANT_ARRAY = 0x2000, + MONO_VARIANT_BYREF = 0x4000 +} MonoMarshalVariant; + +typedef enum { + MONO_MARSHAL_CONV_NONE, + MONO_MARSHAL_CONV_BOOL_VARIANTBOOL, + MONO_MARSHAL_CONV_BOOL_I4, + MONO_MARSHAL_CONV_STR_BSTR, + MONO_MARSHAL_CONV_STR_LPSTR, + MONO_MARSHAL_CONV_LPSTR_STR, + MONO_MARSHAL_CONV_LPTSTR_STR, + MONO_MARSHAL_CONV_STR_LPWSTR, + MONO_MARSHAL_CONV_LPWSTR_STR, + MONO_MARSHAL_CONV_STR_LPTSTR, + MONO_MARSHAL_CONV_STR_ANSIBSTR, + MONO_MARSHAL_CONV_STR_TBSTR, + MONO_MARSHAL_CONV_STR_BYVALSTR, + MONO_MARSHAL_CONV_STR_BYVALWSTR, + MONO_MARSHAL_CONV_SB_LPSTR, + MONO_MARSHAL_CONV_SB_LPTSTR, + MONO_MARSHAL_CONV_SB_LPWSTR, + MONO_MARSHAL_CONV_LPSTR_SB, + MONO_MARSHAL_CONV_LPTSTR_SB, + MONO_MARSHAL_CONV_LPWSTR_SB, + MONO_MARSHAL_CONV_ARRAY_BYVALARRAY, + MONO_MARSHAL_CONV_ARRAY_BYVALCHARARRAY, + MONO_MARSHAL_CONV_ARRAY_SAVEARRAY, + MONO_MARSHAL_CONV_ARRAY_LPARRAY, + MONO_MARSHAL_FREE_LPARRAY, + MONO_MARSHAL_CONV_OBJECT_INTERFACE, + MONO_MARSHAL_CONV_OBJECT_IDISPATCH, + MONO_MARSHAL_CONV_OBJECT_IUNKNOWN, + MONO_MARSHAL_CONV_OBJECT_STRUCT, + MONO_MARSHAL_CONV_DEL_FTN, + MONO_MARSHAL_CONV_FTN_DEL, + MONO_MARSHAL_FREE_ARRAY, + MONO_MARSHAL_CONV_BSTR_STR, + MONO_MARSHAL_CONV_SAFEHANDLE, + MONO_MARSHAL_CONV_HANDLEREF, + MONO_MARSHAL_CONV_STR_UTF8STR, + MONO_MARSHAL_CONV_SB_UTF8STR, + MONO_MARSHAL_CONV_UTF8STR_STR, + MONO_MARSHAL_CONV_UTF8STR_SB, + MONO_MARSHAL_CONV_FIXED_BUFFER +} MonoMarshalConv; + +#define MONO_MARSHAL_CONV_INVALID ((MonoMarshalConv)-1) + +typedef struct { + MonoMarshalNative native; + union { + struct { + MonoMarshalNative elem_type; + int32_t num_elem; /* -1 if not set */ + int16_t param_num; /* -1 if not set */ + int16_t elem_mult; /* -1 if not set */ + } array_data; + struct { + char *custom_name; + char *cookie; + MonoImage *image; + } custom_data; + struct { + MonoMarshalVariant elem_type; + int32_t num_elem; + } safearray_data; + } data; +} MonoMarshalSpec; + +MONO_API void mono_metadata_init (void); + +MONO_API void mono_metadata_decode_row (const MonoTableInfo *t, + int idx, + uint32_t *res, + int res_size); + +MONO_API uint32_t mono_metadata_decode_row_col (const MonoTableInfo *t, + int idx, + unsigned int col); + /* * This macro is used to extract the size of the table encoded in * the size_bitfield of MonoTableInfo. @@ -25,6 +215,63 @@ MONO_BEGIN_DECLS #define mono_metadata_table_size(bitfield,table) ((((bitfield) >> ((table)*2)) & 0x3) + 1) #define mono_metadata_table_count(bitfield) ((bitfield) >> 24) +MONO_API int mono_metadata_compute_size (MonoImage *meta, + int tableindex, + uint32_t *result_bitfield); + +/* + * + */ +MONO_API const char *mono_metadata_locate (MonoImage *meta, int table, int idx); +MONO_API const char *mono_metadata_locate_token (MonoImage *meta, uint32_t token); + +MONO_API const char *mono_metadata_string_heap (MonoImage *meta, uint32_t table_index); +MONO_API const char *mono_metadata_blob_heap (MonoImage *meta, uint32_t table_index); +MONO_API const char *mono_metadata_user_string (MonoImage *meta, uint32_t table_index); +MONO_API const char *mono_metadata_guid_heap (MonoImage *meta, uint32_t table_index); + +MONO_API uint32_t mono_metadata_typedef_from_field (MonoImage *meta, uint32_t table_index); +MONO_API uint32_t mono_metadata_typedef_from_method (MonoImage *meta, uint32_t table_index); +MONO_API uint32_t mono_metadata_nested_in_typedef (MonoImage *meta, uint32_t table_index); +MONO_API uint32_t mono_metadata_nesting_typedef (MonoImage *meta, uint32_t table_index, uint32_t start_index); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoClass** mono_metadata_interfaces_from_typedef (MonoImage *meta, uint32_t table_index, unsigned int *count); + +MONO_API uint32_t mono_metadata_events_from_typedef (MonoImage *meta, uint32_t table_index, unsigned int *end_idx); +MONO_API uint32_t mono_metadata_methods_from_event (MonoImage *meta, uint32_t table_index, unsigned int *end); +MONO_API uint32_t mono_metadata_properties_from_typedef (MonoImage *meta, uint32_t table_index, unsigned int *end); +MONO_API uint32_t mono_metadata_methods_from_property (MonoImage *meta, uint32_t table_index, unsigned int *end); +MONO_API uint32_t mono_metadata_packing_from_typedef (MonoImage *meta, uint32_t table_index, uint32_t *packing, uint32_t *size); +MONO_API const char* mono_metadata_get_marshal_info (MonoImage *meta, uint32_t idx, mono_bool is_field); +MONO_API uint32_t mono_metadata_custom_attrs_from_index (MonoImage *meta, uint32_t cattr_index); + +MONO_API MonoMarshalSpec *mono_metadata_parse_marshal_spec (MonoImage *image, const char *ptr); + +MONO_API void mono_metadata_free_marshal_spec (MonoMarshalSpec *spec); + +MONO_API uint32_t mono_metadata_implmap_from_method (MonoImage *meta, uint32_t method_idx); + +MONO_API void mono_metadata_field_info (MonoImage *meta, + uint32_t table_index, + uint32_t *offset, + uint32_t *rva, + MonoMarshalSpec **marshal_spec); + +MONO_API uint32_t mono_metadata_get_constant_index (MonoImage *meta, uint32_t token, uint32_t hint); + +/* + * Functions to extract information from the Blobs + */ +MONO_API uint32_t mono_metadata_decode_value (const char *ptr, + const char **rptr); +MONO_API int32_t mono_metadata_decode_signed_value (const char *ptr, const char **rptr); + +MONO_API uint32_t mono_metadata_decode_blob_size (const char *ptr, + const char **rptr); + +MONO_API void mono_metadata_encode_value (uint32_t value, char *bug, char **endbuf); + #define MONO_OFFSET_IN_CLAUSE(clause,offset) \ ((clause)->try_offset <= (offset) && (offset) < ((clause)->try_offset + (clause)->try_len)) #define MONO_OFFSET_IN_HANDLER(clause,offset) \ @@ -32,6 +279,200 @@ MONO_BEGIN_DECLS #define MONO_OFFSET_IN_FILTER(clause,offset) \ ((clause)->flags == MONO_EXCEPTION_CLAUSE_FILTER && (clause)->data.filter_offset <= (offset) && (offset) < ((clause)->handler_offset)) +typedef struct { + uint32_t flags; + uint32_t try_offset; + uint32_t try_len; + uint32_t handler_offset; + uint32_t handler_len; + union { + uint32_t filter_offset; + MonoClass *catch_class; + } data; +} MonoExceptionClause; + +typedef struct _MonoType MonoType; +typedef struct _MonoGenericInst MonoGenericInst; +typedef struct _MonoGenericClass MonoGenericClass; +typedef struct _MonoGenericContext MonoGenericContext; +typedef struct _MonoGenericContainer MonoGenericContainer; +typedef struct _MonoGenericParam MonoGenericParam; +typedef struct _MonoArrayType MonoArrayType; +typedef struct _MonoMethodSignature MonoMethodSignature; + +/* FIXME: Keeping this name alive for now, since it is part of the exposed API, even though no entrypoint uses it. */ +typedef struct invalid_name MonoGenericMethod; + +typedef struct { + unsigned int required : 1; + unsigned int token : 31; +} MonoCustomMod; + +typedef struct _MonoCustomModContainer { + uint8_t count; /* max 64 modifiers follow at the end */ + MonoImage *image; /* Image containing types in modifiers array */ + MonoCustomMod modifiers [1]; /* Actual length is count */ +} MonoCustomModContainer; + +struct _MonoArrayType { + MonoClass *eklass; + // Number of dimensions of the array + uint8_t rank; + + // Arrays recording known upper and lower index bounds for each dimension + uint8_t numsizes; + uint8_t numlobounds; + int *sizes; + int *lobounds; +}; + +typedef struct _MonoMethodHeader MonoMethodHeader; + +typedef enum { + MONO_PARSE_TYPE, + MONO_PARSE_MOD_TYPE, + MONO_PARSE_LOCAL, + MONO_PARSE_PARAM, + MONO_PARSE_RET, + MONO_PARSE_FIELD +} MonoParseTypeMode; + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_type_is_byref (MonoType *type); + +MONO_API MONO_RT_EXTERNAL_ONLY int +mono_type_get_type (MonoType *type); + +/* For MONO_TYPE_FNPTR */ +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodSignature* +mono_type_get_signature (MonoType *type); + +/* For MONO_TYPE_CLASS, VALUETYPE */ +MONO_API MONO_RT_EXTERNAL_ONLY MonoClass* +mono_type_get_class (MonoType *type); + +MONO_API MonoArrayType* +mono_type_get_array_type (MonoType *type); + +/* For MONO_TYPE_PTR */ +MONO_API MonoType* +mono_type_get_ptr_type (MonoType *type); + +MONO_API MonoClass* +mono_type_get_modifiers (MonoType *type, mono_bool *is_required, void **iter); + +MONO_API mono_bool mono_type_is_struct (MonoType *type); +MONO_API mono_bool mono_type_is_void (MonoType *type); +MONO_API mono_bool mono_type_is_pointer (MonoType *type); +MONO_API mono_bool mono_type_is_reference (MonoType *type); +MONO_API mono_bool mono_type_is_generic_parameter (MonoType *type); + +MONO_API MonoType* +mono_signature_get_return_type (MonoMethodSignature *sig); + +MONO_API MonoType* +mono_signature_get_params (MonoMethodSignature *sig, void **iter); + +MONO_API uint32_t +mono_signature_get_param_count (MonoMethodSignature *sig); + +MONO_API uint32_t +mono_signature_get_call_conv (MonoMethodSignature *sig); + +MONO_API int +mono_signature_vararg_start (MonoMethodSignature *sig); + +MONO_API mono_bool +mono_signature_is_instance (MonoMethodSignature *sig); + +MONO_API mono_bool +mono_signature_explicit_this (MonoMethodSignature *sig); + +MONO_API mono_bool +mono_signature_param_is_out (MonoMethodSignature *sig, int param_num); + +MONO_API uint32_t mono_metadata_parse_typedef_or_ref (MonoImage *m, + const char *ptr, + const char **rptr); +MONO_API int mono_metadata_parse_custom_mod (MonoImage *m, + MonoCustomMod *dest, + const char *ptr, + const char **rptr); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArrayType *mono_metadata_parse_array (MonoImage *m, + const char *ptr, + const char **rptr); +MONO_API void mono_metadata_free_array (MonoArrayType *array); +MONO_API MONO_RT_EXTERNAL_ONLY MonoType *mono_metadata_parse_type (MonoImage *m, + MonoParseTypeMode mode, + short opt_attrs, + const char *ptr, + const char **rptr); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoType *mono_metadata_parse_param (MonoImage *m, + const char *ptr, + const char **rptr); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoType *mono_metadata_parse_field_type (MonoImage *m, + short field_flags, + const char *ptr, + const char **rptr); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoType *mono_type_create_from_typespec (MonoImage *image, + uint32_t type_spec); +MONO_API void mono_metadata_free_type (MonoType *type); +MONO_API int mono_type_size (MonoType *type, + int *alignment); +MONO_API int mono_type_stack_size (MonoType *type, + int *alignment); + +MONO_API mono_bool mono_type_generic_inst_is_valuetype (MonoType *type); +MONO_API mono_bool mono_metadata_generic_class_is_valuetype (MonoGenericClass *gclass); + +MONO_API unsigned int mono_metadata_type_hash (MonoType *t1); +MONO_API mono_bool mono_metadata_type_equal (MonoType *t1, MonoType *t2); + +MONO_API MonoMethodSignature *mono_metadata_signature_alloc (MonoImage *image, uint32_t nparams); + +MONO_API MonoMethodSignature *mono_metadata_signature_dup (MonoMethodSignature *sig); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoMethodSignature *mono_metadata_parse_signature (MonoImage *image, + uint32_t token); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoMethodSignature *mono_metadata_parse_method_signature (MonoImage *m, + int def, + const char *ptr, + const char **rptr); +MONO_API void mono_metadata_free_method_signature (MonoMethodSignature *method); + +MONO_API mono_bool mono_metadata_signature_equal (MonoMethodSignature *sig1, + MonoMethodSignature *sig2); + +MONO_API unsigned int mono_signature_hash (MonoMethodSignature *sig); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoMethodHeader *mono_metadata_parse_mh (MonoImage *m, const char *ptr); +MONO_API void mono_metadata_free_mh (MonoMethodHeader *mh); + +/* MonoMethodHeader acccessors */ +MONO_API const unsigned char* +mono_method_header_get_code (MonoMethodHeader *header, uint32_t* code_size, uint32_t* max_stack); + +MONO_API MonoType** +mono_method_header_get_locals (MonoMethodHeader *header, uint32_t* num_locals, mono_bool *init_locals); + +MONO_API int +mono_method_header_get_num_clauses (MonoMethodHeader *header); + +MONO_API int +mono_method_header_get_clauses (MonoMethodHeader *header, MonoMethod *method, void **iter, MonoExceptionClause *clause); + +MONO_API uint32_t +mono_type_to_unmanaged (MonoType *type, MonoMarshalSpec *mspec, + mono_bool as_field, mono_bool unicode, MonoMarshalConv *conv); + /* * Makes a token based on a table and an index */ @@ -50,9 +491,24 @@ MONO_BEGIN_DECLS #define mono_metadata_token_code(token) ((token) & 0xff000000) -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API uint32_t mono_metadata_token_from_dor (uint32_t dor_index); + +MONO_API char *mono_guid_to_string (const uint8_t *guid); + +MONO_API char *mono_guid_to_string_minimal (const uint8_t *guid); + +MONO_API uint32_t mono_metadata_declsec_from_index (MonoImage *meta, uint32_t idx); + +MONO_API uint32_t mono_metadata_translate_token_index (MonoImage *image, int table, uint32_t idx); + +MONO_API void mono_metadata_decode_table_row (MonoImage *image, int table, + int idx, + uint32_t *res, + int res_size); + +MONO_API uint32_t mono_metadata_decode_table_row_col (MonoImage *image, int table, + int idx, + unsigned int col); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/mono-config.h b/Prism/vendor/mono/include/mono/metadata/mono-config.h index 32028fb..91cdccd 100644 --- a/Prism/vendor/mono/include/mono/metadata/mono-config.h +++ b/Prism/vendor/mono/include/mono/metadata/mono-config.h @@ -8,13 +8,29 @@ #ifndef __MONO_METADATA_CONFIG_H__ #define __MONO_METADATA_CONFIG_H__ -#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API const char *mono_config_get_os (void); +MONO_API const char *mono_config_get_cpu (void); +MONO_API const char *mono_config_get_wordsize (void); + +MONO_API const char* mono_get_config_dir (void); +MONO_API void mono_set_config_dir (const char *dir); + +MONO_API const char* mono_get_machine_config (void); + +MONO_API void mono_config_cleanup (void); +MONO_API void mono_config_parse (const char *filename); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_config_for_assembly (MonoImage *assembly); +MONO_API void mono_config_parse_memory (const char *buffer); + +MONO_API const char* mono_config_string_for_assembly_file (const char *filename); + +MONO_API void mono_config_set_server_mode (mono_bool server_mode); +MONO_API mono_bool mono_config_is_server_mode (void); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/mono-debug.h b/Prism/vendor/mono/include/mono/metadata/mono-debug.h index 95f7970..b9948b6 100644 --- a/Prism/vendor/mono/include/mono/metadata/mono-debug.h +++ b/Prism/vendor/mono/include/mono/metadata/mono-debug.h @@ -7,13 +7,225 @@ #ifndef __MONO_DEBUG_H__ #define __MONO_DEBUG_H__ -#include +#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef struct _MonoSymbolTable MonoSymbolTable; +typedef struct _MonoDebugDataTable MonoDebugDataTable; + +typedef struct _MonoSymbolFile MonoSymbolFile; +typedef struct _MonoPPDBFile MonoPPDBFile; + +typedef struct _MonoDebugHandle MonoDebugHandle; + +typedef struct _MonoDebugLineNumberEntry MonoDebugLineNumberEntry; + +typedef struct _MonoDebugVarInfo MonoDebugVarInfo; +typedef struct _MonoDebugMethodJitInfo MonoDebugMethodJitInfo; +typedef struct _MonoDebugMethodAddress MonoDebugMethodAddress; +typedef struct _MonoDebugMethodAddressList MonoDebugMethodAddressList; +typedef struct _MonoDebugClassEntry MonoDebugClassEntry; + +typedef struct _MonoDebugMethodInfo MonoDebugMethodInfo; +typedef struct _MonoDebugLocalsInfo MonoDebugLocalsInfo; +typedef struct _MonoDebugMethodAsyncInfo MonoDebugMethodAsyncInfo; +typedef struct _MonoDebugSourceLocation MonoDebugSourceLocation; + +typedef struct _MonoDebugList MonoDebugList; + +typedef enum { + MONO_DEBUG_FORMAT_NONE, + MONO_DEBUG_FORMAT_MONO, + /* Deprecated, the mdb debugger is not longer supported. */ + MONO_DEBUG_FORMAT_DEBUGGER +} MonoDebugFormat; + +/* + * NOTE: + * We intentionally do not use GList here since the debugger needs to know about + * the layout of the fields. +*/ +struct _MonoDebugList { + MonoDebugList *next; + const void* data; +}; + +struct _MonoSymbolTable { + uint64_t magic; + uint32_t version; + uint32_t total_size; + + /* + * Corlib and metadata info. + */ + MonoDebugHandle *corlib; + MonoDebugDataTable *global_data_table; + MonoDebugList *data_tables; + + /* + * The symbol files. + */ + MonoDebugList *symbol_files; +}; + +struct _MonoDebugHandle { + uint32_t index; + char *image_file; + MonoImage *image; + MonoDebugDataTable *type_table; + MonoSymbolFile *symfile; + MonoPPDBFile *ppdb; +}; + +struct _MonoDebugMethodJitInfo { + const mono_byte *code_start; + uint32_t code_size; + uint32_t prologue_end; + uint32_t epilogue_begin; + const mono_byte *wrapper_addr; + uint32_t num_line_numbers; + MonoDebugLineNumberEntry *line_numbers; + uint32_t has_var_info; + uint32_t num_params; + MonoDebugVarInfo *this_var; + MonoDebugVarInfo *params; + uint32_t num_locals; + MonoDebugVarInfo *locals; + MonoDebugVarInfo *gsharedvt_info_var; + MonoDebugVarInfo *gsharedvt_locals_var; +}; + +struct _MonoDebugMethodAddressList { + uint32_t size; + uint32_t count; + mono_byte data [MONO_ZERO_LEN_ARRAY]; +}; + +struct _MonoDebugSourceLocation { + char *source_file; + uint32_t row, column; + uint32_t il_offset; +}; + +MONO_API mono_bool mono_debug_enabled (void); + +/* + * These bits of the MonoDebugLocalInfo's "index" field are flags specifying + * where the variable is actually stored. + * + * See relocate_variable() in debug-symfile.c for more info. + */ +#define MONO_DEBUG_VAR_ADDRESS_MODE_FLAGS 0xf0000000 + +/* The variable is in register "index". */ +#define MONO_DEBUG_VAR_ADDRESS_MODE_REGISTER 0 + +/* The variable is at offset "offset" from register "index". */ +#define MONO_DEBUG_VAR_ADDRESS_MODE_REGOFFSET 0x10000000 + +/* The variable is in the two registers "offset" and "index". */ +#define MONO_DEBUG_VAR_ADDRESS_MODE_TWO_REGISTERS 0x20000000 + +/* The variable is dead. */ +#define MONO_DEBUG_VAR_ADDRESS_MODE_DEAD 0x30000000 + +/* Same as REGOFFSET, but do an indirection */ +#define MONO_DEBUG_VAR_ADDRESS_MODE_REGOFFSET_INDIR 0x40000000 + +/* gsharedvt local */ +#define MONO_DEBUG_VAR_ADDRESS_MODE_GSHAREDVT_LOCAL 0x50000000 + +/* variable is a vt address */ +#define MONO_DEBUG_VAR_ADDRESS_MODE_VTADDR 0x60000000 + +struct _MonoDebugVarInfo { + uint32_t index; + uint32_t offset; + uint32_t size; + uint32_t begin_scope; + uint32_t end_scope; + MonoType *type; +}; + +#define MONO_DEBUGGER_MAJOR_VERSION 81 +#define MONO_DEBUGGER_MINOR_VERSION 6 +#define MONO_DEBUGGER_MAGIC 0x7aff65af4253d427ULL + +MONO_API void mono_debug_init (MonoDebugFormat format); +MONO_API void mono_debug_open_image_from_memory (MonoImage *image, const mono_byte *raw_contents, int size); +MONO_API void mono_debug_cleanup (void); + +MONO_API void mono_debug_close_image (MonoImage *image); + +MONO_API void mono_debug_domain_unload (MonoDomain *domain); +MONO_API void mono_debug_domain_create (MonoDomain *domain); + +MONO_API MonoDebugMethodAddress * +mono_debug_add_method (MonoMethod *method, MonoDebugMethodJitInfo *jit, MonoDomain *domain); + +MONO_API void +mono_debug_remove_method (MonoMethod *method, MonoDomain *domain); + +MONO_API MonoDebugMethodInfo * +mono_debug_lookup_method (MonoMethod *method); + +MONO_API MonoDebugMethodAddressList * +mono_debug_lookup_method_addresses (MonoMethod *method); + +MONO_API MonoDebugMethodJitInfo* +mono_debug_find_method (MonoMethod *method, MonoDomain *domain); + +MONO_API MonoDebugHandle * +mono_debug_get_handle (MonoImage *image); + +MONO_API void +mono_debug_free_method_jit_info (MonoDebugMethodJitInfo *jit); + + +MONO_API void +mono_debug_add_delegate_trampoline (void* code, int size); + +MONO_API MonoDebugLocalsInfo* +mono_debug_lookup_locals (MonoMethod *method); + +MonoDebugMethodAsyncInfo* +mono_debug_lookup_method_async_debug_info (MonoMethod *method); + +// The intent here is really MONO_LLVM_INTERNAL but that is not necessarily available. +MONO_API +MonoDebugSourceLocation * +mono_debug_method_lookup_location (MonoDebugMethodInfo *minfo, int il_offset); + +/* + * Line number support. + */ + +MONO_API MonoDebugSourceLocation * +mono_debug_lookup_source_location (MonoMethod *method, uint32_t address, MonoDomain *domain); + +MONO_API int32_t +mono_debug_il_offset_from_address (MonoMethod *method, MonoDomain *domain, uint32_t native_offset); + +MONO_API void +mono_debug_free_source_location (MonoDebugSourceLocation *location); + +MONO_API char * +mono_debug_print_stack_frame (MonoMethod *method, uint32_t native_offset, MonoDomain *domain); + +/* + * Mono Debugger support functions + * + * These methods are used by the JIT while running inside the Mono Debugger. + */ + +MONO_API int mono_debugger_method_has_breakpoint (MonoMethod *method); +MONO_API int mono_debugger_insert_breakpoint (const char *method_name, mono_bool include_namespace); + +MONO_API void mono_set_is_debugger_attached (mono_bool attached); +MONO_API mono_bool mono_is_debugger_attached (void); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/mono-gc.h b/Prism/vendor/mono/include/mono/metadata/mono-gc.h index 1905f17..86111ac 100644 --- a/Prism/vendor/mono/include/mono/metadata/mono-gc.h +++ b/Prism/vendor/mono/include/mono/metadata/mono-gc.h @@ -6,13 +6,122 @@ #ifndef __METADATA_MONO_GC_H__ #define __METADATA_MONO_GC_H__ -#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef int (*MonoGCReferences) (MonoObject *obj, MonoClass *klass, uintptr_t size, uintptr_t num, MonoObject **refs, uintptr_t *offsets, void *data); + +/** + * This enum is used by the profiler API when reporting root registration. + */ +typedef enum { + /** + * Roots external to Mono. Embedders may only use this value. + */ + MONO_ROOT_SOURCE_EXTERNAL = 0, + /** + * Thread call stack. + * + * The \c key parameter is a thread ID as a \c uintptr_t. + */ + MONO_ROOT_SOURCE_STACK = 1, + /** + * Roots in the finalizer queue. This is a pseudo-root. + */ + MONO_ROOT_SOURCE_FINALIZER_QUEUE = 2, + /** + * Managed \c static variables. + * + * The \c key parameter is a \c MonoVTable pointer. + */ + MONO_ROOT_SOURCE_STATIC = 3, + /** + * Managed \c static variables with \c ThreadStaticAttribute. + * + * The \c key parameter is a thread ID as a \c uintptr_t. + */ + MONO_ROOT_SOURCE_THREAD_STATIC = 4, + /** + * Managed \c static variables with \c ContextStaticAttribute. + * + * The \c key parameter is a \c MonoAppContext pointer. + */ + MONO_ROOT_SOURCE_CONTEXT_STATIC = 5, + /** + * \c GCHandle structures. + */ + MONO_ROOT_SOURCE_GC_HANDLE = 6, + /** + * Roots in the just-in-time compiler. + */ + MONO_ROOT_SOURCE_JIT = 7, + /** + * Roots in the threading subsystem. + * + * The \c key parameter, if not \c NULL, is a thread ID as a \c uintptr_t. + */ + MONO_ROOT_SOURCE_THREADING = 8, + /** + * Roots in application domains. + * + * The \c key parameter, if not \c NULL, is a \c MonoDomain pointer. + */ + MONO_ROOT_SOURCE_DOMAIN = 9, + /** + * Roots in reflection code. + * + * The \c key parameter, if not \c NULL, is a \c MonoVTable pointer. + */ + MONO_ROOT_SOURCE_REFLECTION = 10, + /** + * Roots from P/Invoke or other marshaling infrastructure. + */ + MONO_ROOT_SOURCE_MARSHAL = 11, + /** + * Roots in the thread pool data structures. + */ + MONO_ROOT_SOURCE_THREAD_POOL = 12, + /** + * Roots in the debugger agent. + */ + MONO_ROOT_SOURCE_DEBUGGER = 13, + /** + * Roots in the runtime handle stack. This is a pseudo-root. + * + * The \c key parameter is a thread ID as a \c uintptr_t. + */ + MONO_ROOT_SOURCE_HANDLE = 14, + /** + * Roots in the ephemeron arrays. This is a pseudo-root. + */ + MONO_ROOT_SOURCE_EPHEMERON = 15, + /** + * Roots in the toggleref arrays. This is a pseudo-root. + */ + MONO_ROOT_SOURCE_TOGGLEREF = 16, +} MonoGCRootSource; + +typedef enum { + MONO_GC_HANDLE_TYPE_MIN = 0, + MONO_GC_HANDLE_WEAK = MONO_GC_HANDLE_TYPE_MIN, + MONO_GC_HANDLE_WEAK_TRACK_RESURRECTION, + MONO_GC_HANDLE_NORMAL, + MONO_GC_HANDLE_PINNED, + MONO_GC_HANDLE_TYPE_MAX, +} MonoGCHandleType; + +MONO_API void mono_gc_collect (int generation); +MONO_API int mono_gc_max_generation (void); +MONO_API int mono_gc_get_generation (MonoObject *object); +MONO_API int mono_gc_collection_count (int generation); +MONO_API int64_t mono_gc_get_used_size (void); +MONO_API int64_t mono_gc_get_heap_size (void); +MONO_API MonoBoolean mono_gc_pending_finalizers (void); +MONO_API void mono_gc_finalize_notify (void); +MONO_API int mono_gc_invoke_finalizers (void); +/* heap walking is only valid in the pre-stop-world event callback */ +MONO_API int mono_gc_walk_heap (int flags, MonoGCReferences callback, void *data); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/mono-private-unstable.h b/Prism/vendor/mono/include/mono/metadata/mono-private-unstable.h deleted file mode 100644 index a13e53e..0000000 --- a/Prism/vendor/mono/include/mono/metadata/mono-private-unstable.h +++ /dev/null @@ -1,28 +0,0 @@ -/** - * \file - * - * Private unstable APIs. - * - * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at - * any time. - * - */ - - -#ifndef __MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__ -#define __MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__ - -#include -#include - -#include - -MONO_BEGIN_DECLS - -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION - -MONO_END_DECLS - -#endif /*__MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__*/ diff --git a/Prism/vendor/mono/include/mono/metadata/object-forward.h b/Prism/vendor/mono/include/mono/metadata/object-forward.h index d8cca57..010dc8b 100644 --- a/Prism/vendor/mono/include/mono/metadata/object-forward.h +++ b/Prism/vendor/mono/include/mono/metadata/object-forward.h @@ -8,7 +8,7 @@ #ifndef __MONO_OBJECT_FORWARD_H__ #define __MONO_OBJECT_FORWARD_H__ -#include +#include typedef struct _MonoClass MonoClass; typedef struct _MonoImage MonoImage; diff --git a/Prism/vendor/mono/include/mono/metadata/object.h b/Prism/vendor/mono/include/mono/metadata/object.h index 359fa51..da19d3d 100644 --- a/Prism/vendor/mono/include/mono/metadata/object.h +++ b/Prism/vendor/mono/include/mono/metadata/object.h @@ -5,13 +5,41 @@ #ifndef _MONO_CLI_OBJECT_H_ #define _MONO_CLI_OBJECT_H_ -#include +#include +#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef struct _MonoString MONO_RT_MANAGED_ATTR MonoString; +typedef struct _MonoArray MONO_RT_MANAGED_ATTR MonoArray; +typedef struct _MonoReflectionMethod MONO_RT_MANAGED_ATTR MonoReflectionMethod; +typedef struct _MonoReflectionModule MONO_RT_MANAGED_ATTR MonoReflectionModule; +typedef struct _MonoReflectionField MONO_RT_MANAGED_ATTR MonoReflectionField; +typedef struct _MonoReflectionProperty MONO_RT_MANAGED_ATTR MonoReflectionProperty; +typedef struct _MonoReflectionEvent MONO_RT_MANAGED_ATTR MonoReflectionEvent; +typedef struct _MonoReflectionType MONO_RT_MANAGED_ATTR MonoReflectionType; +typedef struct _MonoDelegate MONO_RT_MANAGED_ATTR MonoDelegate; +typedef struct _MonoThreadsSync MonoThreadsSync; +#ifdef ENABLE_NETCORE +typedef struct _MonoInternalThread MONO_RT_MANAGED_ATTR MonoThread; +#else +typedef struct _MonoThread MONO_RT_MANAGED_ATTR MonoThread; +#endif +typedef struct _MonoDynamicAssembly MonoDynamicAssembly; +typedef struct _MonoDynamicImage MonoDynamicImage; +typedef struct _MonoReflectionMethodBody MONO_RT_MANAGED_ATTR MonoReflectionMethodBody; +typedef struct _MonoAppContext MONO_RT_MANAGED_ATTR MonoAppContext; + +struct _MonoObject { + MonoVTable *vtable; + MonoThreadsSync *synchronisation; +}; + +typedef MonoObject* (*MonoInvokeFunc) (MonoMethod *method, void *obj, void **params, MonoObject **exc, MonoError *error); +typedef void* (*MonoCompileFunc) (MonoMethod *method); +typedef void (*MonoMainThreadFunc) (void* user_data); #define MONO_OBJECT_SETREF(obj,fieldname,value) do { \ mono_gc_wbarrier_set_field ((MonoObject*)(obj), &((obj)->fieldname), (MonoObject*)value); \ @@ -24,7 +52,7 @@ MONO_BEGIN_DECLS } while (0) #define mono_array_addr(array,type,index) ((type*)mono_array_addr_with_size ((array), sizeof (type), (index))) -#define mono_array_get(array,type,index) ( *(type*)mono_array_addr ((array), type, (index)) ) +#define mono_array_get(array,type,index) ( *(type*)mono_array_addr ((array), type, (index)) ) #define mono_array_set(array,type,index,value) \ do { \ type *__p = (type *) mono_array_addr ((array), type, (index)); \ @@ -43,6 +71,333 @@ MONO_BEGIN_DECLS mono_gc_wbarrier_arrayref_copy (__p, __s, (count)); \ } while (0) +MONO_API MONO_RT_EXTERNAL_ONLY mono_unichar2 *mono_string_chars (MonoString *s); +MONO_API MONO_RT_EXTERNAL_ONLY int mono_string_length (MonoString *s); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject * +mono_object_new (MonoDomain *domain, MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoObject * +mono_object_new_specific (MonoVTable *vtable); + +/* can be used for classes without finalizer in non-profiling mode */ +MONO_API MONO_RT_EXTERNAL_ONLY +MonoObject * +mono_object_new_fast (MonoVTable *vtable); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoObject * +mono_object_new_alloc_specific (MonoVTable *vtable); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoObject * +mono_object_new_from_token (MonoDomain *domain, MonoImage *image, uint32_t token); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArray* +mono_array_new (MonoDomain *domain, MonoClass *eclass, uintptr_t n); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArray* +mono_array_new_full (MonoDomain *domain, MonoClass *array_class, + uintptr_t *lengths, intptr_t *lower_bounds); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArray * +mono_array_new_specific (MonoVTable *vtable, uintptr_t n); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArray* +mono_array_clone (MonoArray *array); + +MONO_API MONO_RT_EXTERNAL_ONLY char* +mono_array_addr_with_size (MonoArray *array, int size, uintptr_t idx); + +MONO_API MONO_RT_EXTERNAL_ONLY uintptr_t +mono_array_length (MonoArray *array); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoString* +mono_string_empty (MonoDomain *domain); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString* +mono_string_empty_wrapper (void); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString* +mono_string_new_utf16 (MonoDomain *domain, const mono_unichar2 *text, int32_t len); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString* +mono_string_new_size (MonoDomain *domain, int32_t len); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString* +mono_ldstr (MonoDomain *domain, MonoImage *image, uint32_t str_index); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoString* +mono_string_is_interned (MonoString *str); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString* +mono_string_intern (MonoString *str); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString* +mono_string_new (MonoDomain *domain, const char *text); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoString* +mono_string_new_wrapper (const char *text); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString* +mono_string_new_len (MonoDomain *domain, const char *text, unsigned int length); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString* +mono_string_new_utf32 (MonoDomain *domain, const mono_unichar4 *text, int32_t len); + +MONO_API MONO_RT_EXTERNAL_ONLY +char * +mono_string_to_utf8 (MonoString *string_obj); + +MONO_API MONO_RT_EXTERNAL_ONLY char * +mono_string_to_utf8_checked (MonoString *string_obj, MonoError *error); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_unichar2 * +mono_string_to_utf16 (MonoString *string_obj); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_unichar4 * +mono_string_to_utf32 (MonoString *string_obj); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoString * +mono_string_from_utf16 (/*const*/ mono_unichar2 *data); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoString * +mono_string_from_utf32 (/*const*/ mono_unichar4 *data); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_string_equal (MonoString *s1, MonoString *s2); + +MONO_API MONO_RT_EXTERNAL_ONLY unsigned int +mono_string_hash (MonoString *s); + +MONO_API MONO_RT_EXTERNAL_ONLY int +mono_object_hash (MonoObject* obj); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoString * +mono_object_to_string (MonoObject *obj, MonoObject **exc); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject * +mono_value_box (MonoDomain *domain, MonoClass *klass, void* val); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_value_copy (void* dest, /*const*/ void* src, MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_value_copy_array (MonoArray *dest, int dest_idx, void* src, int count); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoVTable* +mono_object_get_vtable (MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoDomain* +mono_object_get_domain (MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoClass* +mono_object_get_class (MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY void* +mono_object_unbox (MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject * +mono_object_clone (MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject * +mono_object_isinst (MonoObject *obj, MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject * +mono_object_isinst_mbyref (MonoObject *obj, MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject * +mono_object_castclass_mbyref (MonoObject *obj, MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_monitor_try_enter (MonoObject *obj, uint32_t ms); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_monitor_enter (MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_monitor_enter_v4 (MonoObject *obj, char *lock_taken); + +MONO_API MONO_RT_EXTERNAL_ONLY unsigned int +mono_object_get_size (MonoObject *o); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_monitor_exit (MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_raise_exception (MonoException *ex); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_runtime_set_pending_exception (MonoException *exc, mono_bool overwrite); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_reraise_exception (MonoException *ex); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_runtime_object_init (MonoObject *this_obj); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_runtime_class_init (MonoVTable *vtable); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoDomain* +mono_vtable_domain (MonoVTable *vtable); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoClass* +mono_vtable_class (MonoVTable *vtable); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod* +mono_object_get_virtual_method (MonoObject *obj, MonoMethod *method); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject* +mono_runtime_invoke (MonoMethod *method, void *obj, void **params, + MonoObject **exc); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod* +mono_get_delegate_invoke (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod* +mono_get_delegate_begin_invoke (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod* +mono_get_delegate_end_invoke (MonoClass *klass); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject* +mono_runtime_delegate_invoke (MonoObject *delegate, void **params, + MonoObject **exc); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject* +mono_runtime_invoke_array (MonoMethod *method, void *obj, MonoArray *params, + MonoObject **exc); + +MONO_API MONO_RT_EXTERNAL_ONLY void* +mono_method_get_unmanaged_thunk (MonoMethod *method); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoArray* +mono_runtime_get_main_args (void); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_runtime_exec_managed_code (MonoDomain *domain, + MonoMainThreadFunc main_func, + void* main_args); + +MONO_API MONO_RT_EXTERNAL_ONLY int +mono_runtime_run_main (MonoMethod *method, int argc, char* argv[], + MonoObject **exc); + +MONO_API MONO_RT_EXTERNAL_ONLY int +mono_runtime_exec_main (MonoMethod *method, MonoArray *args, + MonoObject **exc); + +MONO_API MONO_RT_EXTERNAL_ONLY int +mono_runtime_set_main_args (int argc, char* argv[]); + +/* The following functions won't be available with mono was configured with remoting disabled. */ +/*#ifndef DISABLE_REMOTING */ +MONO_API MONO_RT_EXTERNAL_ONLY void* +mono_load_remote_field (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, void **res); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject * +mono_load_remote_field_new (MonoObject *this_obj, MonoClass *klass, MonoClassField *field); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_store_remote_field (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, void* val); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_store_remote_field_new (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, MonoObject *arg); + +/* #endif */ + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_unhandled_exception (MonoObject *exc); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_print_unhandled_exception (MonoObject *exc); + +MONO_API MONO_RT_EXTERNAL_ONLY +void* +mono_compile_method (MonoMethod *method); + +/* accessors for fields and properties */ +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_field_set_value (MonoObject *obj, MonoClassField *field, void *value); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_field_static_set_value (MonoVTable *vt, MonoClassField *field, void *value); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_field_get_value (MonoObject *obj, MonoClassField *field, void *value); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_field_static_get_value (MonoVTable *vt, MonoClassField *field, void *value); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject * +mono_field_get_value_object (MonoDomain *domain, MonoClassField *field, MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_property_set_value (MonoProperty *prop, void *obj, void **params, MonoObject **exc); + +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject* +mono_property_get_value (MonoProperty *prop, void *obj, void **params, MonoObject **exc); + +/* GC handles support + * + * A handle can be created to refer to a managed object and either prevent it + * from being garbage collected or moved or to be able to know if it has been + * collected or not (weak references). + * mono_gchandle_new () is used to prevent an object from being garbage collected + * until mono_gchandle_free() is called. Use a TRUE value for the pinned argument to + * prevent the object from being moved (this should be avoided as much as possible + * and this should be used only for shorts periods of time or performance will suffer). + * To create a weakref use mono_gchandle_new_weakref (): track_resurrection should + * usually be false (see the GC docs for more details). + * mono_gchandle_get_target () can be used to get the object referenced by both kinds + * of handle: for a weakref handle, if an object has been collected, it will return NULL. + */ +MONO_API MONO_RT_EXTERNAL_ONLY uint32_t mono_gchandle_new (MonoObject *obj, mono_bool pinned); +MONO_API MONO_RT_EXTERNAL_ONLY uint32_t mono_gchandle_new_weakref (MonoObject *obj, mono_bool track_resurrection); +MONO_API MONO_RT_EXTERNAL_ONLY MonoObject* mono_gchandle_get_target (uint32_t gchandle); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gchandle_free (uint32_t gchandle); + +/* Reference queue support + * + * A reference queue is used to get notifications of when objects are collected. + * Call mono_gc_reference_queue_new to create a new queue and pass the callback that + * will be invoked when registered objects are collected. + * Call mono_gc_reference_queue_add to register a pair of objects and data within a queue. + * The callback will be triggered once an object is both unreachable and finalized. + */ + +typedef void (*mono_reference_queue_callback) (void *user_data); +typedef struct _MonoReferenceQueue MonoReferenceQueue; + +MONO_API MONO_RT_EXTERNAL_ONLY MonoReferenceQueue* mono_gc_reference_queue_new (mono_reference_queue_callback callback); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_reference_queue_free (MonoReferenceQueue *queue); +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool mono_gc_reference_queue_add (MonoReferenceQueue *queue, MonoObject *obj, void *user_data); + +/* GC write barriers support */ +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_wbarrier_set_field (MonoObject *obj, void* field_ptr, MonoObject* value); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_wbarrier_set_arrayref (MonoArray *arr, void* slot_ptr, MonoObject* value); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_wbarrier_arrayref_copy (void* dest_ptr, /*const*/ void* src_ptr, int count); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_wbarrier_generic_store (void* ptr, MonoObject* value); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_wbarrier_generic_store_atomic (void *ptr, MonoObject *value); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_wbarrier_generic_nostore (void* ptr); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_wbarrier_value_copy (void* dest, /*const*/ void* src, int count, MonoClass *klass); +MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_wbarrier_object_copy (MonoObject* obj, MonoObject *src); + MONO_END_DECLS #endif diff --git a/Prism/vendor/mono/include/mono/metadata/opcodes.h b/Prism/vendor/mono/include/mono/metadata/opcodes.h index 92dc15d..107755c 100644 --- a/Prism/vendor/mono/include/mono/metadata/opcodes.h +++ b/Prism/vendor/mono/include/mono/metadata/opcodes.h @@ -14,14 +14,67 @@ * (C) 2002 Ximian, Inc. */ -#include +#include MONO_BEGIN_DECLS + +#define MONO_CUSTOM_PREFIX 0xf0 + +#define OPDEF(a,b,c,d,e,f,g,h,i,j) \ + MONO_ ## a, + +typedef enum MonoOpcodeEnum { + MonoOpcodeEnum_Invalid = -1, +#include "mono/cil/opcode.def" + MONO_CEE_LAST +} MonoOpcodeEnum; + +#undef OPDEF + +enum { + MONO_FLOW_NEXT, + MONO_FLOW_BRANCH, + MONO_FLOW_COND_BRANCH, + MONO_FLOW_ERROR, + MONO_FLOW_CALL, + MONO_FLOW_RETURN, + MONO_FLOW_META +}; + +enum { + MonoInlineNone = 0, + MonoInlineType = 1, + MonoInlineField = 2, + MonoInlineMethod = 3, + MonoInlineTok = 4, + MonoInlineString = 5, + MonoInlineSig = 6, + MonoInlineVar = 7, + MonoShortInlineVar = 8, + MonoInlineBrTarget = 9, + MonoShortInlineBrTarget = 10, + MonoInlineSwitch = 11, + MonoInlineR = 12, + MonoShortInlineR = 13, + MonoInlineI = 14, + MonoShortInlineI = 15, + MonoInlineI8 = 16, +}; + +typedef struct { + unsigned char argument; + unsigned char flow_type; + unsigned short opval; +} MonoOpcode; + MONO_API_DATA const MonoOpcode mono_opcodes []; -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API const char* +mono_opcode_name (int opcode); + +MONO_API MonoOpcodeEnum +mono_opcode_value (const mono_byte **ip, const mono_byte *end); + MONO_END_DECLS #endif /* __MONO_METADATA_OPCODES_H__ */ diff --git a/Prism/vendor/mono/include/mono/metadata/profiler-events.h b/Prism/vendor/mono/include/mono/metadata/profiler-events.h index 20300bf..9413480 100644 --- a/Prism/vendor/mono/include/mono/metadata/profiler-events.h +++ b/Prism/vendor/mono/include/mono/metadata/profiler-events.h @@ -1,6 +1,7 @@ /* * Licensed to the .NET Foundation under one or more agreements. * The .NET Foundation licenses this file to you under the MIT license. + * See the LICENSE file in the project root for more information. */ /* @@ -106,5 +107,3 @@ MONO_PROFILER_EVENT_1(thread_exited, ThreadExited, uintptr_t, tid) MONO_PROFILER_EVENT_2(thread_name, ThreadName, uintptr_t, tid, const char *, name) MONO_PROFILER_EVENT_2(sample_hit, SampleHit, const mono_byte *, ip, const void *, context) - -MONO_PROFILER_EVENT_2(inline_method, InlineMethod, MonoMethod *, method, MonoMethod *, inlined_method) diff --git a/Prism/vendor/mono/include/mono/metadata/profiler.h b/Prism/vendor/mono/include/mono/metadata/profiler.h index 13cf7bb..bc60397 100644 --- a/Prism/vendor/mono/include/mono/metadata/profiler.h +++ b/Prism/vendor/mono/include/mono/metadata/profiler.h @@ -1,12 +1,15 @@ /* * Licensed to the .NET Foundation under one or more agreements. * The .NET Foundation licenses this file to you under the MIT license. + * See the LICENSE file in the project root for more information. */ #ifndef __MONO_PROFILER_H__ #define __MONO_PROFILER_H__ -#include +#include +#include +#include MONO_BEGIN_DECLS @@ -30,9 +33,143 @@ MONO_BEGIN_DECLS */ #define MONO_PROFILER_API_VERSION 3 -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef struct _MonoProfiler MonoProfiler; +typedef struct _MonoProfilerDesc *MonoProfilerHandle; + +typedef void (*MonoProfilerCleanupCallback) (MonoProfiler *prof); + +MONO_API void mono_profiler_load (const char *desc); +MONO_API MonoProfilerHandle mono_profiler_create (MonoProfiler *prof); +MONO_API void mono_profiler_set_cleanup_callback (MonoProfilerHandle handle, MonoProfilerCleanupCallback cb); + +typedef struct { + MonoMethod *method; + uint32_t il_offset; + uint32_t counter; + const char *file_name; + uint32_t line; + uint32_t column; +} MonoProfilerCoverageData; + +typedef mono_bool (*MonoProfilerCoverageFilterCallback) (MonoProfiler *prof, MonoMethod *method); +typedef void (*MonoProfilerCoverageCallback) (MonoProfiler *prof, const MonoProfilerCoverageData *data); + +MONO_API mono_bool mono_profiler_enable_coverage (void); +MONO_API void mono_profiler_set_coverage_filter_callback (MonoProfilerHandle handle, MonoProfilerCoverageFilterCallback cb); +MONO_API mono_bool mono_profiler_get_coverage_data (MonoProfilerHandle handle, MonoMethod *method, MonoProfilerCoverageCallback cb); + +typedef enum { + /** + * Do not perform sampling. Will make the sampling thread sleep until the + * sampling mode is changed to one of the below modes. + */ + MONO_PROFILER_SAMPLE_MODE_NONE = 0, + /** + * Try to base sampling frequency on process activity. Falls back to + * MONO_PROFILER_SAMPLE_MODE_REAL if such a clock is not available. + */ + MONO_PROFILER_SAMPLE_MODE_PROCESS = 1, + /** + * Base sampling frequency on wall clock time. Uses a monotonic clock when + * available (all major platforms). + */ + MONO_PROFILER_SAMPLE_MODE_REAL = 2, +} MonoProfilerSampleMode; + +MONO_API mono_bool mono_profiler_enable_sampling (MonoProfilerHandle handle); +MONO_API mono_bool mono_profiler_set_sample_mode (MonoProfilerHandle handle, MonoProfilerSampleMode mode, uint32_t freq); +MONO_API mono_bool mono_profiler_get_sample_mode (MonoProfilerHandle handle, MonoProfilerSampleMode *mode, uint32_t *freq); + +MONO_API mono_bool mono_profiler_enable_allocations (void); +MONO_API mono_bool mono_profiler_enable_clauses (void); + +typedef struct _MonoProfilerCallContext MonoProfilerCallContext; + +typedef enum { + /** + * Do not instrument calls. + */ + MONO_PROFILER_CALL_INSTRUMENTATION_NONE = 0, + /** + * Instrument method entries. + */ + MONO_PROFILER_CALL_INSTRUMENTATION_ENTER = 1 << 1, + /** + * Also capture a call context for method entries. + */ + MONO_PROFILER_CALL_INSTRUMENTATION_ENTER_CONTEXT = 1 << 2, + /** + * Instrument method exits. + */ + MONO_PROFILER_CALL_INSTRUMENTATION_LEAVE = 1 << 3, + /** + * Also capture a call context for method exits. + */ + MONO_PROFILER_CALL_INSTRUMENTATION_LEAVE_CONTEXT = 1 << 4, + /** + * Instrument method exits as a result of a tail call. + */ + MONO_PROFILER_CALL_INSTRUMENTATION_TAIL_CALL = 1 << 5, + /** + * Instrument exceptional method exits. + */ + MONO_PROFILER_CALL_INSTRUMENTATION_EXCEPTION_LEAVE = 1 << 6, +} MonoProfilerCallInstrumentationFlags; + +typedef MonoProfilerCallInstrumentationFlags (*MonoProfilerCallInstrumentationFilterCallback) (MonoProfiler *prof, MonoMethod *method); + +MONO_API void mono_profiler_set_call_instrumentation_filter_callback (MonoProfilerHandle handle, MonoProfilerCallInstrumentationFilterCallback cb); +MONO_API mono_bool mono_profiler_enable_call_context_introspection (void); +MONO_API void *mono_profiler_call_context_get_this (MonoProfilerCallContext *context); +MONO_API void *mono_profiler_call_context_get_argument (MonoProfilerCallContext *context, uint32_t position); +MONO_API void *mono_profiler_call_context_get_local (MonoProfilerCallContext *context, uint32_t position); +MONO_API void *mono_profiler_call_context_get_result (MonoProfilerCallContext *context); +MONO_API void mono_profiler_call_context_free_buffer (void *buffer); + +typedef enum { + /** + * The \c data parameter is a \c MonoMethod pointer. + */ + MONO_PROFILER_CODE_BUFFER_METHOD = 0, + /** + * \deprecated No longer used. + */ + MONO_PROFILER_CODE_BUFFER_METHOD_TRAMPOLINE = 1, + /** + * The \c data parameter is a \c MonoMethod pointer. + */ + MONO_PROFILER_CODE_BUFFER_UNBOX_TRAMPOLINE = 2, + MONO_PROFILER_CODE_BUFFER_IMT_TRAMPOLINE = 3, + MONO_PROFILER_CODE_BUFFER_GENERICS_TRAMPOLINE = 4, + /** + * The \c data parameter is a C string. + */ + MONO_PROFILER_CODE_BUFFER_SPECIFIC_TRAMPOLINE = 5, + MONO_PROFILER_CODE_BUFFER_HELPER = 6, + /** + * \deprecated No longer used. + */ + MONO_PROFILER_CODE_BUFFER_MONITOR = 7, + MONO_PROFILER_CODE_BUFFER_DELEGATE_INVOKE = 8, + MONO_PROFILER_CODE_BUFFER_EXCEPTION_HANDLING = 9, +} MonoProfilerCodeBufferType; + +typedef enum { + MONO_GC_EVENT_PRE_STOP_WORLD = 6, + /** + * When this event arrives, the GC and suspend locks are acquired. + */ + MONO_GC_EVENT_PRE_STOP_WORLD_LOCKED = 10, + MONO_GC_EVENT_POST_STOP_WORLD = 7, + MONO_GC_EVENT_START = 0, + MONO_GC_EVENT_END = 5, + MONO_GC_EVENT_PRE_START_WORLD = 8, + /** + * When this event arrives, the GC and suspend locks are released. + */ + MONO_GC_EVENT_POST_START_WORLD_UNLOCKED = 11, + MONO_GC_EVENT_POST_START_WORLD = 9, +} MonoProfilerGCEvent; /* * The macros below will generate the majority of the callback API. Refer to diff --git a/Prism/vendor/mono/include/mono/metadata/reflection.h b/Prism/vendor/mono/include/mono/metadata/reflection.h index c8f62d4..83bcfcc 100644 --- a/Prism/vendor/mono/include/mono/metadata/reflection.h +++ b/Prism/vendor/mono/include/mono/metadata/reflection.h @@ -5,13 +5,169 @@ #ifndef __METADATA_REFLECTION_H__ #define __METADATA_REFLECTION_H__ -#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +typedef struct MonoTypeNameParse MonoTypeNameParse; + +typedef struct { + MonoMethod *ctor; + uint32_t data_size; + const mono_byte* data; +} MonoCustomAttrEntry; + +typedef struct { + int num_attrs; + int cached; + MonoImage *image; + MonoCustomAttrEntry attrs [MONO_ZERO_LEN_ARRAY]; +} MonoCustomAttrInfo; + +#define MONO_SIZEOF_CUSTOM_ATTR_INFO (offsetof (MonoCustomAttrInfo, attrs)) + +/* + * Information which isn't in the MonoMethod structure is stored here for + * dynamic methods. + */ +typedef struct { + char **param_names; + MonoMarshalSpec **param_marshall; + MonoCustomAttrInfo **param_cattr; + uint8_t** param_defaults; + uint32_t *param_default_types; + char *dllentry, *dll; +} MonoReflectionMethodAux; + +typedef enum { + ResolveTokenError_OutOfRange, + ResolveTokenError_BadTable, + ResolveTokenError_Other +} MonoResolveTokenError; + +MONO_API MONO_RT_EXTERNAL_ONLY +int mono_reflection_parse_type (char *name, MonoTypeNameParse *info); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoType* mono_reflection_get_type (MonoImage* image, MonoTypeNameParse *info, mono_bool ignorecase, mono_bool *type_resolve); +MONO_API void mono_reflection_free_type_info (MonoTypeNameParse *info); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoType* mono_reflection_type_from_name (char *name, MonoImage *image); +MONO_API MONO_RT_EXTERNAL_ONLY +uint32_t mono_reflection_get_token (MonoObject *obj); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionAssembly* mono_assembly_get_object (MonoDomain *domain, MonoAssembly *assembly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionModule* mono_module_get_object (MonoDomain *domain, MonoImage *image); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionModule* mono_module_file_get_object (MonoDomain *domain, MonoImage *image, int table_index); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionType* mono_type_get_object (MonoDomain *domain, MonoType *type); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionMethod* mono_method_get_object (MonoDomain *domain, MonoMethod *method, MonoClass *refclass); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionField* mono_field_get_object (MonoDomain *domain, MonoClass *klass, MonoClassField *field); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionProperty* mono_property_get_object (MonoDomain *domain, MonoClass *klass, MonoProperty *property); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionEvent* mono_event_get_object (MonoDomain *domain, MonoClass *klass, MonoEvent *event); +/* note: this one is slightly different: we keep the whole array of params in the cache */ +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArray* mono_param_get_objects (MonoDomain *domain, MonoMethod *method); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoReflectionMethodBody* mono_method_body_get_object (MonoDomain *domain, MonoMethod *method); + +MONO_API MonoObject *mono_get_dbnull_object (MonoDomain *domain); + +MONO_API MonoArray* mono_reflection_get_custom_attrs_by_type (MonoObject *obj, MonoClass *attr_klass, MonoError *error); +MONO_API MonoArray* mono_reflection_get_custom_attrs (MonoObject *obj); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArray* mono_reflection_get_custom_attrs_data (MonoObject *obj); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArray* mono_reflection_get_custom_attrs_blob (MonoReflectionAssembly *assembly, MonoObject *ctor, MonoArray *ctorArgs, MonoArray *properties, MonoArray *porpValues, MonoArray *fields, MonoArray* fieldValues); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_reflection_get_custom_attrs_info (MonoObject *obj); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoArray* mono_custom_attrs_construct (MonoCustomAttrInfo *cinfo); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_custom_attrs_from_index (MonoImage *image, uint32_t idx); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_custom_attrs_from_method (MonoMethod *method); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_custom_attrs_from_class (MonoClass *klass); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_custom_attrs_from_assembly (MonoAssembly *assembly); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_custom_attrs_from_property (MonoClass *klass, MonoProperty *property); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_custom_attrs_from_event (MonoClass *klass, MonoEvent *event); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_custom_attrs_from_field (MonoClass *klass, MonoClassField *field); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoCustomAttrInfo* mono_custom_attrs_from_param (MonoMethod *method, uint32_t param); +MONO_API mono_bool mono_custom_attrs_has_attr (MonoCustomAttrInfo *ainfo, MonoClass *attr_klass); +MONO_API MONO_RT_EXTERNAL_ONLY +MonoObject* mono_custom_attrs_get_attr (MonoCustomAttrInfo *ainfo, MonoClass *attr_klass); +MONO_API void mono_custom_attrs_free (MonoCustomAttrInfo *ainfo); + + +#define MONO_DECLSEC_ACTION_MIN 0x1 +#define MONO_DECLSEC_ACTION_MAX 0x12 + +enum { + MONO_DECLSEC_FLAG_REQUEST = 0x00000001, + MONO_DECLSEC_FLAG_DEMAND = 0x00000002, + MONO_DECLSEC_FLAG_ASSERT = 0x00000004, + MONO_DECLSEC_FLAG_DENY = 0x00000008, + MONO_DECLSEC_FLAG_PERMITONLY = 0x00000010, + MONO_DECLSEC_FLAG_LINKDEMAND = 0x00000020, + MONO_DECLSEC_FLAG_INHERITANCEDEMAND = 0x00000040, + MONO_DECLSEC_FLAG_REQUEST_MINIMUM = 0x00000080, + MONO_DECLSEC_FLAG_REQUEST_OPTIONAL = 0x00000100, + MONO_DECLSEC_FLAG_REQUEST_REFUSE = 0x00000200, + MONO_DECLSEC_FLAG_PREJIT_GRANT = 0x00000400, + MONO_DECLSEC_FLAG_PREJIT_DENY = 0x00000800, + MONO_DECLSEC_FLAG_NONCAS_DEMAND = 0x00001000, + MONO_DECLSEC_FLAG_NONCAS_LINKDEMAND = 0x00002000, + MONO_DECLSEC_FLAG_NONCAS_INHERITANCEDEMAND = 0x00004000, + MONO_DECLSEC_FLAG_LINKDEMAND_CHOICE = 0x00008000, + MONO_DECLSEC_FLAG_INHERITANCEDEMAND_CHOICE = 0x00010000, + MONO_DECLSEC_FLAG_DEMAND_CHOICE = 0x00020000 +}; + +MONO_API uint32_t mono_declsec_flags_from_method (MonoMethod *method); +MONO_API uint32_t mono_declsec_flags_from_class (MonoClass *klass); +MONO_API uint32_t mono_declsec_flags_from_assembly (MonoAssembly *assembly); + +/* this structure MUST be kept in synch with RuntimeDeclSecurityEntry + * located in /mcs/class/corlib/System.Security/SecurityFrame.cs */ +typedef struct { + char *blob; /* pointer to metadata blob */ + uint32_t size; /* size of the metadata blob */ + uint32_t index; +} MonoDeclSecurityEntry; + +typedef struct { + MonoDeclSecurityEntry demand; + MonoDeclSecurityEntry noncasdemand; + MonoDeclSecurityEntry demandchoice; +} MonoDeclSecurityActions; + +MONO_API MonoBoolean mono_declsec_get_demands (MonoMethod *callee, MonoDeclSecurityActions* demands); +MONO_API MonoBoolean mono_declsec_get_linkdemands (MonoMethod *callee, MonoDeclSecurityActions* klass, MonoDeclSecurityActions* cmethod); +MONO_API MonoBoolean mono_declsec_get_inheritdemands_class (MonoClass *klass, MonoDeclSecurityActions* demands); +MONO_API MonoBoolean mono_declsec_get_inheritdemands_method (MonoMethod *callee, MonoDeclSecurityActions* demands); + +MONO_API MonoBoolean mono_declsec_get_method_action (MonoMethod *method, uint32_t action, MonoDeclSecurityEntry *entry); +MONO_API MonoBoolean mono_declsec_get_class_action (MonoClass *klass, uint32_t action, MonoDeclSecurityEntry *entry); +MONO_API MonoBoolean mono_declsec_get_assembly_action (MonoAssembly *assembly, uint32_t action, MonoDeclSecurityEntry *entry); + +MONO_API MONO_RT_EXTERNAL_ONLY +MonoType* mono_reflection_type_get_type (MonoReflectionType *reftype); + +MONO_API MonoAssembly* mono_reflection_assembly_get_assembly (MonoReflectionAssembly *refassembly); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/row-indexes.h b/Prism/vendor/mono/include/mono/metadata/row-indexes.h index 64534db..d7837d0 100644 --- a/Prism/vendor/mono/include/mono/metadata/row-indexes.h +++ b/Prism/vendor/mono/include/mono/metadata/row-indexes.h @@ -148,17 +148,6 @@ enum { MONO_FIELD_RVA_SIZE }; -enum { - MONO_ENCLOG_TOKEN, - MONO_ENCLOG_FUNC_CODE, - MONO_ENCLOG_SIZE -}; - -enum { - MONO_ENCMAP_TOKEN, - MONO_ENCMAP_SIZE -}; - enum { MONO_FILE_FLAGS, MONO_FILE_NAME, @@ -306,7 +295,7 @@ enum { MONO_GENERICPARAM_FLAGS, MONO_GENERICPARAM_OWNER, MONO_GENERICPARAM_NAME, - + MONO_GENERICPARAM_SIZE }; diff --git a/Prism/vendor/mono/include/mono/metadata/sgen-bridge.h b/Prism/vendor/mono/include/mono/metadata/sgen-bridge.h index bb119e5..c131f30 100644 --- a/Prism/vendor/mono/include/mono/metadata/sgen-bridge.h +++ b/Prism/vendor/mono/include/mono/metadata/sgen-bridge.h @@ -1,7 +1,7 @@ /** * \file * Copyright 2011 Novell, Inc. - * + * * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ @@ -52,13 +52,58 @@ #include -#include - MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +enum { + SGEN_BRIDGE_VERSION = 5 +}; + +typedef enum { + /* Instances of this class should be scanned when computing the transitive dependency among bridges. E.g. List*/ + GC_BRIDGE_TRANSPARENT_CLASS, + /* Instances of this class should not be scanned when computing the transitive dependency among bridges. E.g. String*/ + GC_BRIDGE_OPAQUE_CLASS, + /* Instances of this class should be bridged and have their dependency computed. */ + GC_BRIDGE_TRANSPARENT_BRIDGE_CLASS, + /* Instances of this class should be bridged but no dependencies should not be calculated. */ + GC_BRIDGE_OPAQUE_BRIDGE_CLASS, +} MonoGCBridgeObjectKind; + +typedef struct { + mono_bool is_alive; /* to be set by the cross reference callback */ + int num_objs; + MonoObject *objs [MONO_ZERO_LEN_ARRAY]; +} MonoGCBridgeSCC; + +typedef struct { + int src_scc_index; + int dst_scc_index; +} MonoGCBridgeXRef; + +typedef struct { + int bridge_version; + /* + * Tells the runtime which classes to even consider when looking for + * bridged objects. If subclasses are to be considered as well, the + * subclass check must be done in the callback. + */ + MonoGCBridgeObjectKind (*bridge_class_kind) (MonoClass *klass); + /* + * This is only called on objects for whose classes + * `bridge_class_kind()` returned `XXX_BRIDGE_CLASS`. + */ + mono_bool (*is_bridge_object) (MonoObject *object); + void (*cross_references) (int num_sccs, MonoGCBridgeSCC **sccs, int num_xrefs, MonoGCBridgeXRef *xrefs); +} MonoGCBridgeCallbacks; + +/* + * Note: This may be called at any time, but cannot be called concurrently + * with (during and on a separate thread from) sgen init. Callers are + * responsible for enforcing this. + */ +MONO_API void mono_gc_register_bridge_callbacks (MonoGCBridgeCallbacks *callbacks); + +MONO_API void mono_gc_wait_for_bridge_processing (void); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/threads.h b/Prism/vendor/mono/include/mono/metadata/threads.h index 3d11ade..b1b9103 100644 --- a/Prism/vendor/mono/include/mono/metadata/threads.h +++ b/Prism/vendor/mono/include/mono/metadata/threads.h @@ -12,13 +12,55 @@ #ifndef _MONO_METADATA_THREADS_H_ #define _MONO_METADATA_THREADS_H_ -#include +#include +#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +/* This callback should return TRUE if the runtime must wait for the thread, FALSE otherwise */ +typedef mono_bool (*MonoThreadManageCallback) (MonoThread* thread); + +MONO_API void mono_thread_init (MonoThreadStartCB start_cb, + MonoThreadAttachCB attach_cb); +MONO_API void mono_thread_cleanup (void); +MONO_API MONO_RT_EXTERNAL_ONLY +void mono_thread_manage(void); + +MONO_API MonoThread *mono_thread_current (void); + +MONO_API void mono_thread_set_main (MonoThread *thread); +MONO_API MonoThread *mono_thread_get_main (void); + +MONO_API MONO_RT_EXTERNAL_ONLY void mono_thread_stop (MonoThread *thread); + +MONO_API void mono_thread_new_init (intptr_t tid, void* stack_start, + void* func); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_thread_create (MonoDomain *domain, void* func, void* arg); + +MONO_API MonoThread *mono_thread_attach (MonoDomain *domain); +MONO_API void mono_thread_detach (MonoThread *thread); +MONO_API void mono_thread_exit (void); + +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_threads_attach_tools_thread (void); + +MONO_API char *mono_thread_get_name_utf8 (MonoThread *thread); +MONO_API int32_t mono_thread_get_managed_id (MonoThread *thread); + +MONO_API void mono_thread_set_manage_callback (MonoThread *thread, MonoThreadManageCallback func); + +MONO_API void mono_threads_set_default_stacksize (uint32_t stacksize); +MONO_API uint32_t mono_threads_get_default_stacksize (void); + +MONO_API void mono_threads_request_thread_dump (void); + +MONO_API mono_bool mono_thread_is_foreign (MonoThread *thread); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_thread_detach_if_exiting (void); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/metadata/tokentype.h b/Prism/vendor/mono/include/mono/metadata/tokentype.h index c7ae117..a1c5894 100644 --- a/Prism/vendor/mono/include/mono/metadata/tokentype.h +++ b/Prism/vendor/mono/include/mono/metadata/tokentype.h @@ -9,13 +9,13 @@ * These tokens match the table ID except for the last * three (string, name and base type which are special) */ - + typedef enum { MONO_TOKEN_MODULE = 0x00000000, MONO_TOKEN_TYPE_REF = 0x01000000, MONO_TOKEN_TYPE_DEF = 0x02000000, MONO_TOKEN_FIELD_DEF = 0x04000000, - MONO_TOKEN_METHOD_DEF = 0x06000000, + MONO_TOKEN_METHOD_DEF = 0x06000000, MONO_TOKEN_PARAM_DEF = 0x08000000, MONO_TOKEN_INTERFACE_IMPL = 0x09000000, MONO_TOKEN_MEMBER_REF = 0x0a000000, diff --git a/Prism/vendor/mono/include/mono/metadata/verify.h b/Prism/vendor/mono/include/mono/metadata/verify.h index 6efb0fd..162ef44 100644 --- a/Prism/vendor/mono/include/mono/metadata/verify.h +++ b/Prism/vendor/mono/include/mono/metadata/verify.h @@ -23,7 +23,7 @@ typedef enum { MONO_VERIFY_NOT_VERIFIABLE = 8, /*OR it with other flags*/ - + /* Abort the verification if the code is not verifiable. * The standard behavior is to abort if the code is not valid. * */ @@ -56,9 +56,9 @@ typedef struct { } MonoVerifyInfoExtended; -MONO_API MONO_RT_EXTERNAL_ONLY GSList* mono_method_verify (MonoMethod *method, int level); -MONO_API MONO_RT_EXTERNAL_ONLY void mono_free_verify_list (GSList *list); -MONO_API MONO_RT_EXTERNAL_ONLY char* mono_verify_corlib (void); +MONO_API GSList* mono_method_verify (MonoMethod *method, int level); +MONO_API void mono_free_verify_list (GSList *list); +MONO_API char* mono_verify_corlib (void); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-counters-functions.h b/Prism/vendor/mono/include/mono/utils/details/mono-counters-functions.h deleted file mode 100644 index 73f8860..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-counters-functions.h +++ /dev/null @@ -1,44 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -// WARNING: The functions in this header are no-ops and provided for source compatibility with older versions of mono only. - -MONO_API_FUNCTION(void, mono_counters_enable, (int section_mask)) -MONO_API_FUNCTION(void, mono_counters_init, (void)) - -/* - * register addr as the address of a counter of type type. - * It may be a function pointer if MONO_COUNTER_CALLBACK is specified: - * the function should return the value and take no arguments. - */ -MONO_API_FUNCTION(void, mono_counters_register, (const char* descr, int type, void *addr)) -MONO_API_FUNCTION(void, mono_counters_register_with_size, (const char *name, int type, void *addr, int size)) - -MONO_API_FUNCTION(void, mono_counters_on_register, (MonoCounterRegisterCallback callback)) - -/* - * Create a readable dump of the counters for section_mask sections (ORed section values) - */ -MONO_API_FUNCTION(void, mono_counters_dump, (int section_mask, FILE *outfile)) - -MONO_API_FUNCTION(void, mono_counters_cleanup, (void)) - -MONO_API_FUNCTION(void, mono_counters_foreach, (CountersEnumCallback cb, void *user_data)) - -MONO_API_FUNCTION(int, mono_counters_sample, (MonoCounter *counter, void *buffer, int buffer_size)) - -MONO_API_FUNCTION(const char*, mono_counter_get_name, (MonoCounter *name)) -MONO_API_FUNCTION(int, mono_counter_get_type, (MonoCounter *counter)) -MONO_API_FUNCTION(int, mono_counter_get_section, (MonoCounter *counter)) -MONO_API_FUNCTION(int, mono_counter_get_unit, (MonoCounter *counter)) -MONO_API_FUNCTION(int, mono_counter_get_variance, (MonoCounter *counter)) -MONO_API_FUNCTION(size_t, mono_counter_get_size, (MonoCounter *counter)) - -MONO_API_FUNCTION(int, mono_runtime_resource_limit, (int resource_type, uintptr_t soft_limit, uintptr_t hard_limit)) -MONO_API_FUNCTION(void, mono_runtime_resource_set_callback, (MonoResourceCallback callback)) -MONO_API_FUNCTION(void, mono_runtime_resource_check_limit, (int resource_type, uintptr_t value)) diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-counters-types.h b/Prism/vendor/mono/include/mono/utils/details/mono-counters-types.h deleted file mode 100644 index 196cef6..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-counters-types.h +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_COUNTERS_TYPES_H -#define _MONO_COUNTERS_TYPES_H - -#include -#include - -MONO_BEGIN_DECLS - -enum { - /* Counter type, bits 0-7. */ - MONO_COUNTER_INT, /* 32 bit int */ - MONO_COUNTER_UINT, /* 32 bit uint */ - MONO_COUNTER_WORD, /* pointer-sized int */ - MONO_COUNTER_LONG, /* 64 bit int */ - MONO_COUNTER_ULONG, /* 64 bit uint */ - MONO_COUNTER_DOUBLE, - MONO_COUNTER_STRING, /* char* */ - MONO_COUNTER_TIME_INTERVAL, /* 64 bits signed int holding usecs. */ - MONO_COUNTER_TYPE_MASK = 0xf, - MONO_COUNTER_CALLBACK = 128, /* ORed with the other values */ - MONO_COUNTER_SECTION_MASK = 0x00ffff00, - /* Sections, bits 8-23 (16 bits) */ - MONO_COUNTER_JIT = 1 << 8, - MONO_COUNTER_GC = 1 << 9, - MONO_COUNTER_METADATA = 1 << 10, - MONO_COUNTER_GENERICS = 1 << 11, - MONO_COUNTER_SECURITY = 1 << 12, - MONO_COUNTER_RUNTIME = 1 << 13, - MONO_COUNTER_SYSTEM = 1 << 14, - MONO_COUNTER_PERFCOUNTERS = 1 << 15, - MONO_COUNTER_PROFILER = 1 << 16, - MONO_COUNTER_INTERP = 1 << 17, - MONO_COUNTER_TIERED = 1 << 18, - MONO_COUNTER_LAST_SECTION, - - /* Unit, bits 24-27 (4 bits) */ - MONO_COUNTER_UNIT_SHIFT = 24, - MONO_COUNTER_UNIT_MASK = 0xFu << MONO_COUNTER_UNIT_SHIFT, - MONO_COUNTER_RAW = 0 << 24, /* Raw value */ - MONO_COUNTER_BYTES = 1 << 24, /* Quantity of bytes. RSS, active heap, etc */ - MONO_COUNTER_TIME = 2 << 24, /* Time interval in 100ns units. Minor pause, JIT compilation*/ - MONO_COUNTER_COUNT = 3 << 24, /* Number of things (threads, queued jobs) or Number of events triggered (Major collections, Compiled methods).*/ - MONO_COUNTER_PERCENTAGE = 4 << 24, /* [0-1] Fraction Percentage of something. Load average. */ - - /* Monotonicity, bits 28-31 (4 bits) */ - MONO_COUNTER_VARIANCE_SHIFT = 28, - MONO_COUNTER_VARIANCE_MASK = 0xFu << MONO_COUNTER_VARIANCE_SHIFT, - MONO_COUNTER_MONOTONIC = 1 << 28, /* This counter value always increase/decreases over time. Reported by --stat. */ - MONO_COUNTER_CONSTANT = 1 << 29, /* Fixed value. Used by configuration data. */ - MONO_COUNTER_VARIABLE = 1 << 30, /* This counter value can be anything on each sampling. Only interesting when sampling. */ -}; - -typedef struct _MonoCounter MonoCounter; - -typedef void (*MonoCounterRegisterCallback) (MonoCounter*); - -typedef mono_bool (*CountersEnumCallback) (MonoCounter *counter, void *user_data); - -typedef enum { - MONO_RESOURCE_JIT_CODE, /* bytes */ - MONO_RESOURCE_METADATA, /* bytes */ - MONO_RESOURCE_GC_HEAP, /* bytes */ - MONO_RESOURCE_COUNT /* non-ABI value */ -} MonoResourceType; - -typedef void (*MonoResourceCallback) (int resource_type, uintptr_t value, int is_soft); - -MONO_END_DECLS - -#endif /* _MONO_COUNTERS_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-dl-fallback-functions.h b/Prism/vendor/mono/include/mono/utils/details/mono-dl-fallback-functions.h deleted file mode 100644 index 6c9cfac..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-dl-fallback-functions.h +++ /dev/null @@ -1,11 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MonoDlFallbackHandler *, mono_dl_fallback_register, (MonoDlFallbackLoad load_func, MonoDlFallbackSymbol symbol_func, \ - MonoDlFallbackClose close_func, void *user_data)) -MONO_API_FUNCTION(void, mono_dl_fallback_unregister, (MonoDlFallbackHandler *handler)) diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-dl-fallback-types.h b/Prism/vendor/mono/include/mono/utils/details/mono-dl-fallback-types.h deleted file mode 100644 index b4f5db8..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-dl-fallback-types.h +++ /dev/null @@ -1,36 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_DL_FALLBACK_TYPES_H -#define _MONO_DL_FALLBACK_TYPES_H - -#include - -MONO_BEGIN_DECLS - -enum { - MONO_DL_EAGER = 0, - MONO_DL_LAZY = 1, - // If MONO_DL_LOCAL is set, it will trump MONO_DL_GLOBAL. - MONO_DL_LOCAL = 2, - // MONO_DL_MASK is unused internally and no longer a full mask on netcore, given the introduction of MONO_DL_GLOBAL. Avoid. - MONO_DL_MASK = 3, - // Only applicable when building Mono in netcore mode. - MONO_DL_GLOBAL = 4 -}; - -/* - * This is the dynamic loader fallback API - */ -typedef struct MonoDlFallbackHandler MonoDlFallbackHandler; - -/* - * The "err" variable contents must be allocated using g_malloc or g_strdup - */ -typedef void* (*MonoDlFallbackLoad) (const char *name, int flags, char **err, void *user_data); -typedef void* (*MonoDlFallbackSymbol) (void *handle, const char *name, char **err, void *user_data); -typedef void* (*MonoDlFallbackClose) (void *handle, void *user_data); - -MONO_END_DECLS - -#endif diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-error-functions.h b/Prism/vendor/mono/include/mono/utils/details/mono-error-functions.h deleted file mode 100644 index 696b32d..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-error-functions.h +++ /dev/null @@ -1,18 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_error_init, (MonoError *error)) -MONO_API_FUNCTION(void, mono_error_init_flags, (MonoError *error, unsigned short flags)) - -MONO_API_FUNCTION(void, mono_error_cleanup, (MonoError *error)) - -MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY mono_bool, mono_error_ok, (MonoError *error)) - -MONO_API_FUNCTION(unsigned short, mono_error_get_error_code, (MonoError *error)) - -MONO_API_FUNCTION(const char*, mono_error_get_message, (MonoError *error)) diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-error-types.h b/Prism/vendor/mono/include/mono/utils/details/mono-error-types.h deleted file mode 100644 index 97c69f2..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-error-types.h +++ /dev/null @@ -1,82 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_ERROR_TYPES_H -#define _MONO_ERROR_TYPES_H - -#include - -enum { - /* - The supplied strings were dup'd by means of calling mono_error_dup_strings. - */ - MONO_ERROR_FREE_STRINGS = 0x0001, - - /* - Something happened while processing the error and the resulting message is incomplete. - */ - MONO_ERROR_INCOMPLETE = 0x0002, - /* - This MonoError is heap allocated in a mempool - */ - MONO_ERROR_MEMPOOL_BOXED = 0x0004 -}; - -enum { - MONO_ERROR_NONE = 0, - MONO_ERROR_MISSING_METHOD = 1, - MONO_ERROR_MISSING_FIELD = 2, - MONO_ERROR_TYPE_LOAD = 3, - MONO_ERROR_FILE_NOT_FOUND = 4, - MONO_ERROR_BAD_IMAGE = 5, - MONO_ERROR_OUT_OF_MEMORY = 6, - MONO_ERROR_ARGUMENT = 7, - MONO_ERROR_ARGUMENT_NULL = 11, - MONO_ERROR_ARGUMENT_OUT_OF_RANGE = 14, - MONO_ERROR_NOT_VERIFIABLE = 8, - MONO_ERROR_INVALID_PROGRAM = 12, - MONO_ERROR_MEMBER_ACCESS = 13, - - /* - * This is a generic error mechanism is you need to raise an arbitrary corlib exception. - * You must pass the exception name otherwise prepare_exception will fail with internal execution. - */ - MONO_ERROR_GENERIC = 9, - /* This one encapsulates a managed exception instance */ - MONO_ERROR_EXCEPTION_INSTANCE = 10, - - /* Not a valid error code - indicates that the error was cleaned up and reused */ - MONO_ERROR_CLEANUP_CALLED_SENTINEL = 0xffff -}; - -#ifdef _MSC_VER -__pragma(warning (push)) -__pragma(warning (disable:4201)) -#endif - -/*Keep in sync with MonoErrorInternal*/ -typedef union _MonoError { - // Merge two uint16 into one uint32 so it can be initialized - // with one instruction instead of two. - uint32_t init; - struct { - uint16_t error_code; - uint16_t private_flags; /*DON'T TOUCH */ - void *hidden_1 [12]; /*DON'T TOUCH */ - }; -} MonoErrorExternal; - -#ifdef _MSC_VER -__pragma(warning (pop)) -#endif - -#ifdef MONO_INSIDE_RUNTIME -typedef union _MonoErrorInternal MonoError; -#else -typedef MonoErrorExternal MonoError; -#endif - -/* Mempool-allocated MonoError.*/ -typedef struct _MonoErrorBoxed MonoErrorBoxed; - -#endif diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-logger-functions.h b/Prism/vendor/mono/include/mono/utils/details/mono-logger-functions.h deleted file mode 100644 index d24100f..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-logger-functions.h +++ /dev/null @@ -1,17 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(void, mono_trace_set_level_string, (const char *value)) - -MONO_API_FUNCTION(void, mono_trace_set_mask_string, (const char *value)) - -MONO_API_FUNCTION(void, mono_trace_set_log_handler, (MonoLogCallback callback, void *user_data)) - -MONO_API_FUNCTION(void, mono_trace_set_print_handler, (MonoPrintCallback callback)) - -MONO_API_FUNCTION(void, mono_trace_set_printerr_handler, (MonoPrintCallback callback)) diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-logger-types.h b/Prism/vendor/mono/include/mono/utils/details/mono-logger-types.h deleted file mode 100644 index 8b90088..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-logger-types.h +++ /dev/null @@ -1,16 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_LOGGER_TYPES_H -#define _MONO_LOGGER_TYPES_H - -#include - -MONO_BEGIN_DECLS - -typedef void (*MonoPrintCallback) (const char *string, mono_bool is_stdout); -typedef void (*MonoLogCallback) (const char *log_domain, const char *log_level, const char *message, mono_bool fatal, void *user_data); - -MONO_END_DECLS - -#endif /* _MONO_LOGGER_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-publib-functions.h b/Prism/vendor/mono/include/mono/utils/details/mono-publib-functions.h deleted file mode 100644 index d6186b0..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-publib-functions.h +++ /dev/null @@ -1,11 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -// This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION -#ifndef MONO_API_FUNCTION -#error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" -#endif - -MONO_API_FUNCTION(void, mono_free, (void*)) -MONO_API_FUNCTION(mono_bool, mono_set_allocator_vtable, (MonoAllocatorVTable* vtable)) - diff --git a/Prism/vendor/mono/include/mono/utils/details/mono-publib-types.h b/Prism/vendor/mono/include/mono/utils/details/mono-publib-types.h deleted file mode 100644 index 551cf0a..0000000 --- a/Prism/vendor/mono/include/mono/utils/details/mono-publib-types.h +++ /dev/null @@ -1,180 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// -#ifndef _MONO_PUBLIB_TYPES_H -#define _MONO_PUBLIB_TYPES_H - -/* - * Minimal general purpose header for use in public mono header files. - * We can't include config.h, so we use compiler-specific preprocessor - * directives where needed. - */ - -#ifdef __cplusplus -#define MONO_BEGIN_DECLS extern "C" { -#define MONO_END_DECLS } -#else -#define MONO_BEGIN_DECLS /* nothing */ -#define MONO_END_DECLS /* nothing */ -#endif - -MONO_BEGIN_DECLS - -/* VS 2010 and later have stdint.h */ -#if defined(_MSC_VER) - -#if _MSC_VER < 1600 - -typedef __int8 int8_t; -typedef unsigned __int8 uint8_t; -typedef __int16 int16_t; -typedef unsigned __int16 uint16_t; -typedef __int32 int32_t; -typedef unsigned __int32 uint32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; - -#else - -#include - -#endif - -#define MONO_API_EXPORT __declspec(dllexport) -#define MONO_API_IMPORT __declspec(dllimport) - -#else - -#include - -#if defined (__clang__) || defined (__GNUC__) -#define MONO_API_EXPORT __attribute__ ((__visibility__ ("default"))) -#else -#define MONO_API_EXPORT -#endif -#define MONO_API_IMPORT - -#endif /* end of compiler-specific stuff */ - -#include - -#ifdef __cplusplus -#define MONO_EXTERN_C extern "C" -#else -#define MONO_EXTERN_C /* nothing */ -#endif - -#if defined(MONO_DLL_EXPORT) - #define MONO_API_NO_EXTERN_C MONO_API_EXPORT -#elif defined(MONO_DLL_IMPORT) - #define MONO_API_NO_EXTERN_C MONO_API_IMPORT -#else - #define MONO_API_NO_EXTERN_C /* nothing */ -#endif - -#define MONO_API MONO_EXTERN_C MONO_API_NO_EXTERN_C - -// Should (but not must) wrap in extern "C" (MONO_BEGIN_DECLS, MONO_END_DECLS). -#define MONO_API_DATA MONO_API_NO_EXTERN_C extern - -typedef int32_t mono_bool; -typedef uint8_t mono_byte; -typedef mono_byte MonoBoolean; -#ifdef _WIN32 -MONO_END_DECLS -#include -typedef wchar_t mono_unichar2; -MONO_BEGIN_DECLS -#else -typedef uint16_t mono_unichar2; -#endif -typedef uint32_t mono_unichar4; - -typedef void (*MonoFunc) (void* data, void* user_data); -typedef void (*MonoHFunc) (void* key, void* value, void* user_data); - -#define MONO_ALLOCATOR_VTABLE_VERSION 1 - -typedef struct { - int version; - void *(*malloc) (size_t size); - void *(*realloc) (void *mem, size_t count); - void (*free) (void *mem); - void *(*calloc) (size_t count, size_t size); -} MonoAllocatorVTable; - -#define MONO_CONST_RETURN const - -/* - * When embedding, you have to define MONO_ZERO_LEN_ARRAY before including any - * other Mono header file if you use a different compiler from the one used to - * build Mono. - */ -#ifndef MONO_ZERO_LEN_ARRAY -#ifdef __GNUC__ -#define MONO_ZERO_LEN_ARRAY 0 -#else -#define MONO_ZERO_LEN_ARRAY 1 -#endif -#endif - -#if defined (MONO_INSIDE_RUNTIME) - -#if defined (__CENTRINEL__) -/* Centrinel is an analyzer that warns about raw pointer to managed objects - * inside Mono. - */ -#define MONO_RT_MANAGED_ATTR __CENTRINEL_MANAGED_ATTR -#define MONO_RT_CENTRINEL_SUPPRESS __CENTRINEL_SUPPRESS_ATTR(1) -#else -#define MONO_RT_MANAGED_ATTR -#define MONO_RT_CENTRINEL_SUPPRESS -#endif - -#if defined (__clang__) || defined (__GNUC__) -// attribute(deprecated(message)) was introduced in gcc 4.5. -// attribute(deprecated)) was introduced in gcc 4.0. -// Compare: https://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Function-Attributes.html -// https://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Function-Attributes.html -// https://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Function-Attributes.html -#if defined (__clang__) || (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) -#define MONO_RT_EXTERNAL_ONLY \ - __attribute__ ((__deprecated__ ("The mono runtime must not call this function."))) \ - MONO_RT_CENTRINEL_SUPPRESS -#elif __GNUC__ >= 4 -#define MONO_RT_EXTERNAL_ONLY __attribute__ ((__deprecated__)) MONO_RT_CENTRINEL_SUPPRESS -#else -#define MONO_RT_EXTERNAL_ONLY MONO_RT_CENTRINEL_SUPPRESS -#endif - -#if defined (__clang__) || (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) -// Pragmas for controlling diagnostics appear to be from gcc 4.2. -// This is used in place of configure gcc -Werror=deprecated-declarations: -// 1. To be portable across build systems. -// 2. configure is very sensitive to compiler flags; they break autoconf's probes. -// Though #2 can be mitigated by being late in configure. -#pragma GCC diagnostic error "-Wdeprecated-declarations" -#endif - -#else -#define MONO_RT_EXTERNAL_ONLY MONO_RT_CENTRINEL_SUPPRESS -#endif // clang or gcc - -#else -#define MONO_RT_EXTERNAL_ONLY -#define MONO_RT_MANAGED_ATTR -#endif /* MONO_INSIDE_RUNTIME */ - -#if defined (__clang__) || defined (__GNUC__) -#define _MONO_DEPRECATED __attribute__ ((__deprecated__)) -#elif defined (_MSC_VER) -#define _MONO_DEPRECATED __declspec (deprecated) -#else -#define _MONO_DEPRECATED -#endif - -#define MONO_DEPRECATED MONO_API MONO_RT_EXTERNAL_ONLY _MONO_DEPRECATED - -MONO_END_DECLS - -#endif /* _MONO_PUBLIB_TYPES_H */ diff --git a/Prism/vendor/mono/include/mono/utils/mono-counters.h b/Prism/vendor/mono/include/mono/utils/mono-counters.h index 6cf8c64..77175b3 100644 --- a/Prism/vendor/mono/include/mono/utils/mono-counters.h +++ b/Prism/vendor/mono/include/mono/utils/mono-counters.h @@ -1,22 +1,105 @@ /** * \file - * - * WARNING: The functions in this header are no-ops and provided for source compatibility with older versions of mono only. - * */ #ifndef __MONO_COUNTERS_H__ #define __MONO_COUNTERS_H__ -#include +#include +#include -MONO_BEGIN_DECLS +enum { + /* Counter type, bits 0-7. */ + MONO_COUNTER_INT, /* 32 bit int */ + MONO_COUNTER_UINT, /* 32 bit uint */ + MONO_COUNTER_WORD, /* pointer-sized int */ + MONO_COUNTER_LONG, /* 64 bit int */ + MONO_COUNTER_ULONG, /* 64 bit uint */ + MONO_COUNTER_DOUBLE, + MONO_COUNTER_STRING, /* char* */ + MONO_COUNTER_TIME_INTERVAL, /* 64 bits signed int holding usecs. */ + MONO_COUNTER_TYPE_MASK = 0xf, + MONO_COUNTER_CALLBACK = 128, /* ORed with the other values */ + MONO_COUNTER_SECTION_MASK = 0x00ffff00, + /* Sections, bits 8-23 (16 bits) */ + MONO_COUNTER_JIT = 1 << 8, + MONO_COUNTER_GC = 1 << 9, + MONO_COUNTER_METADATA = 1 << 10, + MONO_COUNTER_GENERICS = 1 << 11, + MONO_COUNTER_SECURITY = 1 << 12, + MONO_COUNTER_RUNTIME = 1 << 13, + MONO_COUNTER_SYSTEM = 1 << 14, + MONO_COUNTER_PERFCOUNTERS = 1 << 15, + MONO_COUNTER_PROFILER = 1 << 16, + MONO_COUNTER_INTERP = 1 << 17, + MONO_COUNTER_TIERED = 1 << 18, + MONO_COUNTER_LAST_SECTION, -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION + /* Unit, bits 24-27 (4 bits) */ + MONO_COUNTER_UNIT_SHIFT = 24, + MONO_COUNTER_UNIT_MASK = 0xFu << MONO_COUNTER_UNIT_SHIFT, + MONO_COUNTER_RAW = 0 << 24, /* Raw value */ + MONO_COUNTER_BYTES = 1 << 24, /* Quantity of bytes. RSS, active heap, etc */ + MONO_COUNTER_TIME = 2 << 24, /* Time interval in 100ns units. Minor pause, JIT compilation*/ + MONO_COUNTER_COUNT = 3 << 24, /* Number of things (threads, queued jobs) or Number of events triggered (Major collections, Compiled methods).*/ + MONO_COUNTER_PERCENTAGE = 4 << 24, /* [0-1] Fraction Percentage of something. Load average. */ -MONO_END_DECLS + /* Monotonicity, bits 28-31 (4 bits) */ + MONO_COUNTER_VARIANCE_SHIFT = 28, + MONO_COUNTER_VARIANCE_MASK = 0xFu << MONO_COUNTER_VARIANCE_SHIFT, + MONO_COUNTER_MONOTONIC = 1 << 28, /* This counter value always increase/decreases over time. Reported by --stat. */ + MONO_COUNTER_CONSTANT = 1 << 29, /* Fixed value. Used by configuration data. */ + MONO_COUNTER_VARIABLE = 1 << 30, /* This counter value can be anything on each sampling. Only interesting when sampling. */ +}; + +typedef struct _MonoCounter MonoCounter; + +MONO_API void mono_counters_enable (int section_mask); +MONO_API void mono_counters_init (void); + +/* + * register addr as the address of a counter of type type. + * It may be a function pointer if MONO_COUNTER_CALLBACK is specified: + * the function should return the value and take no arguments. + */ +MONO_API void mono_counters_register (const char* descr, int type, void *addr); +MONO_API void mono_counters_register_with_size (const char *name, int type, void *addr, int size); + +typedef void (*MonoCounterRegisterCallback) (MonoCounter*); +MONO_API void mono_counters_on_register (MonoCounterRegisterCallback callback); + +/* + * Create a readable dump of the counters for section_mask sections (ORed section values) + */ +MONO_API void mono_counters_dump (int section_mask, FILE *outfile); + +MONO_API void mono_counters_cleanup (void); + +typedef mono_bool (*CountersEnumCallback) (MonoCounter *counter, void *user_data); + +MONO_API void mono_counters_foreach (CountersEnumCallback cb, void *user_data); + +MONO_API int mono_counters_sample (MonoCounter *counter, void *buffer, int buffer_size); + +MONO_API const char* mono_counter_get_name (MonoCounter *name); +MONO_API int mono_counter_get_type (MonoCounter *counter); +MONO_API int mono_counter_get_section (MonoCounter *counter); +MONO_API int mono_counter_get_unit (MonoCounter *counter); +MONO_API int mono_counter_get_variance (MonoCounter *counter); +MONO_API size_t mono_counter_get_size (MonoCounter *counter); + +typedef enum { + MONO_RESOURCE_JIT_CODE, /* bytes */ + MONO_RESOURCE_METADATA, /* bytes */ + MONO_RESOURCE_GC_HEAP, /* bytes */ + MONO_RESOURCE_COUNT /* non-ABI value */ +} MonoResourceType; + +typedef void (*MonoResourceCallback) (int resource_type, uintptr_t value, int is_soft); + +MONO_API int mono_runtime_resource_limit (int resource_type, uintptr_t soft_limit, uintptr_t hard_limit); +MONO_API void mono_runtime_resource_set_callback (MonoResourceCallback callback); +MONO_API void mono_runtime_resource_check_limit (int resource_type, uintptr_t value); #endif /* __MONO_COUNTERS_H__ */ diff --git a/Prism/vendor/mono/include/mono/utils/mono-dl-fallback.h b/Prism/vendor/mono/include/mono/utils/mono-dl-fallback.h index 53d4dc3..11ec4f3 100644 --- a/Prism/vendor/mono/include/mono/utils/mono-dl-fallback.h +++ b/Prism/vendor/mono/include/mono/utils/mono-dl-fallback.h @@ -5,13 +5,37 @@ #ifndef __MONO_UTILS_DL_FALLBACK_H__ #define __MONO_UTILS_DL_FALLBACK_H__ -#include +#include MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +enum { + MONO_DL_EAGER = 0, + MONO_DL_LAZY = 1, + // If MONO_DL_LOCAL is set, it will trump MONO_DL_GLOBAL. + MONO_DL_LOCAL = 2, + // MONO_DL_MASK is unused internally and no longer a full mask on netcore, given the introduction of MONO_DL_GLOBAL. Avoid. + MONO_DL_MASK = 3, + // Only applicable when building Mono in netcore mode. + MONO_DL_GLOBAL = 4 +}; + +/* + * This is the dynamic loader fallback API + */ +typedef struct MonoDlFallbackHandler MonoDlFallbackHandler; + +/* + * The "err" variable contents must be allocated using g_malloc or g_strdup + */ +typedef void* (*MonoDlFallbackLoad) (const char *name, int flags, char **err, void *user_data); +typedef void* (*MonoDlFallbackSymbol) (void *handle, const char *name, char **err, void *user_data); +typedef void* (*MonoDlFallbackClose) (void *handle, void *user_data); + +MONO_API MonoDlFallbackHandler *mono_dl_fallback_register (MonoDlFallbackLoad load_func, MonoDlFallbackSymbol symbol_func, + MonoDlFallbackClose close_func, void *user_data); + +MONO_API void mono_dl_fallback_unregister (MonoDlFallbackHandler *handler); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/utils/mono-error.h b/Prism/vendor/mono/include/mono/utils/mono-error.h index c30c62f..69bfb8a 100644 --- a/Prism/vendor/mono/include/mono/utils/mono-error.h +++ b/Prism/vendor/mono/include/mono/utils/mono-error.h @@ -5,13 +5,100 @@ #ifndef __MONO_ERROR_H__ #define __MONO_ERROR_H__ -#include +#include + +enum { + /* + The supplied strings were dup'd by means of calling mono_error_dup_strings. + */ + MONO_ERROR_FREE_STRINGS = 0x0001, + + /* + Something happened while processing the error and the resulting message is incomplete. + */ + MONO_ERROR_INCOMPLETE = 0x0002, + /* + This MonoError is heap allocated in a mempool + */ + MONO_ERROR_MEMPOOL_BOXED = 0x0004 +}; + +enum { + MONO_ERROR_NONE = 0, + MONO_ERROR_MISSING_METHOD = 1, + MONO_ERROR_MISSING_FIELD = 2, + MONO_ERROR_TYPE_LOAD = 3, + MONO_ERROR_FILE_NOT_FOUND = 4, + MONO_ERROR_BAD_IMAGE = 5, + MONO_ERROR_OUT_OF_MEMORY = 6, + MONO_ERROR_ARGUMENT = 7, + MONO_ERROR_ARGUMENT_NULL = 11, + MONO_ERROR_ARGUMENT_OUT_OF_RANGE = 14, + MONO_ERROR_NOT_VERIFIABLE = 8, + MONO_ERROR_INVALID_PROGRAM = 12, + MONO_ERROR_MEMBER_ACCESS = 13, + + /* + * This is a generic error mechanism is you need to raise an arbitrary corlib exception. + * You must pass the exception name otherwise prepare_exception will fail with internal execution. + */ + MONO_ERROR_GENERIC = 9, + /* This one encapsulates a managed exception instance */ + MONO_ERROR_EXCEPTION_INSTANCE = 10, + + /* Not a valid error code - indicates that the error was cleaned up and reused */ + MONO_ERROR_CLEANUP_CALLED_SENTINEL = 0xffff +}; + +#ifdef _MSC_VER +__pragma(warning (push)) +__pragma(warning (disable:4201)) +#endif + +/*Keep in sync with MonoErrorInternal*/ +typedef union _MonoError { + // Merge two uint16 into one uint32 so it can be initialized + // with one instruction instead of two. + uint32_t init; + struct { + uint16_t error_code; + uint16_t private_flags; /*DON'T TOUCH */ + void *hidden_1 [12]; /*DON'T TOUCH */ + }; +} MonoErrorExternal; + +#ifdef _MSC_VER +__pragma(warning (pop)) +#endif + +#ifdef MONO_INSIDE_RUNTIME +typedef union _MonoErrorInternal MonoError; +#else +typedef MonoErrorExternal MonoError; +#endif + +/* Mempool-allocated MonoError.*/ +typedef struct _MonoErrorBoxed MonoErrorBoxed; MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API MONO_RT_EXTERNAL_ONLY void +mono_error_init (MonoError *error); + +MONO_API void +mono_error_init_flags (MonoError *error, unsigned short flags); + +MONO_API void +mono_error_cleanup (MonoError *error); + +MONO_API MONO_RT_EXTERNAL_ONLY mono_bool +mono_error_ok (MonoError *error); + +MONO_API unsigned short +mono_error_get_error_code (MonoError *error); + +MONO_API const char* +mono_error_get_message (MonoError *error); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/utils/mono-forward.h b/Prism/vendor/mono/include/mono/utils/mono-forward.h index 784f6e0..9f270f2 100644 --- a/Prism/vendor/mono/include/mono/utils/mono-forward.h +++ b/Prism/vendor/mono/include/mono/utils/mono-forward.h @@ -10,6 +10,4 @@ typedef struct _MonoDomain MonoDomain; typedef struct _MonoJitInfo MonoJitInfo; -typedef void * MonoGCHandle; - #endif diff --git a/Prism/vendor/mono/include/mono/utils/mono-jemalloc.h b/Prism/vendor/mono/include/mono/utils/mono-jemalloc.h index 73d869b..6721877 100644 --- a/Prism/vendor/mono/include/mono/utils/mono-jemalloc.h +++ b/Prism/vendor/mono/include/mono/utils/mono-jemalloc.h @@ -16,11 +16,11 @@ * 2. You can use it as a global malloc replacement * 3. You can use it with a prefix. If you use it with a prefix, you have to explicitly name the malloc function. * - * In order to make this feature able to be toggled at run-time, I chose to use a prefix of mono_je. + * In order to make this feature able to be toggled at run-time, I chose to use a prefix of mono_je. * This mapping is captured below in the header, in the spirit of "no magic constants". * * The place that configures jemalloc and sets this prefix is in the Makefile in - * mono/jemalloc/Makefile.am + * mono/jemalloc/Makefile.am * */ #define MONO_JEMALLOC_MALLOC mono_jemalloc diff --git a/Prism/vendor/mono/include/mono/utils/mono-logger.h b/Prism/vendor/mono/include/mono/utils/mono-logger.h index 477e362..a90e6c5 100644 --- a/Prism/vendor/mono/include/mono/utils/mono-logger.h +++ b/Prism/vendor/mono/include/mono/utils/mono-logger.h @@ -8,11 +8,23 @@ #include MONO_BEGIN_DECLS -#include +MONO_API void +mono_trace_set_level_string (const char *value); -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +MONO_API void +mono_trace_set_mask_string (const char *value); + +typedef void (*MonoPrintCallback) (const char *string, mono_bool is_stdout); +typedef void (*MonoLogCallback) (const char *log_domain, const char *log_level, const char *message, mono_bool fatal, void *user_data); + +MONO_API void +mono_trace_set_log_handler (MonoLogCallback callback, void *user_data); + +MONO_API void +mono_trace_set_print_handler (MonoPrintCallback callback); + +MONO_API void +mono_trace_set_printerr_handler (MonoPrintCallback callback); MONO_END_DECLS diff --git a/Prism/vendor/mono/include/mono/utils/mono-private-unstable.h b/Prism/vendor/mono/include/mono/utils/mono-private-unstable.h deleted file mode 100644 index 489c345..0000000 --- a/Prism/vendor/mono/include/mono/utils/mono-private-unstable.h +++ /dev/null @@ -1,19 +0,0 @@ -/** - * \file - * - * Private unstable APIs. - * - * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at - * any time. - * - */ - - -#ifndef __MONO_UTILS_MONO_PRIVATE_UNSTABLE_H__ -#define __MONO_UTILS_MONO_PRIVATE_UNSTABLE_H__ - -#include - - - -#endif /*__MONO_UTILS_MONO_PRIVATE_UNSTABLE_H__*/ diff --git a/Prism/vendor/mono/include/mono/utils/mono-publib.h b/Prism/vendor/mono/include/mono/utils/mono-publib.h index 72f91a2..1209f5c 100644 --- a/Prism/vendor/mono/include/mono/utils/mono-publib.h +++ b/Prism/vendor/mono/include/mono/utils/mono-publib.h @@ -5,13 +5,189 @@ #ifndef __MONO_PUBLIB_H__ #define __MONO_PUBLIB_H__ -#include +/* + * Minimal general purpose header for use in public mono header files. + * We can't include config.h, so we use compiler-specific preprocessor + * directives where needed. + */ + +#ifdef __cplusplus +#define MONO_BEGIN_DECLS extern "C" { +#define MONO_END_DECLS } +#else +#define MONO_BEGIN_DECLS /* nothing */ +#define MONO_END_DECLS /* nothing */ +#endif MONO_BEGIN_DECLS -#define MONO_API_FUNCTION(ret,name,args) MONO_API ret name args; -#include -#undef MONO_API_FUNCTION +/* VS 2010 and later have stdint.h */ +#if defined(_MSC_VER) + +#if _MSC_VER < 1600 + +typedef __int8 int8_t; +typedef unsigned __int8 uint8_t; +typedef __int16 int16_t; +typedef unsigned __int16 uint16_t; +typedef __int32 int32_t; +typedef unsigned __int32 uint32_t; +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; + +#else + +#include + +#endif + +#define MONO_API_EXPORT __declspec(dllexport) +#define MONO_API_IMPORT __declspec(dllimport) + +#else + +#include + +#if defined (__clang__) || defined (__GNUC__) +#define MONO_API_EXPORT __attribute__ ((__visibility__ ("default"))) +#else +#define MONO_API_EXPORT +#endif +#define MONO_API_IMPORT + +#endif /* end of compiler-specific stuff */ + +#include + +#ifdef __cplusplus +#define MONO_EXTERN_C extern "C" +#else +#define MONO_EXTERN_C /* nothing */ +#endif + +#if defined(MONO_DLL_EXPORT) + #define MONO_API_NO_EXTERN_C MONO_API_EXPORT +#elif defined(MONO_DLL_IMPORT) + #define MONO_API_NO_EXTERN_C MONO_API_IMPORT +#else + #define MONO_API_NO_EXTERN_C /* nothing */ +#endif + +#define MONO_API MONO_EXTERN_C MONO_API_NO_EXTERN_C + +// extern "C" extern int c; // warning: duplicate 'extern' declaration specifier [-Wduplicate-decl-specifier] +// +// Therefore, remove extern on functions as always meaningless/redundant, +// and provide MONO_API_DATA for data, that always has one and only one extern. +#ifdef __cplusplus +#define MONO_API_DATA MONO_API +#else +#define MONO_API_DATA extern MONO_API +#endif + +typedef int32_t mono_bool; +typedef uint8_t mono_byte; +typedef mono_byte MonoBoolean; +#ifdef _WIN32 +MONO_END_DECLS +#include +typedef wchar_t mono_unichar2; +MONO_BEGIN_DECLS +#else +typedef uint16_t mono_unichar2; +#endif +typedef uint32_t mono_unichar4; + +typedef void (*MonoFunc) (void* data, void* user_data); +typedef void (*MonoHFunc) (void* key, void* value, void* user_data); + +MONO_API void mono_free (void *); + +#define MONO_ALLOCATOR_VTABLE_VERSION 1 + +typedef struct { + int version; + void *(*malloc) (size_t size); + void *(*realloc) (void *mem, size_t count); + void (*free) (void *mem); + void *(*calloc) (size_t count, size_t size); +} MonoAllocatorVTable; + +MONO_API mono_bool +mono_set_allocator_vtable (MonoAllocatorVTable* vtable); + + +#define MONO_CONST_RETURN const + +/* + * When embedding, you have to define MONO_ZERO_LEN_ARRAY before including any + * other Mono header file if you use a different compiler from the one used to + * build Mono. + */ +#ifndef MONO_ZERO_LEN_ARRAY +#ifdef __GNUC__ +#define MONO_ZERO_LEN_ARRAY 0 +#else +#define MONO_ZERO_LEN_ARRAY 1 +#endif +#endif + +#if defined (MONO_INSIDE_RUNTIME) + +#if defined (__CENTRINEL__) +/* Centrinel is an analyzer that warns about raw pointer to managed objects + * inside Mono. + */ +#define MONO_RT_MANAGED_ATTR __CENTRINEL_MANAGED_ATTR +#define MONO_RT_CENTRINEL_SUPPRESS __CENTRINEL_SUPPRESS_ATTR(1) +#else +#define MONO_RT_MANAGED_ATTR +#define MONO_RT_CENTRINEL_SUPPRESS +#endif + +#if defined (__clang__) || defined (__GNUC__) +// attribute(deprecated(message)) was introduced in gcc 4.5. +// attribute(deprecated)) was introduced in gcc 4.0. +// Compare: https://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Function-Attributes.html +// https://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Function-Attributes.html +// https://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Function-Attributes.html +#if defined (__clang__) || (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) +#define MONO_RT_EXTERNAL_ONLY \ + __attribute__ ((__deprecated__ ("The mono runtime must not call this function."))) \ + MONO_RT_CENTRINEL_SUPPRESS +#elif __GNUC__ >= 4 +#define MONO_RT_EXTERNAL_ONLY __attribute__ ((__deprecated__)) MONO_RT_CENTRINEL_SUPPRESS +#else +#define MONO_RT_EXTERNAL_ONLY MONO_RT_CENTRINEL_SUPPRESS +#endif + +#if defined (__clang__) || (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) +// Pragmas for controlling diagnostics appear to be from gcc 4.2. +// This is used in place of configure gcc -Werror=deprecated-declarations: +// 1. To be portable across build systems. +// 2. configure is very sensitive to compiler flags; they break autoconf's probes. +// Though #2 can be mitigated by being late in configure. +#pragma GCC diagnostic error "-Wdeprecated-declarations" +#endif + +#else +#define MONO_RT_EXTERNAL_ONLY MONO_RT_CENTRINEL_SUPPRESS +#endif // clang or gcc + +#else +#define MONO_RT_EXTERNAL_ONLY +#define MONO_RT_MANAGED_ATTR +#endif /* MONO_INSIDE_RUNTIME */ + +#if defined (__clang__) || defined (__GNUC__) +#define _MONO_DEPRECATED __attribute__ ((__deprecated__)) +#elif defined (_MSC_VER) +#define _MONO_DEPRECATED __declspec (deprecated) +#else +#define _MONO_DEPRECATED +#endif + +#define MONO_DEPRECATED MONO_API MONO_RT_EXTERNAL_ONLY _MONO_DEPRECATED MONO_END_DECLS diff --git a/Prism/vendor/mono/lib/Windows/MonoPosixHelper.lib b/Prism/vendor/mono/lib/Windows/MonoPosixHelper.lib new file mode 100644 index 0000000..1a9ce29 Binary files /dev/null and b/Prism/vendor/mono/lib/Windows/MonoPosixHelper.lib differ diff --git a/Prism/vendor/mono/lib/Windows/MonoPosixHelper.pdb b/Prism/vendor/mono/lib/Windows/MonoPosixHelper.pdb new file mode 100644 index 0000000..d55f392 Binary files /dev/null and b/Prism/vendor/mono/lib/Windows/MonoPosixHelper.pdb differ diff --git a/Prism/vendor/mono/lib/Windows/coreclr.import.lib b/Prism/vendor/mono/lib/Windows/coreclr.import.lib deleted file mode 100644 index c8b9d62..0000000 Binary files a/Prism/vendor/mono/lib/Windows/coreclr.import.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/libmono-static-sgen.lib b/Prism/vendor/mono/lib/Windows/libmono-static-sgen.lib new file mode 100644 index 0000000..74e9a31 Binary files /dev/null and b/Prism/vendor/mono/lib/Windows/libmono-static-sgen.lib differ diff --git a/Prism/vendor/mono/lib/Windows/mono-2.0-sgen.lib b/Prism/vendor/mono/lib/Windows/mono-2.0-sgen.lib new file mode 100644 index 0000000..7d7b3c8 Binary files /dev/null and b/Prism/vendor/mono/lib/Windows/mono-2.0-sgen.lib differ diff --git a/Prism/vendor/mono/lib/Windows/mono-2.0-sgen.pdb b/Prism/vendor/mono/lib/Windows/mono-2.0-sgen.pdb new file mode 100644 index 0000000..8bf7906 Binary files /dev/null and b/Prism/vendor/mono/lib/Windows/mono-2.0-sgen.pdb differ diff --git a/Prism/vendor/mono/lib/Windows/mono-component-debugger-static.lib b/Prism/vendor/mono/lib/Windows/mono-component-debugger-static.lib deleted file mode 100644 index da302aa..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-component-debugger-static.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/mono-component-debugger-stub-static.lib b/Prism/vendor/mono/lib/Windows/mono-component-debugger-stub-static.lib deleted file mode 100644 index 762752d..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-component-debugger-stub-static.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/mono-component-diagnostics_tracing-static.lib b/Prism/vendor/mono/lib/Windows/mono-component-diagnostics_tracing-static.lib deleted file mode 100644 index 793939a..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-component-diagnostics_tracing-static.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/mono-component-diagnostics_tracing-stub-static.lib b/Prism/vendor/mono/lib/Windows/mono-component-diagnostics_tracing-stub-static.lib deleted file mode 100644 index bb9d1cc..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-component-diagnostics_tracing-stub-static.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/mono-component-hot_reload-static.lib b/Prism/vendor/mono/lib/Windows/mono-component-hot_reload-static.lib deleted file mode 100644 index b598529..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-component-hot_reload-static.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/mono-component-hot_reload-stub-static.lib b/Prism/vendor/mono/lib/Windows/mono-component-hot_reload-stub-static.lib deleted file mode 100644 index d6f15a4..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-component-hot_reload-stub-static.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/mono-component-marshal-ilgen-static.lib b/Prism/vendor/mono/lib/Windows/mono-component-marshal-ilgen-static.lib deleted file mode 100644 index 3f58c65..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-component-marshal-ilgen-static.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/mono-component-marshal-ilgen-stub-static.lib b/Prism/vendor/mono/lib/Windows/mono-component-marshal-ilgen-stub-static.lib deleted file mode 100644 index 92f9325..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-component-marshal-ilgen-stub-static.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/mono-profiler-aot.lib b/Prism/vendor/mono/lib/Windows/mono-profiler-aot.lib deleted file mode 100644 index ad48ab1..0000000 Binary files a/Prism/vendor/mono/lib/Windows/mono-profiler-aot.lib and /dev/null differ diff --git a/Prism/vendor/mono/lib/Windows/monosgen-2.0.lib b/Prism/vendor/mono/lib/Windows/monosgen-2.0.lib deleted file mode 100644 index a6ac41e..0000000 Binary files a/Prism/vendor/mono/lib/Windows/monosgen-2.0.lib and /dev/null differ