mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 19:45:23 -04:00
Fix hotkeys not being removed.
This commit is contained in:
parent
4c0ccff680
commit
caaafaf754
@ -18,7 +18,9 @@ namespace ClassicalSharp {
|
|||||||
for( int i = 0; i < count; i++ ) {
|
for( int i = 0; i < count; i++ ) {
|
||||||
char c = value[i];
|
char c = value[i];
|
||||||
int cpIndex = 0;
|
int cpIndex = 0;
|
||||||
if( c >= ' ' && c <= '~' ) {
|
if( c == '&' ) {
|
||||||
|
buffer[index + i] = (byte)'%'; // escape colour codes
|
||||||
|
} else if( c >= ' ' && c <= '~' ) {
|
||||||
buffer[index + i] = (byte)c;
|
buffer[index + i] = (byte)c;
|
||||||
} else if( (cpIndex = Utils.ControlCharReplacements.IndexOf( c ) ) >= 0 ) {
|
} else if( (cpIndex = Utils.ControlCharReplacements.IndexOf( c ) ) >= 0 ) {
|
||||||
buffer[index + i] = (byte)cpIndex;
|
buffer[index + i] = (byte)cpIndex;
|
||||||
|
@ -78,6 +78,7 @@ namespace ClassicalSharp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void Set( string key, string value ) {
|
public static void Set( string key, string value ) {
|
||||||
|
key = key.ToLower();
|
||||||
if( value != null ) {
|
if( value != null ) {
|
||||||
OptionsSet[key] = value;
|
OptionsSet[key] = value;
|
||||||
} else {
|
} else {
|
||||||
@ -87,6 +88,7 @@ namespace ClassicalSharp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void Set<T>( string key, T value ) {
|
public static void Set<T>( string key, T value ) {
|
||||||
|
key = key.ToLower();
|
||||||
OptionsSet[key] = value.ToString();
|
OptionsSet[key] = value.ToString();
|
||||||
HasChanged = true;
|
HasChanged = true;
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@ namespace Launcher2 {
|
|||||||
|
|
||||||
public static bool Start( string args ) {
|
public static bool Start( string args ) {
|
||||||
Process process = null;
|
Process process = null;
|
||||||
Options.Load();
|
|
||||||
string path = Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "ClassicalSharp.exe" );
|
string path = Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "ClassicalSharp.exe" );
|
||||||
if( !File.Exists( path ) )
|
if( !File.Exists( path ) )
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user