This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts | |
Copyright (C) 2001-2019 Sam Lantinga <slouken@libsdl.org> | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages | |
arising from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, | |
including commercial applications, and to alter it and redistribute it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts | |
Copyright (C) 2001-2019 Sam Lantinga <slouken@libsdl.org> | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages | |
arising from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, | |
including commercial applications, and to alter it and redistribute it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "DKP aarch64", | |
"includePath": [ | |
"${env:DEVKITPRO}/devkitA64/aarch64-none-elf/include", | |
"${env:DEVKITPRO}/devkitA64/lib/gcc/aarch64-none-elf/10.1.0/include", | |
"${env:DEVKITPRO}/libnx/include", | |
"${env:DEVKITPRO}/portlibs/switch/include" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
import nxo64 | |
def main(pattern, filename): | |
f = nxo64.load_nxo(open(filename, 'rb')) | |
f.binfile.seek(0) | |
target_text = f.binfile.read(f.textsize) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Imports a file with lines in the form "symbolName 0xADDRESS" | |
#@category Data | |
#@author | |
from ghidra.app.cmd.label import DemanglerCmd | |
f = askFile("Give me a file to open", "OK!") | |
def set_demangled_name(addr, name): | |
cmd = DemanglerCmd(toAddr(addr), name) | |
return cmd.applyTo(currentProgram, monitor), cmd.getResult() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
for f in *.nca; do | |
export NAME="$(hactool -i $f | grep "Content Type:" | cut -d":" -f2 | tr -d '[:space:]' | tr -d '[\r]')" | |
if [ $NAME == "Meta" ]; then | |
mv "$f" "${f%.nca}.cnmt.nca" | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <array> | |
#include <cstdint> | |
enum class order { | |
Ascending, Descending | |
}; | |
template <typename DataType, size_t MaxSize, order Order = order::Descending> | |
class CircularBuffer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <iterator> | |
#include <utility> | |
template <typename Base> | |
class Enumerate { | |
private: | |
Base &base; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur 11.0.0.400/romfs/0.txt 11.0.1.1000/romfs/0.txt | |
--- 11.0.0.400/romfs/0.txt 2020-12-16 22:04:41.154954800 +0000 | |
+++ 11.0.1.1000/romfs/0.txt 2021-03-09 00:39:49.005725800 +0000 | |
@@ -1,4 +1,37 @@ | |
-��.*disney\.ne\.jp.* | |
+��^0�0�0�.* | |
+^0�0�0�.* | |
+.*0�0�0�$ | |
+.*0�0�0�$ | |
+.*0�00�.* |
OlderNewer