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
def DIV_ROUND_UP(n, d): | |
return (n + d - 1) // d | |
def round_up(x, y): | |
return ((x - 1) | (y - 1)) + 1 | |
def pow2_round_up(x): | |
x -= 1 |
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
# Copyright (C) 2018 MasterVermilli0n / AboodXD | |
# This script extracts GSH files from PTCL files used in Wii U games | |
import struct | |
class PTCLHeader(struct.Struct): | |
def __init__(self): | |
super().__init__('>4s2I4x11I') |
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/env python3 | |
# -*- coding: utf-8 -*- | |
# Object Sorter | |
# Copyright © 2018 AboodXD | |
import json, os, re, sys | |
from PyQt5.QtCore import QSize | |
from PyQt5.QtGui import QIcon, QPalette, QPixmap |
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/env python3 | |
# -*- coding: utf-8 -*- | |
# BFRES textures replacer | |
# Copyright © 2018 AboodXD | |
import struct | |
import time | |
from tkinter import Tk, filedialog |
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
from math import asin, atan2, copysign, cos, fabs, pi, sin | |
def _matMultiply(mat1, mat2): | |
matW1 = len(mat1[0]) | |
matH1 = len(mat1) | |
matW2 = len(mat2[0]) | |
matH2 = len(mat2) | |
assert matW1 == matH2 |
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 struct | |
import os | |
header = None | |
supported_versions = [0xA, 0xB] | |
class Header: | |
def __init__(self, endianness='<'): |
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 json | |
import os | |
import struct | |
import shutil | |
from PIL import Image | |
folder = input('Enter folder path:') | |
outFolder = os.path.join(folder, "out") | |
if not os.path.isdir(outFolder): |
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
from distutils.core import setup | |
from Cython.Build import cythonize | |
from os import listdir | |
for file in listdir('.'): | |
if file[-4:] == '.pyx': | |
setup(ext_modules = cythonize(file)) |
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
root_heaps: | |
- heap_name: RootHeap | |
heap_type: ExpHeap | |
heap_address: 0x1061F068 | |
heap_size: 0x3C000000 | |
heap_direction: Forward | |
heap_children: | |
- heap_name: sead::ThreadMgr | |
heap_type: ExpHeap | |
heap_address: 0x1061F12C |
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
#include "aglResShaderArchive.h" | |
#include <cstring> | |
namespace agl { | |
const char* ResBinaryShaderArchiveData::getExtension() | |
{ | |
return ".sharcfb"; | |
} |
OlderNewer