Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
0.0.53 - Version checker
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRealSean committed Dec 30, 2022
1 parent f34a7e3 commit ae2dd6b
Show file tree
Hide file tree
Showing 18 changed files with 67 additions and 22 deletions.
22 changes: 17 additions & 5 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
16 changes: 3 additions & 13 deletions _update.txt
Original file line number Diff line number Diff line change
@@ -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
Binary file modified bin/Debug/net7.0/cs.dll
Binary file not shown.
Binary file modified bin/Debug/net7.0/cs.pdb
Binary file not shown.
Binary file modified bin/Debug/net7.0/linux-x64/cs.dll
Binary file not shown.
Binary file modified bin/Debug/net7.0/linux-x64/cs.pdb
Binary file not shown.
Binary file modified bin/Debug/net7.0/win-x64/cs.dll
Binary file not shown.
Binary file modified bin/Debug/net7.0/win-x64/cs.pdb
Binary file not shown.
Binary file modified obj/Debug/net7.0/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/cs.pdb
Binary file not shown.
Binary file modified obj/Debug/net7.0/linux-x64/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/linux-x64/cs.pdb
Binary file not shown.
Binary file modified obj/Debug/net7.0/win-x64/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/win-x64/cs.pdb
Binary file not shown.
19 changes: 19 additions & 0 deletions obj/cs.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,32 @@
],
"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"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.101/RuntimeIdentifierGraph.json"
}
},
"runtimes": {
"win-x64": {
"#import": []
}
}
}
}
Expand Down
22 changes: 21 additions & 1 deletion obj/project.assets.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"version": 3,
"targets": {
"net7.0": {}
"net7.0": {},
"net7.0/win-x64": {}
},
"libraries": {},
"projectFileDependencyGroups": {
Expand Down Expand Up @@ -54,13 +55,32 @@
],
"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"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.101/RuntimeIdentifierGraph.json"
}
},
"runtimes": {
"win-x64": {
"#import": []
}
}
}
}
8 changes: 6 additions & 2 deletions obj/project.nuget.cache
Original file line number Diff line number Diff line change
@@ -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": []
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.51
0.0.53

0 comments on commit ae2dd6b

Please sign in to comment.