Update 0.01 E
This commit is contained in:
+7
-11
@@ -1,14 +1,12 @@
|
||||
// ConfigLoader.cs
|
||||
using System;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Runtime.Remoting.Messaging;
|
||||
|
||||
namespace Lua
|
||||
{
|
||||
internal static class ConfigLoader
|
||||
{
|
||||
// Basic flags / settings
|
||||
// Basic flags/settings
|
||||
public static bool debitFlag1 = false;
|
||||
public static bool betaTest = false;
|
||||
public static bool ttsEnabled = true;
|
||||
@@ -18,10 +16,8 @@ namespace Lua
|
||||
public static int prevSetKey = 0x06; // XBUTTON2
|
||||
public static int refreshKey = 0x50; // P
|
||||
public static int switchSideKey = 0x4D; // M
|
||||
public static int shootKey = 0x01; // Left mouse button
|
||||
public static int altShootKey = 0x02;
|
||||
|
||||
|
||||
public static int shootKey = 0x01; // Left mouse button
|
||||
public static int altShootKey = 0x02; // Right mouse button
|
||||
|
||||
// Favorites and user
|
||||
public static string favoriteAttackers = null;
|
||||
@@ -41,7 +37,7 @@ namespace Lua
|
||||
/// </summary>
|
||||
public static void LoadInitConfig()
|
||||
{
|
||||
// reset to defaults
|
||||
// Reset to defaults
|
||||
debitFlag1 = false;
|
||||
betaTest = false;
|
||||
ttsEnabled = true;
|
||||
@@ -64,7 +60,7 @@ namespace Lua
|
||||
if (string.IsNullOrWhiteSpace(raw)) continue;
|
||||
var line = raw.Trim();
|
||||
|
||||
// ignore comments
|
||||
// Ignore comments
|
||||
if (line.StartsWith("--") || line.StartsWith("#")) continue;
|
||||
|
||||
if (Helper.ParseBoolFromAssignment(line, "debitFlag1", out var b1))
|
||||
@@ -109,7 +105,7 @@ namespace Lua
|
||||
}
|
||||
catch
|
||||
{
|
||||
// ignore if console doesn't support color
|
||||
// Ignore if console doesn't support color
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user