Cache settings are written and parsed.

This commit is contained in:
initsuj 2016-03-01 19:20:05 -07:00 committed by Justin Slauson
parent b10e3e8521
commit 1a41c42ba9
2 changed files with 22 additions and 0 deletions

View 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 };
}
}

View file

@ -29,6 +29,9 @@ namespace MinecraftClient
public static string SingleCommand = "";
public static string ConsoleTitle = "";
//Cache Settings
public static Cache.AuthCacheHandler.Type CacheType = Cache.AuthCacheHandler.Type.NONE;
//Proxy Settings
public static bool ProxyEnabledLogin = false;
public static bool ProxyEnabledIngame = false;
@ -200,6 +203,12 @@ namespace MinecraftClient
}
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":
if (File.Exists(argValue))
{
@ -416,6 +425,7 @@ namespace MinecraftClient
+ "showsystemmessages=true #system messages for server ops\r\n"
+ "showxpbarmessages=true #messages displayed above xp bar\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"
+ "serverlist=servers.txt\r\n"
+ "playerheadicon=true\r\n"