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
#!/bin/sh | |
SKIP_DLLS= | |
DLL_PATH=/mingw/bin | |
OUTDIR=. | |
scan_executable() { | |
for i in `objdump -p $1 | grep 'DLL Name:' | cut -d ' ' -f 3`; do | |
if [[ ! "$SKIP_DLLS" =~ "$i" ]]; then | |
echo $1: $i |
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
#!/bin/bash | |
ACTION="ln -sf" | |
if [ $# -lt 2 ]; then | |
echo "usage: $0 srcdir dstdir" | |
exit 1 | |
fi | |
SRCDIR=$1 | |
DSTDIR=$2 |
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
# DGamer .fun unpacker | |
# By Cameron Cawley | |
get NAMES long | |
math NAMES += 24 | |
get NAMESLEN long | |
get POINTERS long | |
get POINTERSLEN long | |
do |
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
# Sim City 2000 SC2000.DAT unpacker | |
# By Cameron Cawley | |
getdstring NAME 12 | |
get OFFSET long | |
math COUNT = OFFSET | |
math COUNT /= 16 | |
for i = 1 <= COUNT | |
getdstring NEXTNAME 12 |
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
# 4Mation archive unpacker | |
# By Cameron Cawley | |
IDString "BIIK-DJC" | |
get ARCHIVE_SIZE asize | |
goto 20 | |
get FILEINDEX long | |
goto FILEINDEX | |
get TEMP long | |
get INDEXSIZE long |
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
# gsp_run.dat unpacker | |
# By Cameron Cawley | |
get ARCHIVE_SIZE asize | |
math ARCHIVE_SIZE += 1 | |
math OFFSET = 0 | |
do | |
goto OFFSET | |
get NAME_LENGTH long |
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
# Sonic Adventure DX .dat unpacker | |
# By Cameron Cawley | |
# Based on information from https://info.sonicretro.org/SCHG:Sonic_Adventure_DX:_PC/Sound_Editing/Sound_Effects#Format | |
getdstring IDSTR 16 | |
set ID04 binary "archive V2.2\0\0\0" | |
set ID10 binary = "archive V2.DMZ\0" | |
if IDSTR == ID04 | |
elif IDSTR == ID10 | |
else |
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
# Sonic CD (PC 1996) pcm8.cmp unpacker | |
# By Cameron Cawley | |
# Based on information from https://info.sonicretro.org/SCHG:Sonic_CD_(PC)#Sound_Effects | |
IDString "OTHE" | |
get EOF long | |
get COUNT long | |
get OFFSET long | |
for i = 0 < COUNT |
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
# Sonic Classic Collection .mods unpacker | |
# By Cameron Cawley | |
get COUNT long | |
set POSITION long 4 | |
for i = 0 < COUNT | |
get FIRSTPTR long | |
math POSITION += 4 | |
get NEXTPTR long | |
if FIRSTPTR != NEXTPTR |