Skip to content

Instantly share code, notes, and snippets.

View TuxSH's full-sized avatar
😼

TuxSH

😼
  • 14:46 (UTC +02:00)
View GitHub Profile
@TuxSH
TuxSH / 1de27c5.diff
Last active January 16, 2018 17:23
1de27c5.diff
diff --git a/sysmodules/rosalina/source/menus/cheats.c b/sysmodules/rosalina/source/menus/cheats.c
index 3fbe273..5fb2ae7 100644
--- a/sysmodules/rosalina/source/menus/cheats.c
+++ b/sysmodules/rosalina/source/menus/cheats.c
@@ -70,8 +70,6 @@ static s32 Cheats_FetchProcessInfo(void)
u32 pidList[0x40];
s32 processAmount;
- s64 sa, textTotalRoundedSize, rodataTotalRoundedSize, dataTotalRoundedSize;
-
@TuxSH
TuxSH / notes.txt
Last active August 13, 2017 14:55
M3i Zero-GMPZ003 notes
(word = 32-bit)
-----
Write and read commands
C5 oooooo xx 00 00 => ROM write, FIFO read 0 words write 0x200 words
C9 oooooo xx 00 00 => ROM read, FIFO read 0x200 words write 0 word
oooooo => offset in number of words (?), MSB first
@TuxSH
TuxSH / dma.s1.cdma330.s
Last active August 2, 2017 08:24
dma code found on channel 1
00000000: FLUSHP 0x2
00000002: MOV DAR, #0x00000000
00000008: MOV SAR, #0x10320000
0000000E: MOV DAR, #0x1F219540
00000014: MOV CCR, #0x00BDC2F6
0000001A: LP.0 0x1E
0000001C: WFP 0x2, periph
0000001E: LP.1 0x27
00000020: WMB
00000021: LD
@TuxSH
TuxSH / exheader.h
Last active July 30, 2017 18:17
exheader.h
/// ARM9 descriptor flags
enum
{
ARM9DESC_MOUNT_NAND = BIT(0), ///< Mount "nand:/"
ARM9DESC_MOUNT_NANDRO_RW = BIT(1), ///< Mount nand:/ro/ as read-write
ARM9DESC_MOUNT_TWLN = BIT(2), ///< Mount "twln:/"
ARM9DESC_MOUNT_WNAND = BIT(3), ///< Mount "wnand:/"
ARM9DESC_MOUNT_CARDSPI = BIT(4), ///< Mount "cardspi:/"
ARM9DESC_USE_SDIF3 = BIT(5), ///< Use SDIF3
ARM9DESC_CREATE_SEED = BIT(6), ///< Create seed (movable.sed)
@TuxSH
TuxSH / 3dstypes.h
Last active January 7, 2023 17:34
u32 def
typedef u32 Handle;
typedef s32 Result;
typedef s32 LightLock;
struct RecursiveLock
{
LightLock lock;
u32 threadId;
u32 count;
};
@TuxSH
TuxSH / test_script.txt
Created July 1, 2017 21:30
Pokémon XD test script
.section "FTBL":
.function preprocess, "preprocess"
.function postprocess, "postprocess"
.function modify_floor, "modify_floor"
.function sound, "sound"
.function hero_main, "hero_main"
.function talk_100_hunter_f, "talk_100_hunter_f"
.function talk_101_hunter_f, "talk_101_hunter_f"
.function talk_102_hunter_f, "talk_102_hunter_f"
.function talk_103_hunter_f, "talk_103_hunter_f"
@TuxSH
TuxSH / common_xd_script.txt
Created July 1, 2017 21:16
Pokémon XD common script (its functions can be invoked by other scripts)
.section "FTBL":
.function modify_floor, "modify_floor"
.function preprocess, "preprocess"
.function postprocess, "postprocess"
.function hero_main, "hero_main"
.function floor_link, "floor_link"
.function door_open, "door_open"
.function elevator, "elevator"
.function elevator_out, "elevator_out"
.function fade_in, "fade_in"
@TuxSH
TuxSH / gdb80.diff
Created June 8, 2017 13:42
GDB 3DS 8.0 patch (1f1c02597cc199227226251a2ea51fe5f44b4d6d (tag: gdb-8.0-release))
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 1d2dbaf3f7..2d24f09c1b 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -779,6 +779,7 @@ ALL_64_TARGET_OBS = \
ALL_TARGET_OBS = \
arc-tdep.o \
arm.o \
+ arm-3ds-tdep.o \
arm-bsd-tdep.o \
May 29 23:03:04 <Mrrraou> just because you have access to tools (which are incomplete, unconvenient to use and/or buggy) doesn't mean you have to use them
May 29 23:03:24 <TuxSH> which tools?
May 29 23:03:32 <Mrrraou> qlutoo: why not (they're quite rethorical questions actually)
May 29 23:03:47 * PistonMin has quit (Read error: Operation timed out)
May 29 23:03:55 <Mrrraou> the ones talked about earlier? lol
May 29 23:04:23 <TuxSH> Rosalina "incomplete, unconvenient to use and/or buggy"?
May 29 23:04:28 <TuxSH> hahahahahahahahahahahahahahahahahahahahahahahaha
May 29 23:05:01 <Yami> I don't think this bickering is going to help anyone
May 29 23:05:13 <Mrrraou> it's not
May 29 23:05:16 <Mrrraou> my point was
@TuxSH
TuxSH / client.cpp
Created May 14, 2017 22:18
shitty qt inputredirection client
#include <QWidget>
#include <QApplication>
#include <QDebug>
#include <QGamepadManager>
#include <QGamepad>
#include <QtEndian>
#include <QUdpSocket>
#include <QTimer>
typedef uint32_t u32;