mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Cache settings are written and parsed.
This commit is contained in:
parent
b10e3e8521
commit
1a41c42ba9
2 changed files with 22 additions and 0 deletions
12
MinecraftClient/Cache/AuthCacheHandler.cs
Normal file
12
MinecraftClient/Cache/AuthCacheHandler.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace MinecraftClient.Cache
|
||||||
|
{
|
||||||
|
public static class AuthCacheHandler
|
||||||
|
{
|
||||||
|
public enum Type { NONE, MEMORY, DISK };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -29,6 +29,9 @@ namespace MinecraftClient
|
||||||
public static string SingleCommand = "";
|
public static string SingleCommand = "";
|
||||||
public static string ConsoleTitle = "";
|
public static string ConsoleTitle = "";
|
||||||
|
|
||||||
|
//Cache Settings
|
||||||
|
public static Cache.AuthCacheHandler.Type CacheType = Cache.AuthCacheHandler.Type.NONE;
|
||||||
|
|
||||||
//Proxy Settings
|
//Proxy Settings
|
||||||
public static bool ProxyEnabledLogin = false;
|
public static bool ProxyEnabledLogin = false;
|
||||||
public static bool ProxyEnabledIngame = false;
|
public static bool ProxyEnabledIngame = false;
|
||||||
|
|
@ -200,6 +203,12 @@ namespace MinecraftClient
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "accountcache":
|
||||||
|
if(argValue == "none") { CacheType = Cache.AuthCacheHandler.Type.NONE; }
|
||||||
|
else if(argValue == "memory") { CacheType = Cache.AuthCacheHandler.Type.MEMORY; }
|
||||||
|
else if(argValue == "disk") { CacheType = Cache.AuthCacheHandler.Type.DISK; }
|
||||||
|
break;
|
||||||
|
|
||||||
case "accountlist":
|
case "accountlist":
|
||||||
if (File.Exists(argValue))
|
if (File.Exists(argValue))
|
||||||
{
|
{
|
||||||
|
|
@ -416,6 +425,7 @@ namespace MinecraftClient
|
||||||
+ "showsystemmessages=true #system messages for server ops\r\n"
|
+ "showsystemmessages=true #system messages for server ops\r\n"
|
||||||
+ "showxpbarmessages=true #messages displayed above xp bar\r\n"
|
+ "showxpbarmessages=true #messages displayed above xp bar\r\n"
|
||||||
+ "terrainandmovements=false #uses more ram, cpu, bandwidth\r\n"
|
+ "terrainandmovements=false #uses more ram, cpu, bandwidth\r\n"
|
||||||
|
+ "accountcache=none #use 'none', 'memory' or 'disk'\r\n"
|
||||||
+ "accountlist=accounts.txt\r\n"
|
+ "accountlist=accounts.txt\r\n"
|
||||||
+ "serverlist=servers.txt\r\n"
|
+ "serverlist=servers.txt\r\n"
|
||||||
+ "playerheadicon=true\r\n"
|
+ "playerheadicon=true\r\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue