rebuild file struct

This commit is contained in:
Nitload
2024-05-28 17:55:59 +08:00
parent 70890e3e33
commit 0cac40255b
36 changed files with 303 additions and 247 deletions
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -71,7 +71,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
}
}
}
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("BenchMark")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+66efce19fcb461782c49255dc5500144f8c267e6")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+70890e3e339064993a7c905683c70a3ec5bd47f4")]
[assembly: System.Reflection.AssemblyProductAttribute("BenchMark")]
[assembly: System.Reflection.AssemblyTitleAttribute("BenchMark")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+1 -1
View File
@@ -1824,7 +1824,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
}
}
}
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("OEM")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+66efce19fcb461782c49255dc5500144f8c267e6")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+70890e3e339064993a7c905683c70a3ec5bd47f4")]
[assembly: System.Reflection.AssemblyProductAttribute("OEM")]
[assembly: System.Reflection.AssemblyTitleAttribute("OEM")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
@@ -57,13 +57,13 @@
"Microsoft.DotNet.ILCompiler": {
"suppressParent": "All",
"target": "Package",
"version": "[8.0.3, )",
"version": "[8.0.5, )",
"autoReferenced": true
},
"Microsoft.NET.ILLink.Tasks": {
"suppressParent": "All",
"target": "Package",
"version": "[8.0.3, )",
"version": "[8.0.5, )",
"autoReferenced": true
}
},
@@ -81,7 +81,7 @@
"downloadDependencies": [
{
"name": "runtime.win-x64.Microsoft.DotNet.ILCompiler",
"version": "[8.0.3, 8.0.3]"
"version": "[8.0.5, 8.0.5]"
}
],
"frameworkReferences": {
@@ -89,7 +89,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205/PortableRuntimeIdentifierGraph.json"
}
}
},
@@ -165,7 +165,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
}
}
}
+16 -16
View File
@@ -11,13 +11,13 @@
"lib/netcoreapp2.0/_._": {}
}
},
"Microsoft.DotNet.ILCompiler/8.0.3": {
"Microsoft.DotNet.ILCompiler/8.0.5": {
"type": "package",
"build": {
"build/Microsoft.DotNet.ILCompiler.props": {}
}
},
"Microsoft.NET.ILLink.Tasks/8.0.3": {
"Microsoft.NET.ILLink.Tasks/8.0.5": {
"type": "package",
"build": {
"build/Microsoft.NET.ILLink.Tasks.props": {}
@@ -108,10 +108,10 @@
"version.txt"
]
},
"Microsoft.DotNet.ILCompiler/8.0.3": {
"sha512": "LGNORlVTRa2FDy3OcP3Xu1ZSJW4tz2ATO3WrHUwHg7kxbR9HChezgJ51CwZJQt8+Yp6acp32FDC/FTPdFDOumQ==",
"Microsoft.DotNet.ILCompiler/8.0.5": {
"sha512": "tfdncRQLXNpATB4Ykj11O5+fbkBAHoeLi6XfyxAWmilU4rwC3apT612RIuhqB6tBGE69G7Dl1g7HeydsH3Wz1w==",
"type": "package",
"path": "microsoft.dotnet.ilcompiler/8.0.3",
"path": "microsoft.dotnet.ilcompiler/8.0.5",
"hasTools": true,
"files": [
".nupkg.metadata",
@@ -130,7 +130,7 @@
"build/NativeAOT.natvis",
"build/WindowsAPIs.txt",
"build/findvcvarsall.bat",
"microsoft.dotnet.ilcompiler.8.0.3.nupkg.sha512",
"microsoft.dotnet.ilcompiler.8.0.5.nupkg.sha512",
"microsoft.dotnet.ilcompiler.nuspec",
"runtime.json",
"tools/netstandard/ILCompiler.Build.Tasks.deps.json",
@@ -138,10 +138,10 @@
"tools/netstandard/ILCompiler.Build.Tasks.pdb"
]
},
"Microsoft.NET.ILLink.Tasks/8.0.3": {
"sha512": "0kwNg0LBIvVTx9A2mo9Mnw4wLGtaeQgjSz5P13bOOwdWPPLe9HzI+XTkwiMhS7iQCM6X4LAbFR76xScaMw0MrA==",
"Microsoft.NET.ILLink.Tasks/8.0.5": {
"sha512": "4ISW1Ndgz86FkIbu5rVlMqhhtojdy5rUlxC/N+9kPh9qbYcvHiCvYbHKzAPVIx9OPYIjT9trXt7JI42Y5Ukq6A==",
"type": "package",
"path": "microsoft.net.illink.tasks/8.0.3",
"path": "microsoft.net.illink.tasks/8.0.5",
"hasTools": true,
"files": [
".nupkg.metadata",
@@ -155,7 +155,7 @@
"build/Microsoft.NET.ILLink.Analyzers.props",
"build/Microsoft.NET.ILLink.Tasks.props",
"build/Microsoft.NET.ILLink.targets",
"microsoft.net.illink.tasks.8.0.3.nupkg.sha512",
"microsoft.net.illink.tasks.8.0.5.nupkg.sha512",
"microsoft.net.illink.tasks.nuspec",
"tools/net472/ILLink.Tasks.dll",
"tools/net472/ILLink.Tasks.dll.config",
@@ -197,8 +197,8 @@
},
"projectFileDependencyGroups": {
"net8.0": [
"Microsoft.DotNet.ILCompiler >= 8.0.3",
"Microsoft.NET.ILLink.Tasks >= 8.0.3",
"Microsoft.DotNet.ILCompiler >= 8.0.5",
"Microsoft.NET.ILLink.Tasks >= 8.0.5",
"StgSharp >= 1.0.0"
]
},
@@ -259,13 +259,13 @@
"Microsoft.DotNet.ILCompiler": {
"suppressParent": "All",
"target": "Package",
"version": "[8.0.3, )",
"version": "[8.0.5, )",
"autoReferenced": true
},
"Microsoft.NET.ILLink.Tasks": {
"suppressParent": "All",
"target": "Package",
"version": "[8.0.3, )",
"version": "[8.0.5, )",
"autoReferenced": true
}
},
@@ -283,7 +283,7 @@
"downloadDependencies": [
{
"name": "runtime.win-x64.Microsoft.DotNet.ILCompiler",
"version": "[8.0.3, 8.0.3]"
"version": "[8.0.5, 8.0.5]"
}
],
"frameworkReferences": {
@@ -291,7 +291,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205/PortableRuntimeIdentifierGraph.json"
}
}
}
@@ -31,9 +31,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
@@ -42,28 +40,7 @@ namespace StgSharp
public static unsafe partial class StgSharp
{
static byte[] _currentHash;
private static bool _inited;
internal const int ssdSegmentLength = 16;
public static byte[] CurrentAssemblyHash
{
get
{
if (_currentHash == null)
{
string route = Assembly.GetExecutingAssembly().Location;
string time = DateTime.UtcNow.ToString();
using (SHA256 sh = SHA256.Create())
{
byte[] bytes = Encoding.UTF8.GetBytes(route);
_currentHash = sh.ComputeHash(bytes);
}
}
return _currentHash;
}
}
/// <summary>
/// Init an instance of OpenGL program,
@@ -99,5 +76,5 @@ namespace StgSharp
}
}//------------------------end of class------------------------//
}
}
+1 -27
View File
@@ -64,8 +64,6 @@ namespace StgSharp
VK
}
public static partial class StgSharp
{
@@ -85,29 +83,6 @@ namespace StgSharp
mainTimeProvider = new StgSharpTime();
MainTimeProvider.StartProvidingTime();
InternalIO.glfwInit();
InternalIO.InternalAppendLog("\n\n\n");
InternalIO.InternalWriteLog(
$"Program {Assembly.GetEntryAssembly()!.FullName} Started.",
LogType.Info);
}
public static void LogError(Exception ex)
{
InternalIO.InternalWriteLog(ex.Message, LogType.Error);
}
public static void LogWarning(string log)
{
InternalIO.InternalWriteLog(log, LogType.Warning);
}
public static void LogWarning(Exception notVerySeriesException)
{
InternalIO.InternalWriteLog(notVerySeriesException.Message, LogType.Warning);
}
public static void LogInfo(string log)
{
InternalIO.InternalWriteLog(log, LogType.Info);
}
public static void Mark(bool needConsole)
@@ -122,7 +97,6 @@ namespace StgSharp
public static void Terminate()
{
MainTimeProvider.Terminate();
InternalIO.glfwTerminate();
}
public static void Track(
@@ -155,7 +129,7 @@ namespace StgSharp
}
/// <summary>
/// Write a log message to log file, and mark the _level of this message.
/// Write a log message to log file, and mark the level of this message.
/// </summary>
/// <param name="message">A string contains information of how current evironment runs.</param>
/// <param name="logType">The severity of current message.</param>
@@ -28,7 +28,7 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Logic;
using StgSharpDebug.Logic;
using System;
using System.Collections.Generic;
@@ -122,6 +122,12 @@ namespace StgSharp.Math
return new Radius(left._radius / right);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float operator /(Radius left, Radius right)
{
return left._radius / right._radius;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool operator ==(Radius left, Radius right)
{
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharp")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2e57126ab72b0065e6ff52c0a2d1c9425307043e")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+70890e3e339064993a7c905683c70a3ec5bd47f4")]
[assembly: System.Reflection.AssemblyProductAttribute("StgSharp")]
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharp")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
@@ -72,7 +72,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
}
}
}
@@ -285,7 +285,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
}
}
}
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharpDebug")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+a3506c96a3f6c7df608c22594ca2eaec41efa511")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+70890e3e339064993a7c905683c70a3ec5bd47f4")]
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("StgsharpEnvDebug")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+66efce19fcb461782c49255dc5500144f8c267e6")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+70890e3e339064993a7c905683c70a3ec5bd47f4")]
[assembly: System.Reflection.AssemblyProductAttribute("StgsharpEnvDebug")]
[assembly: System.Reflection.AssemblyTitleAttribute("StgsharpEnvDebug")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
@@ -69,7 +69,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
}
}
},
@@ -145,7 +145,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
}
}
}
@@ -176,7 +176,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
}
}
}