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
# | |
# Export all functions to an array in a header file | |
# | |
ftable = open(idc.AskFile(1, "func_list.h", "Save output file"), "w") | |
ftable.write("struct FunctionEntry\n{\n") | |
ftable.write("\tuintptr_t StartAddr;\n") | |
ftable.write("\tuintptr_t EndAddr;\n") | |
ftable.write("} const FunctionEntries[] =\n") | |
ftable.write("{\n") |
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
using System; | |
using System.Runtime.InteropServices; | |
namespace Utility | |
{ | |
public static class OodleLZ | |
{ | |
private enum OodleLZ_Compressor : int | |
{ | |
LZH = 0, |
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
//----------------------------------------------------------------------------- | |
// MurmurHash3 was written by Austin Appleby, and is placed in the public | |
// domain. The author hereby disclaims copyright to this source code. | |
// Note - The x86 and x64 versions do _not_ produce the same results, as the | |
// algorithms are optimized for their respective platforms. You can still | |
// compile and run any of them on any platform, but your performance with the | |
// non-native version will be less than optimal. | |
// Note - This C# translation is placed in the public domain. It has been ported from |
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 argparse | |
def main(inputFilePath, outputFilePath): | |
with open(inputFilePath, 'rb') as file: | |
binaryData = bytearray(file.read()) | |
ddsHeaderMagic = struct.unpack('>L', binaryData[0x0:0x4])[0] | |
ddsHeaderLength = struct.unpack('L', binaryData[0x4:0x8])[0] |
OlderNewer