diff --git a/include/arm.h b/include/arm.h
index be98ca7..d00e239 100644
--- a/include/arm.h
+++ b/include/arm.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/console.h b/include/arm11/console.h
index d9669bd..0b16783 100644
--- a/include/arm11/console.h
+++ b/include/arm11/console.h
@@ -1,7 +1,7 @@
#pragma once
/*
- * This code is part of ctrulib (https://github.com/smealum/ctrulib)
+ * This code is part of libctru (https://github.com/devkitPro/libctru)
*/
/**
diff --git a/include/arm11/debug.h b/include/arm11/debug.h
index 67f5261..c1c4f3a 100644
--- a/include/arm11/debug.h
+++ b/include/arm11/debug.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/filebrowser.h b/include/arm11/filebrowser.h
index c513285..7485675 100644
--- a/include/arm11/filebrowser.h
+++ b/include/arm11/filebrowser.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "error_codes.h"
diff --git a/include/arm11/gba_save_type_db.h b/include/arm11/gba_save_type_db.h
deleted file mode 100644
index 408d3b8..0000000
--- a/include/arm11/gba_save_type_db.h
+++ /dev/null
@@ -1,73 +0,0 @@
-#pragma once
-
-#include
-#include "types.h"
-
-
-// Temporary define for all incomplete entries.
-#define UNSPECIFIED 0xFF
-
-
-typedef struct
-{
- char gameCode[3]; // Without the region letter.
- u8 type;
-} SaveTypeLut;
-static_assert(offsetof(SaveTypeLut, type) == 3, "Error: Member 'type' of SaveTypeLut is not at offset 3!");
-
-
-/*
- * 0x0 = 16 MiB or smaller ROM + EEPROM 4k/8k (512/1024 bytes)
- * 0x1 = 32 MiB ROM + EEPROM 4k/8k (512/1024 bytes)
- * 0x2 = 16 MiB or smaller ROM + EEPROM 64k (8 KiB)
- * 0x3 = 32 MiB ROM + EEPROM 64k (8 KiB)
- * 0x4 = Flash 512k (64 KiB) with RTC, ID=0x3D1F, Atmel
- * 0x5 = Flash 512k (64 KiB) without RTC, ID=0x3D1F, Atmel
- * 0x6 = Flash 512k (64 KiB) with RTC, ID=0xD4BF, SST
- * 0x7 = Flash 512k (64 KiB) without RTC, ID=0xD4BF, SST
- * 0x8 = Flash 512k (64 KiB) with RTC, ID=0x1B32, Panasonic
- * 0x9 = Flash 512k (64 KiB) without RTC, ID=0x1B32, Panasonic
- * 0xA = Flash 1M (128 KiB) with RTC, ID=0x09C2, Macronix
- * 0xB = Flash 1M (128 KiB) without RTC, ID=0x09C2, Macronix
- * 0xC = Flash 1M (128 KiB) with RTC, ID=0x1362, Sanyo
- * 0xD = Flash 1M (128 KiB) without RTC, ID=0x1362, Sanyo
- * 0xE = SRAM/FRAM/FeRAM 256k (32 KiB)
- * 0xF = No save chip
- */
-
-/*
- * [] = Optional
- * <> = Required
- *
- * Format:
- * // [SDK save string if any]
- * //
- * {"", },
- *
- * All entries ordered by release number.
- */
-alignas(4) static const SaveTypeLut saveTypeLut[] =
-{
- // EEPROM_V120
- // 0002 - Super Mario Advance - Super Mario USA + Mario Brothers (Japan)
- // 0049 - Super Mario Advance (USA, Europe)
- // 1570 - Chaoji Maliou 2 (China)
- // x116 - Super Mario Advance (USA, Europe) (Wii U Virtual Console)
- {"AMA", 0x0},
-
- // EEPROM_V122
- // 0237 - Super Mario Advance 2 - Super Mario World + Mario Brothers (Japan)
- // 0288 - Super Mario Advance 2 - Super Mario World (USA, Australia)
- // 0389 - Super Mario Advance 2 - Super Mario World (Europe) (En,Fr,De,Es)
- // 2328 - Chaoji Maliou Shijie (China)
- {"AA2", 0x2},
-
- // EEPROM_V122
- // 0578 - Super Mario Advance 3 - Yoshi's Island (USA)
- // 0580 - Super Mario Advance 3 - Yoshi's Island + Mario Brothers (Japan)
- // 0608 - Super Mario Advance 3 - Yoshi's Island (Europe) (En,Fr,De,Es,It)
- // 2299 - Yaoxi Dao (China)
- // x115 - Super Mario Advance 3 - Yoshi's Island (USA) (Wii U Virtual Console)
- // x161 - Super Mario Advance 3 - Yoshi's Island (Europe) (En,Fr,De,Es,It) (Wii U Virtual Console)
- {"A3A", 0x2},
-};
diff --git a/include/arm11/gpu_cmd_lists.h b/include/arm11/gpu_cmd_lists.h
index 8f8bdc9..c283a91 100644
--- a/include/arm11/gpu_cmd_lists.h
+++ b/include/arm11/gpu_cmd_lists.h
@@ -1,9 +1,173 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "types.h"
+#define SCALE_SELECT 1
+
+#if SCALE_SELECT == 0
+// 240x160 with bilinear scaling, no filter.
+alignas(16) static const u8 gbaGpuInitList[1136] =
+{
+ 0x01, 0x00, 0x00, 0x00, 0x10, 0x01, 0x0F, 0x00, 0x00, 0x00, 0x06, 0x03,
+ 0x1C, 0x01, 0x2F, 0x80, 0x00, 0x00, 0x03, 0x03, 0xF0, 0xF0, 0x18, 0x01,
+ 0xF0, 0xF0, 0x18, 0x01, 0x6E, 0x00, 0x0F, 0x00, 0x03, 0x00, 0x00, 0x00,
+ 0x16, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x01, 0x00, 0x17, 0x01, 0x0F, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x1B, 0x01, 0x0F, 0x00, 0x0F, 0x00, 0x00, 0x00,
+ 0x12, 0x01, 0x3F, 0x80, 0x0F, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
+ 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x45, 0x00,
+ 0x41, 0x00, 0x3F, 0x80, 0x10, 0x11, 0x11, 0x38, 0x00, 0x90, 0x46, 0x00,
+ 0x14, 0xAE, 0x47, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x68, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x2F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x29, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x02, 0x03, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x44, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xCB, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x4E, 0xCC, 0x02, 0x7F, 0x00,
+ 0x01, 0xF0, 0x07, 0x4E, 0x02, 0x08, 0x02, 0x08, 0x03, 0x18, 0x02, 0x08,
+ 0x04, 0x28, 0x02, 0x08, 0x05, 0x38, 0x02, 0x08, 0x06, 0x10, 0x20, 0x4C,
+ 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0xBF, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD5, 0x02, 0x0F, 0x00,
+ 0x6E, 0x03, 0x00, 0x00, 0xD6, 0x02, 0x6F, 0x00, 0xA1, 0x0A, 0x00, 0x00,
+ 0x68, 0xC3, 0x06, 0x00, 0x64, 0xC3, 0x06, 0x00, 0x62, 0xC3, 0x06, 0x00,
+ 0x61, 0xC3, 0x06, 0x00, 0x6F, 0x03, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x7F,
+ 0xBA, 0x02, 0x0F, 0x00, 0x03, 0x00, 0x00, 0x00, 0xBD, 0x02, 0x0F, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x4A, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x51, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00, 0x5E, 0x02, 0x01, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x4F, 0x00, 0x7F, 0x80, 0x00, 0x01, 0x02, 0x03,
+ 0x0C, 0x0D, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
+ 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
+ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x0F, 0x00,
+ 0x01, 0x01, 0x00, 0x00, 0x6F, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x29, 0x02, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x02, 0x0F, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x54, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xA0,
+ 0x89, 0x02, 0x0F, 0x00, 0x7B, 0x00, 0x00, 0x00, 0x01, 0x02, 0x1F, 0x80,
+ 0x00, 0x00, 0xFC, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0xA0,
+ 0xB9, 0x02, 0x0B, 0x00, 0x01, 0x00, 0x00, 0x00, 0x42, 0x02, 0x0F, 0x00,
+ 0x10, 0x00, 0x00, 0x00, 0xBB, 0x02, 0x1F, 0x80, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x6D, 0x00, 0x0F, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x40, 0x00, 0x0F, 0x00, 0x00, 0x00, 0xBF, 0x00,
+ 0x4D, 0x00, 0x1F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x10, 0x00, 0x00, 0x00, 0x04, 0x01, 0x3F, 0x80, 0x10, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x10, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x26, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x03, 0x01, 0x0F, 0x00, 0x00, 0x00, 0x76, 0x76, 0x01, 0x01, 0x0F, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x0F, 0x00, 0x00, 0x01, 0xE4, 0x00,
+ 0x00, 0x01, 0x07, 0x00, 0x00, 0x3C, 0x00, 0x80, 0x30, 0x01, 0x0F, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x62, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x18, 0x01, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x6A, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x81, 0x00, 0x4F, 0x80, 0x00, 0x01, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x03, 0x01, 0x00, 0x00, 0x00,
+ 0x8E, 0x00, 0x0F, 0x00, 0x01, 0x10, 0x01, 0x00, 0x80, 0x00, 0x0B, 0x00,
+ 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x8B, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x07, 0x00,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xE1, 0x00, 0x0F, 0x00, 0x03, 0x00, 0x03, 0x00, 0xC0, 0x00, 0x4F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xC8, 0x00, 0x4F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xD0, 0x00, 0x4F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xD8, 0x00, 0x4F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xF0, 0x00, 0x4F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xF8, 0x00, 0x4F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0x00, 0x00, 0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, 0xC0, 0x02, 0x3F, 0x80,
+ 0xBF, 0x00, 0x00, 0x3E, 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x02, 0x0F, 0x00,
+ 0x00, 0x00, 0x80, 0xBF, 0xC1, 0x02, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x88, 0x88, 0x08, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xD7, 0xA3, 0xBB,
+ 0x00, 0x00, 0x80, 0xBF, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0xFF, 0x7F, 0xB0, 0x02, 0x0F, 0x00, 0x00, 0x01, 0x00, 0x00,
+ 0x5E, 0x02, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x5F, 0x02, 0x0F, 0x00,
+ 0x00, 0x00, 0x00, 0x80, 0x27, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x53, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0x02, 0x01, 0x00,
+ 0x0F, 0x00, 0x00, 0x00, 0x32, 0x02, 0x0F, 0x00, 0x3E, 0x00, 0x00, 0x3F,
+ 0x33, 0x02, 0x2F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x43, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80, 0x80, 0x3D, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x33, 0x02, 0x2F, 0x80, 0x80, 0x3D, 0x00, 0x00, 0x00, 0xE0, 0x3E, 0x00,
+ 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80, 0xE0, 0x46, 0x00, 0x00,
+ 0x00, 0x40, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80,
+ 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x3F,
+ 0x33, 0x02, 0x2F, 0x80, 0xE0, 0x46, 0x00, 0x00, 0x00, 0x7C, 0x47, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80, 0x00, 0x3F, 0x00, 0x00,
+ 0x00, 0xE0, 0x3E, 0x00, 0x01, 0x00, 0x00, 0x00, 0x45, 0x02, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x53, 0x02, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x31, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00, 0x11, 0x01, 0x0F, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x10, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x63, 0x00, 0x0F, 0x00, 0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00,
+ 0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00
+};
+
+// 240x160 with bilinear scaling, no filter.
+alignas(16) static const u8 gbaGpuList2[448] =
+{
+ 0x01, 0x00, 0x00, 0x00, 0x10, 0x01, 0x0F, 0x00, 0x00, 0x00, 0x06, 0x03,
+ 0x1C, 0x01, 0x2F, 0x80, 0x00, 0x00, 0x03, 0x03, 0xF0, 0xF0, 0x18, 0x01,
+ 0xF0, 0xF0, 0x18, 0x01, 0x6E, 0x00, 0x0F, 0x00, 0x03, 0x00, 0x00, 0x00,
+ 0x16, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x01, 0x00, 0x17, 0x01, 0x0F, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x1B, 0x01, 0x0F, 0x00, 0x0F, 0x00, 0x00, 0x00,
+ 0x12, 0x01, 0x3F, 0x80, 0x0F, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
+ 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x45, 0x00,
+ 0x41, 0x00, 0x3F, 0x80, 0x10, 0x11, 0x11, 0x38, 0x00, 0x90, 0x46, 0x00,
+ 0x14, 0xAE, 0x47, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x68, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x2F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
+ 0xC0, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x80, 0xBF, 0xC1, 0x02, 0xFF, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x88, 0x88, 0x08, 0x3C, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x0A, 0xD7, 0xA3, 0xBB, 0x00, 0x00, 0x80, 0xBF, 0x00, 0x00, 0x80, 0x3F,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x5E, 0x02, 0x02, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x5F, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x80,
+ 0x27, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00, 0x53, 0x02, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x45, 0x02, 0x01, 0x00, 0x0F, 0x00, 0x00, 0x00,
+ 0x32, 0x02, 0x0F, 0x00, 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x33, 0x02, 0x2F, 0x80, 0x80, 0x3D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x7C, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80,
+ 0x80, 0x3D, 0x00, 0x00, 0x00, 0xE0, 0x3E, 0x00, 0x3E, 0x00, 0x00, 0x3F,
+ 0x33, 0x02, 0x2F, 0x80, 0xE0, 0x46, 0x00, 0x00, 0x00, 0x40, 0x43, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80, 0x00, 0x3F, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80,
+ 0xE0, 0x46, 0x00, 0x00, 0x00, 0x7C, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x33, 0x02, 0x2F, 0x80, 0x00, 0x3F, 0x00, 0x00, 0x00, 0xE0, 0x3E, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x45, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x53, 0x02, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x31, 0x02, 0x0F, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x11, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x10, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00, 0x63, 0x00, 0x0F, 0x00,
+ 0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00, 0x78, 0x56, 0x34, 0x12,
+ 0x10, 0x00, 0x0F, 0x00
+};
+#elif SCALE_SELECT == 1
// 360x240, no filter.
alignas(16) static const u8 gbaGpuInitList[1136] =
{
@@ -103,105 +267,6 @@ alignas(16) static const u8 gbaGpuInitList[1136] =
0x63, 0x00, 0x0F, 0x00, 0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00,
0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00
};
-// 240x160 with bilinear scaling, no filter.
-/*alignas(16) static const u8 gbaGpuInitList[1136] =
-{
- 0x01, 0x00, 0x00, 0x00, 0x10, 0x01, 0x0F, 0x00, 0x00, 0x00, 0x06, 0x03,
- 0x1C, 0x01, 0x2F, 0x80, 0x00, 0x00, 0x03, 0x03, 0xF0, 0xF0, 0x18, 0x01,
- 0xF0, 0xF0, 0x18, 0x01, 0x6E, 0x00, 0x0F, 0x00, 0x03, 0x00, 0x00, 0x00,
- 0x16, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x01, 0x00, 0x17, 0x01, 0x0F, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x1B, 0x01, 0x0F, 0x00, 0x0F, 0x00, 0x00, 0x00,
- 0x12, 0x01, 0x3F, 0x80, 0x0F, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
- 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x45, 0x00,
- 0x41, 0x00, 0x3F, 0x80, 0x10, 0x11, 0x11, 0x38, 0x00, 0x90, 0x46, 0x00,
- 0x14, 0xAE, 0x47, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x68, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x2F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x29, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x02, 0x03, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x44, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xCB, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x4E, 0xCC, 0x02, 0x7F, 0x00,
- 0x01, 0xF0, 0x07, 0x4E, 0x02, 0x08, 0x02, 0x08, 0x03, 0x18, 0x02, 0x08,
- 0x04, 0x28, 0x02, 0x08, 0x05, 0x38, 0x02, 0x08, 0x06, 0x10, 0x20, 0x4C,
- 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
- 0xBF, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD5, 0x02, 0x0F, 0x00,
- 0x6E, 0x03, 0x00, 0x00, 0xD6, 0x02, 0x6F, 0x00, 0xA1, 0x0A, 0x00, 0x00,
- 0x68, 0xC3, 0x06, 0x00, 0x64, 0xC3, 0x06, 0x00, 0x62, 0xC3, 0x06, 0x00,
- 0x61, 0xC3, 0x06, 0x00, 0x6F, 0x03, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x7F,
- 0xBA, 0x02, 0x0F, 0x00, 0x03, 0x00, 0x00, 0x00, 0xBD, 0x02, 0x0F, 0x00,
- 0x01, 0x00, 0x00, 0x00, 0x4A, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00,
- 0x51, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00, 0x5E, 0x02, 0x01, 0x00,
- 0x02, 0x00, 0x00, 0x00, 0x4F, 0x00, 0x7F, 0x80, 0x00, 0x01, 0x02, 0x03,
- 0x0C, 0x0D, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
- 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
- 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x0F, 0x00,
- 0x01, 0x01, 0x00, 0x00, 0x6F, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x29, 0x02, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x02, 0x0F, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x54, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xA0,
- 0x89, 0x02, 0x0F, 0x00, 0x7B, 0x00, 0x00, 0x00, 0x01, 0x02, 0x1F, 0x80,
- 0x00, 0x00, 0xFC, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0xA0,
- 0xB9, 0x02, 0x0B, 0x00, 0x01, 0x00, 0x00, 0x00, 0x42, 0x02, 0x0F, 0x00,
- 0x10, 0x00, 0x00, 0x00, 0xBB, 0x02, 0x1F, 0x80, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x6D, 0x00, 0x0F, 0x00,
- 0x02, 0x00, 0x00, 0x00, 0x40, 0x00, 0x0F, 0x00, 0x00, 0x00, 0xBF, 0x00,
- 0x4D, 0x00, 0x1F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x10, 0x00, 0x00, 0x00, 0x04, 0x01, 0x3F, 0x80, 0x10, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x10, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x26, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x03, 0x01, 0x0F, 0x00, 0x00, 0x00, 0x76, 0x76, 0x01, 0x01, 0x0F, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x0F, 0x00, 0x00, 0x01, 0xE4, 0x00,
- 0x00, 0x01, 0x07, 0x00, 0x00, 0x3C, 0x00, 0x80, 0x30, 0x01, 0x0F, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x62, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x18, 0x01, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0x00, 0x01, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x6A, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x81, 0x00, 0x4F, 0x80, 0x00, 0x01, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x03, 0x01, 0x00, 0x00, 0x00,
- 0x8E, 0x00, 0x0F, 0x00, 0x01, 0x10, 0x01, 0x00, 0x80, 0x00, 0x0B, 0x00,
- 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00,
- 0x8B, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x07, 0x00,
- 0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xE1, 0x00, 0x0F, 0x00, 0x03, 0x00, 0x03, 0x00, 0xC0, 0x00, 0x4F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
- 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xC8, 0x00, 0x4F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
- 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xD0, 0x00, 0x4F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
- 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xD8, 0x00, 0x4F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
- 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xF0, 0x00, 0x4F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
- 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0xF8, 0x00, 0x4F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
- 0x00, 0x00, 0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, 0xC0, 0x02, 0x3F, 0x80,
- 0xBF, 0x00, 0x00, 0x3E, 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x02, 0x0F, 0x00,
- 0x00, 0x00, 0x80, 0xBF, 0xC1, 0x02, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x88, 0x88, 0x08, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xD7, 0xA3, 0xBB,
- 0x00, 0x00, 0x80, 0xBF, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0xFF, 0x7F, 0xB0, 0x02, 0x0F, 0x00, 0x00, 0x01, 0x00, 0x00,
- 0x5E, 0x02, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x5F, 0x02, 0x0F, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x27, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00,
- 0x53, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0x02, 0x01, 0x00,
- 0x0F, 0x00, 0x00, 0x00, 0x32, 0x02, 0x0F, 0x00, 0x3E, 0x00, 0x00, 0x3F,
- 0x33, 0x02, 0x2F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x43, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80, 0x80, 0x3D, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x33, 0x02, 0x2F, 0x80, 0x80, 0x3D, 0x00, 0x00, 0x00, 0xE0, 0x3E, 0x00,
- 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80, 0xE0, 0x46, 0x00, 0x00,
- 0x00, 0x40, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80,
- 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x3F,
- 0x33, 0x02, 0x2F, 0x80, 0xE0, 0x46, 0x00, 0x00, 0x00, 0x7C, 0x47, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80, 0x00, 0x3F, 0x00, 0x00,
- 0x00, 0xE0, 0x3E, 0x00, 0x01, 0x00, 0x00, 0x00, 0x45, 0x02, 0x01, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x53, 0x02, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,
- 0x31, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00, 0x11, 0x01, 0x0F, 0x00,
- 0x01, 0x00, 0x00, 0x00, 0x10, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00,
- 0x63, 0x00, 0x0F, 0x00, 0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00,
- 0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00
-};*/
// 360x240, no filter.
alignas(16) static const u8 gbaGpuList2[448] =
@@ -245,45 +310,7 @@ alignas(16) static const u8 gbaGpuList2[448] =
0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00, 0x78, 0x56, 0x34, 0x12,
0x10, 0x00, 0x0F, 0x00
};
-// 240x160 with bilinear scaling, no filter.
-/*alignas(16) static const u8 gbaGpuList2[448] =
-{
- 0x01, 0x00, 0x00, 0x00, 0x10, 0x01, 0x0F, 0x00, 0x00, 0x00, 0x06, 0x03,
- 0x1C, 0x01, 0x2F, 0x80, 0x00, 0x00, 0x03, 0x03, 0xF0, 0xF0, 0x18, 0x01,
- 0xF0, 0xF0, 0x18, 0x01, 0x6E, 0x00, 0x0F, 0x00, 0x03, 0x00, 0x00, 0x00,
- 0x16, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x01, 0x00, 0x17, 0x01, 0x0F, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x1B, 0x01, 0x0F, 0x00, 0x0F, 0x00, 0x00, 0x00,
- 0x12, 0x01, 0x3F, 0x80, 0x0F, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
- 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x45, 0x00,
- 0x41, 0x00, 0x3F, 0x80, 0x10, 0x11, 0x11, 0x38, 0x00, 0x90, 0x46, 0x00,
- 0x14, 0xAE, 0x47, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x68, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x2F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
- 0xC0, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x80, 0xBF, 0xC1, 0x02, 0xFF, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x88, 0x88, 0x08, 0x3C, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x80, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x0A, 0xD7, 0xA3, 0xBB, 0x00, 0x00, 0x80, 0xBF, 0x00, 0x00, 0x80, 0x3F,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x5E, 0x02, 0x02, 0x00,
- 0x01, 0x00, 0x00, 0x00, 0x5F, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x80,
- 0x27, 0x02, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00, 0x53, 0x02, 0x01, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x45, 0x02, 0x01, 0x00, 0x0F, 0x00, 0x00, 0x00,
- 0x32, 0x02, 0x0F, 0x00, 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x33, 0x02, 0x2F, 0x80, 0x80, 0x3D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x7C, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80,
- 0x80, 0x3D, 0x00, 0x00, 0x00, 0xE0, 0x3E, 0x00, 0x3E, 0x00, 0x00, 0x3F,
- 0x33, 0x02, 0x2F, 0x80, 0xE0, 0x46, 0x00, 0x00, 0x00, 0x40, 0x43, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x33, 0x02, 0x2F, 0x80, 0x00, 0x3F, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x3F, 0x33, 0x02, 0x2F, 0x80,
- 0xE0, 0x46, 0x00, 0x00, 0x00, 0x7C, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x33, 0x02, 0x2F, 0x80, 0x00, 0x3F, 0x00, 0x00, 0x00, 0xE0, 0x3E, 0x00,
- 0x01, 0x00, 0x00, 0x00, 0x45, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x53, 0x02, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x31, 0x02, 0x0F, 0x00,
- 0x01, 0x00, 0x00, 0x00, 0x11, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00,
- 0x10, 0x01, 0x0F, 0x00, 0x01, 0x00, 0x00, 0x00, 0x63, 0x00, 0x0F, 0x00,
- 0x78, 0x56, 0x34, 0x12, 0x10, 0x00, 0x0F, 0x00, 0x78, 0x56, 0x34, 0x12,
- 0x10, 0x00, 0x0F, 0x00
-};*/
+#endif
+
+
+#undef SCALE_SELECT
diff --git a/include/arm11/hardware/cfg11.h b/include/arm11/hardware/cfg11.h
index db9dcbf..3570d93 100644
--- a/include/arm11/hardware/cfg11.h
+++ b/include/arm11/hardware/cfg11.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2018 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/codec.h b/include/arm11/hardware/codec.h
index d061820..8421d39 100644
--- a/include/arm11/hardware/codec.h
+++ b/include/arm11/hardware/codec.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 Sergi Granell (xerpi), Paul LaMendola (paulguy), derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/csnd.h b/include/arm11/hardware/csnd.h
index e3786b5..b79ffaf 100644
--- a/include/arm11/hardware/csnd.h
+++ b/include/arm11/hardware/csnd.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/gpio.h b/include/arm11/hardware/gpio.h
index 29bf757..4eb2480 100644
--- a/include/arm11/hardware/gpio.h
+++ b/include/arm11/hardware/gpio.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/gpu_regs.h b/include/arm11/hardware/gpu_regs.h
index d2c3a64..4b42366 100644
--- a/include/arm11/hardware/gpu_regs.h
+++ b/include/arm11/hardware/gpu_regs.h
@@ -1,4 +1,4 @@
-// From https://github.com/smealum/ctrulib/blob/master/libctru/include/3ds/gpu/registers.h
+// From https://github.com/devkitPro/libctru/blob/master/libctru/include/3ds/gpu/registers.h
/**
* @file registers.h
diff --git a/include/arm11/hardware/gx.h b/include/arm11/hardware/gx.h
index 846fbcf..895552d 100644
--- a/include/arm11/hardware/gx.h
+++ b/include/arm11/hardware/gx.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "types.h"
#include "mem_map.h"
diff --git a/include/arm11/hardware/hash.h b/include/arm11/hardware/hash.h
index 40e8ed2..62ea0f8 100644
--- a/include/arm11/hardware/hash.h
+++ b/include/arm11/hardware/hash.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2018 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/hid.h b/include/arm11/hardware/hid.h
index 076a70d..8533d96 100644
--- a/include/arm11/hardware/hid.h
+++ b/include/arm11/hardware/hid.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/i2c.h b/include/arm11/hardware/i2c.h
index ed1ce39..8deecfd 100644
--- a/include/arm11/hardware/i2c.h
+++ b/include/arm11/hardware/i2c.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/interrupt.h b/include/arm11/hardware/interrupt.h
index 79b934d..328efb7 100644
--- a/include/arm11/hardware/interrupt.h
+++ b/include/arm11/hardware/interrupt.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/lcd.h b/include/arm11/hardware/lcd.h
index b78c07d..4a1d553 100644
--- a/include/arm11/hardware/lcd.h
+++ b/include/arm11/hardware/lcd.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "types.h"
#include "mem_map.h"
#include "arm11/hardware/gx.h"
diff --git a/include/arm11/hardware/lgyfb.h b/include/arm11/hardware/lgyfb.h
index 8505a45..95cacca 100644
--- a/include/arm11/hardware/lgyfb.h
+++ b/include/arm11/hardware/lgyfb.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "kevent.h"
diff --git a/include/arm11/hardware/mcu.h b/include/arm11/hardware/mcu.h
index 3ab3543..efb238f 100644
--- a/include/arm11/hardware/mcu.h
+++ b/include/arm11/hardware/mcu.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/pdn.h b/include/arm11/hardware/pdn.h
index f46f3c3..24e1d2b 100644
--- a/include/arm11/hardware/pdn.h
+++ b/include/arm11/hardware/pdn.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2020 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/performance_monitor.h b/include/arm11/hardware/performance_monitor.h
index 773c611..0ab53d8 100644
--- a/include/arm11/hardware/performance_monitor.h
+++ b/include/arm11/hardware/performance_monitor.h
@@ -1,6 +1,8 @@
+#pragma once
+
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/scu.h b/include/arm11/hardware/scu.h
index eafb26c..ce89392 100644
--- a/include/arm11/hardware/scu.h
+++ b/include/arm11/hardware/scu.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/spi.h b/include/arm11/hardware/spi.h
index c32680e..6a19cec 100644
--- a/include/arm11/hardware/spi.h
+++ b/include/arm11/hardware/spi.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/spiflash.h b/include/arm11/hardware/spiflash.h
index 98de7f2..ae8f886 100644
--- a/include/arm11/hardware/spiflash.h
+++ b/include/arm11/hardware/spiflash.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/hardware/timer.h b/include/arm11/hardware/timer.h
index 5cc40b1..131549e 100644
--- a/include/arm11/hardware/timer.h
+++ b/include/arm11/hardware/timer.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/open_agb_firm.h b/include/arm11/open_agb_firm.h
index e51ef1e..d615009 100644
--- a/include/arm11/open_agb_firm.h
+++ b/include/arm11/open_agb_firm.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "error_codes.h"
diff --git a/include/arm11/power.h b/include/arm11/power.h
index c01b56b..d7da7f4 100644
--- a/include/arm11/power.h
+++ b/include/arm11/power.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/spinlock.h b/include/arm11/spinlock.h
index e430a27..d2b312f 100644
--- a/include/arm11/spinlock.h
+++ b/include/arm11/spinlock.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm11/start.h b/include/arm11/start.h
index e4fe8f3..a29a77b 100644
--- a/include/arm11/start.h
+++ b/include/arm11/start.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm9/arm7_stub.h b/include/arm9/arm7_stub.h
index f4eb409..c0e8b58 100644
--- a/include/arm9/arm7_stub.h
+++ b/include/arm9/arm7_stub.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "types.h"
diff --git a/include/arm9/debug.h b/include/arm9/debug.h
index d8eeec5..0d11814 100644
--- a/include/arm9/debug.h
+++ b/include/arm9/debug.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm9/hardware/cfg9.h b/include/arm9/hardware/cfg9.h
index 8a1fb4f..0f8cef8 100644
--- a/include/arm9/hardware/cfg9.h
+++ b/include/arm9/hardware/cfg9.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2018 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm9/hardware/crypto.h b/include/arm9/hardware/crypto.h
index 461f806..bd8eee1 100644
--- a/include/arm9/hardware/crypto.h
+++ b/include/arm9/hardware/crypto.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm9/hardware/interrupt.h b/include/arm9/hardware/interrupt.h
index bbe86e5..8607a4e 100644
--- a/include/arm9/hardware/interrupt.h
+++ b/include/arm9/hardware/interrupt.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm9/hardware/ndma.h b/include/arm9/hardware/ndma.h
index b9af035..8ddc01e 100644
--- a/include/arm9/hardware/ndma.h
+++ b/include/arm9/hardware/ndma.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm9/hardware/spicard.h b/include/arm9/hardware/spicard.h
index 6eb7d66..30d366f 100644
--- a/include/arm9/hardware/spicard.h
+++ b/include/arm9/hardware/spicard.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm9/hardware/timer.h b/include/arm9/hardware/timer.h
index 1ca95c1..6b4a99b 100644
--- a/include/arm9/hardware/timer.h
+++ b/include/arm9/hardware/timer.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/arm9/start.h b/include/arm9/start.h
index 97900f1..c74306e 100644
--- a/include/arm9/start.h
+++ b/include/arm9/start.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/asm_macros.h b/include/asm_macros.h
index d5a8e85..f621a0c 100644
--- a/include/asm_macros.h
+++ b/include/asm_macros.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/error_codes.h b/include/error_codes.h
index 9e3abb9..25287dd 100644
--- a/include/error_codes.h
+++ b/include/error_codes.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "types.h"
diff --git a/include/fb_assert.h b/include/fb_assert.h
index 86b2617..b226627 100644
--- a/include/fb_assert.h
+++ b/include/fb_assert.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/fs.h b/include/fs.h
index 493adfb..40ec6a0 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/fsutil.h b/include/fsutil.h
index 18fe8cf..7c16595 100644
--- a/include/fsutil.h
+++ b/include/fsutil.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2020 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/hardware/cache.h b/include/hardware/cache.h
index d023cab..f06c345 100644
--- a/include/hardware/cache.h
+++ b/include/hardware/cache.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/hardware/corelink_dma-330.h b/include/hardware/corelink_dma-330.h
index 864b80b..017bd9f 100644
--- a/include/hardware/corelink_dma-330.h
+++ b/include/hardware/corelink_dma-330.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/hardware/gfx.h b/include/hardware/gfx.h
index c91d6f0..acbfee5 100644
--- a/include/hardware/gfx.h
+++ b/include/hardware/gfx.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/hardware/lgy.h b/include/hardware/lgy.h
index b481754..6d48b6a 100644
--- a/include/hardware/lgy.h
+++ b/include/hardware/lgy.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "types.h"
#include "error_codes.h"
diff --git a/include/hardware/pxi.h b/include/hardware/pxi.h
index 795bb7c..a922945 100644
--- a/include/hardware/pxi.h
+++ b/include/hardware/pxi.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/ipc_handler.h b/include/ipc_handler.h
index 40bcaca..d83c9db 100644
--- a/include/ipc_handler.h
+++ b/include/ipc_handler.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/mem_map.h b/include/mem_map.h
index 53dd405..43bbbb1 100644
--- a/include/mem_map.h
+++ b/include/mem_map.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/system.h b/include/system.h
index 3435ffc..18808a1 100644
--- a/include/system.h
+++ b/include/system.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2018 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/types.h b/include/types.h
index bdad9cb..0ec1307 100644
--- a/include/types.h
+++ b/include/types.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/util.h b/include/util.h
index b97f77c..c97cf89 100644
--- a/include/util.h
+++ b/include/util.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/include/internal/config.h b/kernel/include/internal/config.h
index 7de6cbf..4606aa6 100644
--- a/kernel/include/internal/config.h
+++ b/kernel/include/internal/config.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/include/internal/contextswitch.h b/kernel/include/internal/contextswitch.h
index 236b4ac..0f50bd0 100644
--- a/kernel/include/internal/contextswitch.h
+++ b/kernel/include/internal/contextswitch.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/include/internal/kernel_private.h b/kernel/include/internal/kernel_private.h
index 4edfb0e..55280cf 100644
--- a/kernel/include/internal/kernel_private.h
+++ b/kernel/include/internal/kernel_private.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include
#include
diff --git a/kernel/include/internal/slabheap.h b/kernel/include/internal/slabheap.h
index 091ec7b..bf967be 100644
--- a/kernel/include/internal/slabheap.h
+++ b/kernel/include/internal/slabheap.h
@@ -1,5 +1,22 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
#include
#include "internal/list.h"
diff --git a/kernel/include/internal/spinlock.h b/kernel/include/internal/spinlock.h
index e430a27..d2b312f 100644
--- a/kernel/include/internal/spinlock.h
+++ b/kernel/include/internal/spinlock.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/include/internal/util.h b/kernel/include/internal/util.h
index cc66a64..4b719ae 100644
--- a/kernel/include/internal/util.h
+++ b/kernel/include/internal/util.h
@@ -1,5 +1,23 @@
#pragma once
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#define LIKELY(expr) __builtin_expect((expr), true)
#define UNLIKELY(expr) __builtin_expect((expr), false)
diff --git a/kernel/include/kernel.h b/kernel/include/kernel.h
index d8423ad..ac47c2d 100644
--- a/kernel/include/kernel.h
+++ b/kernel/include/kernel.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/include/kevent.h b/kernel/include/kevent.h
index 6a0aa80..f1768d0 100644
--- a/kernel/include/kevent.h
+++ b/kernel/include/kevent.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/include/kmutex.h b/kernel/include/kmutex.h
index ff3960b..95bbb6e 100644
--- a/kernel/include/kmutex.h
+++ b/kernel/include/kmutex.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/include/ksemaphore.h b/kernel/include/ksemaphore.h
index 7c650e8..348d418 100644
--- a/kernel/include/ksemaphore.h
+++ b/kernel/include/ksemaphore.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/include/ktimer.h b/kernel/include/ktimer.h
index 968bec3..d53fc9e 100644
--- a/kernel/include/ktimer.h
+++ b/kernel/include/ktimer.h
@@ -1,8 +1,8 @@
#pragma once
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/source/contextswitch.s b/kernel/source/contextswitch.s
index 78c4085..0e7d436 100644
--- a/kernel/source/contextswitch.s
+++ b/kernel/source/contextswitch.s
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/kernel/source/kernel.c b/kernel/source/kernel.c
index 3916f37..40c03cf 100644
--- a/kernel/source/kernel.c
+++ b/kernel/source/kernel.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include
#include
diff --git a/kernel/source/kevent.c b/kernel/source/kevent.c
index 1cfc386..72328ca 100644
--- a/kernel/source/kevent.c
+++ b/kernel/source/kevent.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include
#include "types.h"
diff --git a/kernel/source/kmutex.c b/kernel/source/kmutex.c
index e9390f0..d485313 100644
--- a/kernel/source/kmutex.c
+++ b/kernel/source/kmutex.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include "types.h"
#include "kmutex.h"
diff --git a/kernel/source/ksemaphore.c b/kernel/source/ksemaphore.c
index e369eae..9119301 100644
--- a/kernel/source/ksemaphore.c
+++ b/kernel/source/ksemaphore.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include
#include "types.h"
diff --git a/kernel/source/ktimer.c b/kernel/source/ktimer.c
index fc7a61d..e59209d 100644
--- a/kernel/source/ktimer.c
+++ b/kernel/source/ktimer.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include
#include "types.h"
diff --git a/kernel/source/slabheap.c b/kernel/source/slabheap.c
index 9483449..7f7c1ef 100644
--- a/kernel/source/slabheap.c
+++ b/kernel/source/slabheap.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include
#include "internal/slabheap.h"
diff --git a/source/arm11/console.c b/source/arm11/console.c
index 2137f63..13a293b 100644
--- a/source/arm11/console.c
+++ b/source/arm11/console.c
@@ -1,5 +1,5 @@
/*
- * This code is part of ctrulib (https://github.com/smealum/ctrulib)
+ * This code is part of libctru (https://github.com/devkitPro/libctru)
*/
#include
diff --git a/source/arm11/debug.c b/source/arm11/debug.c
index e4eb8f0..259f671 100644
--- a/source/arm11/debug.c
+++ b/source/arm11/debug.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c
index 8995c82..f9643fb 100644
--- a/source/arm11/filebrowser.c
+++ b/source/arm11/filebrowser.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include
#include "types.h"
diff --git a/source/arm11/fs.c b/source/arm11/fs.c
index 0d7983a..495e5af 100644
--- a/source/arm11/fs.c
+++ b/source/arm11/fs.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/cache.s b/source/arm11/hardware/cache.s
index 0084710..3b77ec2 100644
--- a/source/arm11/hardware/cache.s
+++ b/source/arm11/hardware/cache.s
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2018 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/codec.c b/source/arm11/hardware/codec.c
index 4bce237..130cc48 100644
--- a/source/arm11/hardware/codec.c
+++ b/source/arm11/hardware/codec.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 Sergi Granell (xerpi), Paul LaMendola (paulguy), derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 Sergi Granell (xerpi), Paul LaMendola (paulguy), derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/csnd.c b/source/arm11/hardware/csnd.c
index 8eccebf..7cb2c12 100644
--- a/source/arm11/hardware/csnd.c
+++ b/source/arm11/hardware/csnd.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 Sergi Granell (xerpi), Paul LaMendola (paulguy), derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/exception.s b/source/arm11/hardware/exception.s
index 7d1a460..ff14c1f 100644
--- a/source/arm11/hardware/exception.s
+++ b/source/arm11/hardware/exception.s
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/gfx.c b/source/arm11/hardware/gfx.c
index 606d1da..57d0999 100644
--- a/source/arm11/hardware/gfx.c
+++ b/source/arm11/hardware/gfx.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/gpio.c b/source/arm11/hardware/gpio.c
index fbeeb01..c95beb0 100644
--- a/source/arm11/hardware/gpio.c
+++ b/source/arm11/hardware/gpio.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/hash.c b/source/arm11/hardware/hash.c
index 42c4bc9..3c7e2c3 100644
--- a/source/arm11/hardware/hash.c
+++ b/source/arm11/hardware/hash.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2018 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/hid.c b/source/arm11/hardware/hid.c
index eb0cb0a..3044d56 100644
--- a/source/arm11/hardware/hid.c
+++ b/source/arm11/hardware/hid.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/i2c.c b/source/arm11/hardware/i2c.c
index 2d9964f..1c12670 100644
--- a/source/arm11/hardware/i2c.c
+++ b/source/arm11/hardware/i2c.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/interrupt.c b/source/arm11/hardware/interrupt.c
index 3dcfad5..5e49e1b 100644
--- a/source/arm11/hardware/interrupt.c
+++ b/source/arm11/hardware/interrupt.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/lcd.c b/source/arm11/hardware/lcd.c
index ab06a7f..8ae7a6e 100644
--- a/source/arm11/hardware/lcd.c
+++ b/source/arm11/hardware/lcd.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "types.h"
#include "arm11/hardware/lcd.h"
#include "arm11/hardware/i2c.h"
diff --git a/source/arm11/hardware/lgy.c b/source/arm11/hardware/lgy.c
index c7e3569..f77da29 100644
--- a/source/arm11/hardware/lgy.c
+++ b/source/arm11/hardware/lgy.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include "types.h"
#include "hardware/lgy.h"
diff --git a/source/arm11/hardware/lgyfb.c b/source/arm11/hardware/lgyfb.c
index a5d0539..83a4d0a 100644
--- a/source/arm11/hardware/lgyfb.c
+++ b/source/arm11/hardware/lgyfb.c
@@ -133,6 +133,7 @@ void LGYFB_init(KEvent *frameReadyEvent)
/*
* Limitations:
* First pattern bit must be 1 and last 0 (for V-scale) or it loses sync with the DS/GBA input.
+ * Vertical scaling is fucked with identity matrix.
*
* Matrix ranges:
* in[-3] -1024-1023 (0xFC00-0x03FF)
@@ -170,7 +171,16 @@ void LGYFB_init(KEvent *frameReadyEvent)
0x4000, 0x4000, 0x2000, 0x4000, 0x4000, 0x2000,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0
+
+ // Identity (no scaling). Don't use for vertical scaling!
+ /* 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0,
+ 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000,
+ 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0*/
};
+ //setScaleMatrixTop(6, 0b00111111, scaleMatrix); // Identity.
setScaleMatrixTop(6, 0b00011011, scaleMatrix);
// With RGB8 output solid red and blue are converted to 0xF8 and green to 0xFA.
diff --git a/source/arm11/hardware/lgyfb.dma330 b/source/arm11/hardware/lgyfb.dma330
index 93d0a69..33bdba2 100644
--- a/source/arm11/hardware/lgyfb.dma330
+++ b/source/arm11/hardware/lgyfb.dma330
@@ -9,9 +9,10 @@ FLUSHP 14
# Loop until the entire frame has been transferred.
-LPFE
- # Wait for single or burst requests.
- WFP 14, periph
+#LP 20 # For height 160.
+LP 30 # For height 240.
+ # Wait for a burst request.
+ WFP 14, burst
# Transfer 8 scanlines.
# For width 240:
@@ -23,19 +24,19 @@ LPFE
#LP 44 # RGB5551 & RGB565, 128 bytes burst
LP 71 # RGB8, 120 bytes burst
#LP 89 # RGBA8, 128 bytes burst
- LDB
- STB
- LPENDB
- LDPB 14
- STB
+ LD
+ ST
+ LPEND
+ LDPB 14 # This must always be conditional on bursts. No idea why. Assembler bug?
+ ST
# Skip gaps swizzle edition™.
- # For width 240:
+ # For width 240 with 256x256 texture:
#ADDH DAR, 0x100 # RGB5551 & RGB565
#ADDH DAR, 0x180 # RGB8
#ADDH DAR, 0x200 # RGBA8
- #For width 360:
+ #For width 360 with 512x512 texture:
#ADDH DAR, 0x980 # RGB5551 & RGB565
ADDH DAR, 0xE40 # RGB8
#ADDH DAR, 0x1300 # RGBA8
diff --git a/source/arm11/hardware/mcu.c b/source/arm11/hardware/mcu.c
index 00529d1..082b7bc 100644
--- a/source/arm11/hardware/mcu.c
+++ b/source/arm11/hardware/mcu.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/mmu.c b/source/arm11/hardware/mmu.c
index 2599a7f..4116fe4 100644
--- a/source/arm11/hardware/mmu.c
+++ b/source/arm11/hardware/mmu.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2018 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/pdn.c b/source/arm11/hardware/pdn.c
index fb36109..ccb6fb9 100644
--- a/source/arm11/hardware/pdn.c
+++ b/source/arm11/hardware/pdn.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2020 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/spi.c b/source/arm11/hardware/spi.c
index 0c1bdf8..8041c0a 100644
--- a/source/arm11/hardware/spi.c
+++ b/source/arm11/hardware/spi.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/spiflash.c b/source/arm11/hardware/spiflash.c
index 127bf79..4f56af8 100644
--- a/source/arm11/hardware/spiflash.c
+++ b/source/arm11/hardware/spiflash.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/hardware/timer.c b/source/arm11/hardware/timer.c
index 9236df5..44699af 100644
--- a/source/arm11/hardware/timer.c
+++ b/source/arm11/hardware/timer.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/ipc_handler.c b/source/arm11/ipc_handler.c
index 2821741..e7478a0 100644
--- a/source/arm11/ipc_handler.c
+++ b/source/arm11/ipc_handler.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/main.c b/source/arm11/main.c
index 7741b1c..ac4fba2 100644
--- a/source/arm11/main.c
+++ b/source/arm11/main.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c
index 66d2f12..0cdad68 100644
--- a/source/arm11/open_agb_firm.c
+++ b/source/arm11/open_agb_firm.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -429,8 +429,7 @@ static void adjustGammaTableForGba(void)
// Credits for this algo go to Extrems.
// Originally from Game Boy Interface Standard Edition for the GameCube.
u32 res = powf(powf(contrast, inGamma) * powf((float)i / 255.0f + brightness / contrast, inGamma),
- 1.0f / outGamma) * 255.0f;
- if(res > 255) res = 255;
+ 1.0f / outGamma) * 255.0f;
// Same adjustment for red/green/blue.
REG_LCD_PDC0_GTBL_FIFO = res<<16 | res<<8 | res;
@@ -497,7 +496,7 @@ static void gbaGfxHandler(void *args)
GFX_waitForPPF();
GFX_swapFramebufs();
- if(hidKeysDown() & (KEY_Y | KEY_SELECT)) dumpFrameTex();
+ if(hidKeysDown() == (KEY_Y | KEY_SELECT)) dumpFrameTex();
}
taskExit();
diff --git a/source/arm11/power.c b/source/arm11/power.c
index 0ddf524..4f9c479 100644
--- a/source/arm11/power.c
+++ b/source/arm11/power.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/start.s b/source/arm11/start.s
index c5c3b2c..b99c43e 100644
--- a/source/arm11/start.s
+++ b/source/arm11/start.s
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm11/system.c b/source/arm11/system.c
index ef9d868..10d37e7 100644
--- a/source/arm11/system.c
+++ b/source/arm11/system.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2018 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/arm7_stub.s b/source/arm9/arm7_stub.s
index d285cd1..cf097d5 100644
--- a/source/arm9/arm7_stub.s
+++ b/source/arm9/arm7_stub.s
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "arm.h"
#include "asm_macros.h"
diff --git a/source/arm9/debug.c b/source/arm9/debug.c
index a8768b9..e23fe1e 100644
--- a/source/arm9/debug.c
+++ b/source/arm9/debug.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/fs.c b/source/arm9/fs.c
index 31b4a3b..2056ade 100644
--- a/source/arm9/fs.c
+++ b/source/arm9/fs.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/hardware/cache.s b/source/arm9/hardware/cache.s
index 8ad2322..6ae497d 100644
--- a/source/arm9/hardware/cache.s
+++ b/source/arm9/hardware/cache.s
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/hardware/crypto.c b/source/arm9/hardware/crypto.c
index b0ac230..7a33bc2 100644
--- a/source/arm9/hardware/crypto.c
+++ b/source/arm9/hardware/crypto.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/hardware/exception.s b/source/arm9/hardware/exception.s
index 305d9f2..dd1ca85 100644
--- a/source/arm9/hardware/exception.s
+++ b/source/arm9/hardware/exception.s
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/hardware/hid.c b/source/arm9/hardware/hid.c
index 7b9b829..faa5e59 100644
--- a/source/arm9/hardware/hid.c
+++ b/source/arm9/hardware/hid.c
@@ -1,5 +1,5 @@
/*
- * This code is part of ctrulib (https://github.com/smealum/ctrulib)
+ * This code is part of libctru (https://github.com/devkitPro/libctru)
*/
#include "types.h"
diff --git a/source/arm9/hardware/interrupt.c b/source/arm9/hardware/interrupt.c
index b7afb0d..cbe38ee 100644
--- a/source/arm9/hardware/interrupt.c
+++ b/source/arm9/hardware/interrupt.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/hardware/lgy.c b/source/arm9/hardware/lgy.c
index 7ad86e2..a2f8f19 100644
--- a/source/arm9/hardware/lgy.c
+++ b/source/arm9/hardware/lgy.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include
#include "types.h"
#include "hardware/lgy.h"
diff --git a/source/arm9/hardware/ndma.c b/source/arm9/hardware/ndma.c
index 8d7fb56..0bde580 100644
--- a/source/arm9/hardware/ndma.c
+++ b/source/arm9/hardware/ndma.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/hardware/spicard.c b/source/arm9/hardware/spicard.c
index 021da22..22c7179 100644
--- a/source/arm9/hardware/spicard.c
+++ b/source/arm9/hardware/spicard.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/hardware/timer.c b/source/arm9/hardware/timer.c
index fbd700c..99eb459 100644
--- a/source/arm9/hardware/timer.c
+++ b/source/arm9/hardware/timer.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/ipc_handler.c b/source/arm9/ipc_handler.c
index 06fe07d..86f0d82 100644
--- a/source/arm9/ipc_handler.c
+++ b/source/arm9/ipc_handler.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/main.c b/source/arm9/main.c
index db052de..8f18ea2 100644
--- a/source/arm9/main.c
+++ b/source/arm9/main.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/start.s b/source/arm9/start.s
index 9410a3b..a81dff1 100644
--- a/source/arm9/start.s
+++ b/source/arm9/start.s
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/arm9/system.c b/source/arm9/system.c
index fd79b65..0ae58d2 100644
--- a/source/arm9/system.c
+++ b/source/arm9/system.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/error_codes.c b/source/error_codes.c
index 3fdd6f0..2c81c24 100644
--- a/source/error_codes.c
+++ b/source/error_codes.c
@@ -1,3 +1,21 @@
+/*
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "types.h"
#include "error_codes.h"
#include "hardware/gfx.h"
diff --git a/source/fb_assert.c b/source/fb_assert.c
index 983bb08..63c5289 100644
--- a/source/fb_assert.c
+++ b/source/fb_assert.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/fsutil.c b/source/fsutil.c
index 2a4d4d8..a25b22f 100644
--- a/source/fsutil.c
+++ b/source/fsutil.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2020 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@
-Result fsQuickRead(const char *const path, void *const buf, u32 size)
+Result fsQuickRead(const char *const path, void *const buf, u32 size) // TODO: Output how many bytes we read?
{
Result res;
FHandle f;
diff --git a/source/hardware/corelink_dma-330.c b/source/hardware/corelink_dma-330.c
index f3c1005..f0ad9e7 100644
--- a/source/hardware/corelink_dma-330.c
+++ b/source/hardware/corelink_dma-330.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2019 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/hardware/pxi.c b/source/hardware/pxi.c
index ca3ac10..addbee4 100644
--- a/source/hardware/pxi.c
+++ b/source/hardware/pxi.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/source/util.c b/source/util.c
index a500ab9..ed848f1 100644
--- a/source/util.c
+++ b/source/util.c
@@ -1,6 +1,6 @@
/*
- * This file is part of fastboot 3DS
- * Copyright (C) 2017 derrek, profi200
+ * This file is part of open_agb_firm
+ * Copyright (C) 2021 derrek, profi200
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by