shithub: rgbds

Download patch

ref: d9cce3fa1f5ace61ac8f220560ab28bbd6aa8f85
parent: 23721694ea711eabdc96285c099bbe7afb90bbe8
author: ISSOtm <eldredhabert0@gmail.com>
date: Sat May 15 14:05:10 EDT 2021

Update TPP1 canonical name to "TIMER", not "RTC"

See previous commit

--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -143,18 +143,18 @@
 	TPP1_RUMBLE = 0x101,
 	TPP1_MULTIRUMBLE = 0x102, // Should not be possible
 	TPP1_MULTIRUMBLE_RUMBLE = 0x103,
-	TPP1_RTC = 0x104,
-	TPP1_RTC_RUMBLE = 0x105,
-	TPP1_RTC_MULTIRUMBLE = 0x106, // Should not be possible
-	TPP1_RTC_MULTIRUMBLE_RUMBLE = 0x107,
+	TPP1_TIMER = 0x104,
+	TPP1_TIMER_RUMBLE = 0x105,
+	TPP1_TIMER_MULTIRUMBLE = 0x106, // Should not be possible
+	TPP1_TIMER_MULTIRUMBLE_RUMBLE = 0x107,
 	TPP1_BATTERY = 0x108,
 	TPP1_BATTERY_RUMBLE = 0x109,
 	TPP1_BATTERY_MULTIRUMBLE = 0x10a, // Should not be possible
 	TPP1_BATTERY_MULTIRUMBLE_RUMBLE = 0x10b,
-	TPP1_BATTERY_RTC = 0x10c,
-	TPP1_BATTERY_RTC_RUMBLE = 0x10d,
-	TPP1_BATTERY_RTC_MULTIRUMBLE = 0x10e, // Should not be possible
-	TPP1_BATTERY_RTC_MULTIRUMBLE_RUMBLE = 0x10f,
+	TPP1_BATTERY_TIMER = 0x10c,
+	TPP1_BATTERY_TIMER_RUMBLE = 0x10d,
+	TPP1_BATTERY_TIMER_MULTIRUMBLE = 0x10e, // Should not be possible
+	TPP1_BATTERY_TIMER_MULTIRUMBLE_RUMBLE = 0x10f,
 
 	// Error values
 	MBC_NONE = UNSPECIFIED, // No MBC specified, do not act on it
@@ -642,13 +642,13 @@
 	case TPP1_MULTIRUMBLE:
 	case TPP1_MULTIRUMBLE_RUMBLE:
 		return "TPP1+MULTIRUMBLE";
-	case TPP1_RTC:
-		return "TPP1+RTC";
-	case TPP1_RTC_RUMBLE:
-		return "TPP1+RTC+RUMBLE";
-	case TPP1_RTC_MULTIRUMBLE:
-	case TPP1_RTC_MULTIRUMBLE_RUMBLE:
-		return "TPP1+RTC+MULTIRUMBLE";
+	case TPP1_TIMER:
+		return "TPP1+TIMER";
+	case TPP1_TIMER_RUMBLE:
+		return "TPP1+TIMER+RUMBLE";
+	case TPP1_TIMER_MULTIRUMBLE:
+	case TPP1_TIMER_MULTIRUMBLE_RUMBLE:
+		return "TPP1+TIMER+MULTIRUMBLE";
 	case TPP1_BATTERY:
 		return "TPP1+BATTERY";
 	case TPP1_BATTERY_RUMBLE:
@@ -656,13 +656,13 @@
 	case TPP1_BATTERY_MULTIRUMBLE:
 	case TPP1_BATTERY_MULTIRUMBLE_RUMBLE:
 		return "TPP1+BATTERY+MULTIRUMBLE";
-	case TPP1_BATTERY_RTC:
-		return "TPP1+BATTERY+RTC";
-	case TPP1_BATTERY_RTC_RUMBLE:
-		return "TPP1+BATTERY+RTC+RUMBLE";
-	case TPP1_BATTERY_RTC_MULTIRUMBLE:
-	case TPP1_BATTERY_RTC_MULTIRUMBLE_RUMBLE:
-		return "TPP1+BATTERY+RTC+MULTIRUMBLE";
+	case TPP1_BATTERY_TIMER:
+		return "TPP1+BATTERY+TIMER";
+	case TPP1_BATTERY_TIMER_RUMBLE:
+		return "TPP1+BATTERY+TIMER+RUMBLE";
+	case TPP1_BATTERY_TIMER_MULTIRUMBLE:
+	case TPP1_BATTERY_TIMER_MULTIRUMBLE_RUMBLE:
+		return "TPP1+BATTERY+TIMER+MULTIRUMBLE";
 
 	// Error values
 	case MBC_NONE:
@@ -719,18 +719,18 @@
 	case TPP1_RUMBLE:
 	case TPP1_MULTIRUMBLE:
 	case TPP1_MULTIRUMBLE_RUMBLE:
-	case TPP1_RTC:
-	case TPP1_RTC_RUMBLE:
-	case TPP1_RTC_MULTIRUMBLE:
-	case TPP1_RTC_MULTIRUMBLE_RUMBLE:
+	case TPP1_TIMER:
+	case TPP1_TIMER_RUMBLE:
+	case TPP1_TIMER_MULTIRUMBLE:
+	case TPP1_TIMER_MULTIRUMBLE_RUMBLE:
 	case TPP1_BATTERY:
 	case TPP1_BATTERY_RUMBLE:
 	case TPP1_BATTERY_MULTIRUMBLE:
 	case TPP1_BATTERY_MULTIRUMBLE_RUMBLE:
-	case TPP1_BATTERY_RTC:
-	case TPP1_BATTERY_RTC_RUMBLE:
-	case TPP1_BATTERY_RTC_MULTIRUMBLE:
-	case TPP1_BATTERY_RTC_MULTIRUMBLE_RUMBLE:
+	case TPP1_BATTERY_TIMER:
+	case TPP1_BATTERY_TIMER_RUMBLE:
+	case TPP1_BATTERY_TIMER_MULTIRUMBLE:
+	case TPP1_BATTERY_TIMER_MULTIRUMBLE_RUMBLE:
 		break;
 	}