diff --git a/Program.cs b/Program.cs index 030dd54..0baabeb 100644 --- a/Program.cs +++ b/Program.cs @@ -67,14 +67,26 @@ class Menu static void Main() { TextTool.TextGen("", 1, true, false, 1000); - TextTool.TextGen("\n\n\t---< Game made by NotRealSean >---\n\n\nReport bug/suggestion at...\nDiscord - NotRealSean#4001\nTwitter - @Seankungzaza1\n", 1, true, false); - Console.WriteLine("\nLoading settings...[Require internet]"); + TextTool.TextGen("\n\n\t---< Game made by NotRealSean >---\n\n\nReport bug/suggestion at...\nDiscord - NotRealSean#4001\nTwitter - @Seankungzaza1\n\n\n", 1, true, false); + Console.WriteLine("Loading log :\nLoading settings[Require internet]"); Settings.check(); FileTool.CheckCreatedFolder("save"); Console.WriteLine("Settings loaded"); - Console.WriteLine("Checking for update"); - string version = "0.0.51"; - + Console.WriteLine("Checking for update[Require internet]"); + string version = "0.0.53"; + System.Net.WebClient gitversion = new System.Net.WebClient(); + string versionData = gitversion.DownloadString("https://raw.githubusercontent.com/NotRealSean/Console-Visual-Novel-Text-Base-Game/main/version"); + if (version != versionData) + { + Console.WriteLine("Your game version is outdated\nYour game version : " + version + "\nNew version : " + versionData); + Console.WriteLine("Download new version here : https://github.com/NotRealSean/Console-Visual-Novel-Text-Base-Game/releases"); + Console.WriteLine("You can still play the game by press any key to continue..."); + } + else if (version == versionData) + { + Console.WriteLine("Your game is up to date : " + versionData); + Console.WriteLine("Press any key to continue..."); + } Console.ReadKey(); while (true) { diff --git a/_update.txt b/_update.txt index cfc1845..4ff79da 100644 --- a/_update.txt +++ b/_update.txt @@ -1,14 +1,4 @@ Don't forget to check if game version match this update note - 0.0.52 -Bug fix -+- Fix Guide, Credit and Update not update correctly - - - Framework Function -+ Settings.Read() Function is now can enter slot and name of settings in json file - - Function structure: - public static string Read(int slot, string name) - - Example : - int textspeed = Convert.ToInt32(Settings.Read(0, "TextSpeed")); + 0.0.53 +Settings ++ Added version checker diff --git a/bin/Debug/net7.0/cs.dll b/bin/Debug/net7.0/cs.dll index a8d9863..32b90cc 100644 Binary files a/bin/Debug/net7.0/cs.dll and b/bin/Debug/net7.0/cs.dll differ diff --git a/bin/Debug/net7.0/cs.pdb b/bin/Debug/net7.0/cs.pdb index 3feaab9..4589b0e 100644 Binary files a/bin/Debug/net7.0/cs.pdb and b/bin/Debug/net7.0/cs.pdb differ diff --git a/bin/Debug/net7.0/linux-x64/cs.dll b/bin/Debug/net7.0/linux-x64/cs.dll index f3cd389..0cd3926 100644 Binary files a/bin/Debug/net7.0/linux-x64/cs.dll and b/bin/Debug/net7.0/linux-x64/cs.dll differ diff --git a/bin/Debug/net7.0/linux-x64/cs.pdb b/bin/Debug/net7.0/linux-x64/cs.pdb index 55a0c30..7c09ec6 100644 Binary files a/bin/Debug/net7.0/linux-x64/cs.pdb and b/bin/Debug/net7.0/linux-x64/cs.pdb differ diff --git a/bin/Debug/net7.0/win-x64/cs.dll b/bin/Debug/net7.0/win-x64/cs.dll index a609739..8639b24 100644 Binary files a/bin/Debug/net7.0/win-x64/cs.dll and b/bin/Debug/net7.0/win-x64/cs.dll differ diff --git a/bin/Debug/net7.0/win-x64/cs.pdb b/bin/Debug/net7.0/win-x64/cs.pdb index e21aa69..9b942a5 100644 Binary files a/bin/Debug/net7.0/win-x64/cs.pdb and b/bin/Debug/net7.0/win-x64/cs.pdb differ diff --git a/obj/Debug/net7.0/cs.dll b/obj/Debug/net7.0/cs.dll index a8d9863..32b90cc 100644 Binary files a/obj/Debug/net7.0/cs.dll and b/obj/Debug/net7.0/cs.dll differ diff --git a/obj/Debug/net7.0/cs.pdb b/obj/Debug/net7.0/cs.pdb index 3feaab9..4589b0e 100644 Binary files a/obj/Debug/net7.0/cs.pdb and b/obj/Debug/net7.0/cs.pdb differ diff --git a/obj/Debug/net7.0/linux-x64/cs.dll b/obj/Debug/net7.0/linux-x64/cs.dll index f3cd389..0cd3926 100644 Binary files a/obj/Debug/net7.0/linux-x64/cs.dll and b/obj/Debug/net7.0/linux-x64/cs.dll differ diff --git a/obj/Debug/net7.0/linux-x64/cs.pdb b/obj/Debug/net7.0/linux-x64/cs.pdb index 55a0c30..7c09ec6 100644 Binary files a/obj/Debug/net7.0/linux-x64/cs.pdb and b/obj/Debug/net7.0/linux-x64/cs.pdb differ diff --git a/obj/Debug/net7.0/win-x64/cs.dll b/obj/Debug/net7.0/win-x64/cs.dll index a609739..8639b24 100644 Binary files a/obj/Debug/net7.0/win-x64/cs.dll and b/obj/Debug/net7.0/win-x64/cs.dll differ diff --git a/obj/Debug/net7.0/win-x64/cs.pdb b/obj/Debug/net7.0/win-x64/cs.pdb index e21aa69..9b942a5 100644 Binary files a/obj/Debug/net7.0/win-x64/cs.pdb and b/obj/Debug/net7.0/win-x64/cs.pdb differ diff --git a/obj/cs.csproj.nuget.dgspec.json b/obj/cs.csproj.nuget.dgspec.json index 05d2b95..35b2506 100644 --- a/obj/cs.csproj.nuget.dgspec.json +++ b/obj/cs.csproj.nuget.dgspec.json @@ -48,6 +48,20 @@ ], "assetTargetFallback": true, "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Runtime.win-x64", + "version": "[7.0.1, 7.0.1]" + }, + { + "name": "Microsoft.NETCore.App.Host.win-x64", + "version": "[7.0.1, 7.0.1]" + }, + { + "name": "Microsoft.NETCore.App.Runtime.win-x64", + "version": "[7.0.1, 7.0.1]" + } + ], "frameworkReferences": { "Microsoft.NETCore.App": { "privateAssets": "all" @@ -55,6 +69,11 @@ }, "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.101/RuntimeIdentifierGraph.json" } + }, + "runtimes": { + "win-x64": { + "#import": [] + } } } } diff --git a/obj/project.assets.json b/obj/project.assets.json index 119352b..988ba26 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -1,7 +1,8 @@ { "version": 3, "targets": { - "net7.0": {} + "net7.0": {}, + "net7.0/win-x64": {} }, "libraries": {}, "projectFileDependencyGroups": { @@ -54,6 +55,20 @@ ], "assetTargetFallback": true, "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Runtime.win-x64", + "version": "[7.0.1, 7.0.1]" + }, + { + "name": "Microsoft.NETCore.App.Host.win-x64", + "version": "[7.0.1, 7.0.1]" + }, + { + "name": "Microsoft.NETCore.App.Runtime.win-x64", + "version": "[7.0.1, 7.0.1]" + } + ], "frameworkReferences": { "Microsoft.NETCore.App": { "privateAssets": "all" @@ -61,6 +76,11 @@ }, "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.101/RuntimeIdentifierGraph.json" } + }, + "runtimes": { + "win-x64": { + "#import": [] + } } } } \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache index 38159c9..d635cc8 100644 --- a/obj/project.nuget.cache +++ b/obj/project.nuget.cache @@ -1,8 +1,12 @@ { "version": 2, - "dgSpecHash": "/KVIKAfYb8YsKxXsRjT0I0pvWl5qIL9V/s6Yu/i4/QilgLowc/g1Gr3JePBcu+qL/QgR9rgppufKM0uXzklvWg==", + "dgSpecHash": "iidJA7FX/u0mCQdJbShNwjkI3E1VHTRJvCiS4+YnIUfM5RdTxoaNLy5OW2Sto3RGqKzau3rMGiQAgDtYLT7OjQ==", "success": true, "projectFilePath": "/home/notrealsean/Desktop/Code/cs/consoleapp/VNgame/cs.csproj", - "expectedPackageFiles": [], + "expectedPackageFiles": [ + "/home/notrealsean/.nuget/packages/microsoft.netcore.app.runtime.win-x64/7.0.1/microsoft.netcore.app.runtime.win-x64.7.0.1.nupkg.sha512", + "/home/notrealsean/.nuget/packages/microsoft.aspnetcore.app.runtime.win-x64/7.0.1/microsoft.aspnetcore.app.runtime.win-x64.7.0.1.nupkg.sha512", + "/home/notrealsean/.nuget/packages/microsoft.netcore.app.host.win-x64/7.0.1/microsoft.netcore.app.host.win-x64.7.0.1.nupkg.sha512" + ], "logs": [] } \ No newline at end of file diff --git a/version b/version index ba4921c..618e670 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.0.51 \ No newline at end of file +0.0.53 \ No newline at end of file