Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/coolboy-multirom-builder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-11-18 17:29:34 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-11-18 17:29:34 +0300
commit7c5e05cccaf1881fb706b2b3bbc5f9245211208f (patch)
tree0e42b83be4e80cebf0877d335ee373b929e8a78f
parentaf1b0d1456cda5c44cc52bfe58db8cdf45cbaae4 (diff)
Refactoring
-rw-r--r--saves.asm2
-rw-r--r--tools_sources/CoolboyCombiner/Config.cs2
-rw-r--r--tools_sources/CoolboyCombiner/Program.cs4
3 files changed, 4 insertions, 4 deletions
diff --git a/saves.asm b/saves.asm
index c8cdd3b..20cfa30 100644
--- a/saves.asm
+++ b/saves.asm
@@ -1,7 +1,7 @@
SAVES_BANK .rs 1 ; bank with saves
LAST_STARTED_SAVE .rs 1 ; last used save ID
-CLEAN_AFTER .equ 128
+CLEAN_AFTER .equ 128 ; clean flash after this number of menu states
; saving last selected game
save_state:
diff --git a/tools_sources/CoolboyCombiner/Config.cs b/tools_sources/CoolboyCombiner/Config.cs
index 7bc1c1e..e91ddd8 100644
--- a/tools_sources/CoolboyCombiner/Config.cs
+++ b/tools_sources/CoolboyCombiner/Config.cs
@@ -92,7 +92,7 @@ namespace com.clusterrr.Famicom.CoolBoy
for (int i = 1; i < args.Length; i++)
{
string param = args[i];
- while (param.StartsWith("-")) param = param.Substring(1);
+ while (param.StartsWith("-")) param = param[1..];
string value = i < args.Length - 1 ? args[i + 1] : "";
switch (param.ToLower())
{
diff --git a/tools_sources/CoolboyCombiner/Program.cs b/tools_sources/CoolboyCombiner/Program.cs
index fe02b24..9022a85 100644
--- a/tools_sources/CoolboyCombiner/Program.cs
+++ b/tools_sources/CoolboyCombiner/Program.cs
@@ -67,7 +67,7 @@ namespace com.clusterrr.Famicom.CoolBoy
fixes = fixesStr.ToDictionary(
// Check for hexademical values
kv => kv.Key.ToLower().StartsWith("0x")
- ? kv.Key.Substring(2).ToLower()
+ ? kv.Key[2..].ToLower()
: kv.Key.ToLower(),
kv => kv.Value);
}
@@ -757,7 +757,7 @@ namespace com.clusterrr.Famicom.CoolBoy
static string FirstCharToUpper(string input)
{
if (string.IsNullOrEmpty(input)) return "";
- return input.First().ToString().ToUpper() + input.Substring(1);
+ return input.First().ToString().ToUpper() + input[1..];
}
}
} \ No newline at end of file