summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md6
-rw-r--r--macros.asm8
-rwxr-xr-xtools/compare-gold.sh11
-rwxr-xr-xtools/compare-silver.sh11
-rw-r--r--tools/scan_includes.py35
-rwxr-xr-xtools/unused_sources.sh18
6 files changed, 1 insertions, 88 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 33d2dd0e..1382e13e 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -2,10 +2,6 @@
These instructions explain how to set up the tools required to build **pokegold**, including [**rgbds**](https://github.com/rednex/rgbds), which assembles the source files into a ROM.
-Currently building requires that you provide a base ROM for both versions. You can find the sha1 for each version in [README.md](README.md) to confirm you have the right one.
-
-You will need to rename the Gold ROM to **baserom-gold.gbc** and the Silver ROM to **baserom-silver.gbc** in order to build either version.
-
If you run into trouble, ask for help on IRC or Discord (see [README.md](README.md)).
## Windows 10
@@ -156,4 +152,4 @@ To build both ROMs:
```bash
make
-``` \ No newline at end of file
+```
diff --git a/macros.asm b/macros.asm
index e635a2b0..9818c79e 100644
--- a/macros.asm
+++ b/macros.asm
@@ -20,11 +20,3 @@ INCLUDE "macros/scripts/gfx_anims.asm"
; - Leave out for now so no code depending on legacy macros gets introduced
;
; INCLUDE "macros/legacy.asm"
-
-dr: macro
-IF DEF(_GOLD)
-INCBIN "baserom-gold.gbc", \1, \2 - \1
-ELIF DEF(_SILVER)
-INCBIN "baserom-silver.gbc", \1, \2 - \1
-ENDC
-ENDM
diff --git a/tools/compare-gold.sh b/tools/compare-gold.sh
deleted file mode 100755
index e75cb743..00000000
--- a/tools/compare-gold.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# Compares baserom-gold.gbc and pokegold.gbc
-
-# create baserom-gold.txt if necessary
-if [ ! -f baserom-gold.txt ]; then
- hexdump -C baserom-gold.gbc > baserom-gold.txt
-fi
-
-hexdump -C pokegold.gbc > pokegold.txt
-
-diff -u baserom-gold.txt pokegold.txt | less
diff --git a/tools/compare-silver.sh b/tools/compare-silver.sh
deleted file mode 100755
index f8881cd2..00000000
--- a/tools/compare-silver.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# Compares baserom-silver.gbc and pokesilver.gbc
-
-# create baserom-silver.txt if necessary
-if [ ! -f baserom-silver.txt ]; then
- hexdump -C baserom-silver.gbc > baserom-silver.txt
-fi
-
-hexdump -C pokesilver.gbc > pokesilver.txt
-
-diff -u baserom-silver.txt pokesilver.txt | less
diff --git a/tools/scan_includes.py b/tools/scan_includes.py
deleted file mode 100644
index 60929d3f..00000000
--- a/tools/scan_includes.py
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/python
-# coding: utf-8
-
-"""
-Recursively scan an asm file for dependencies.
-"""
-
-import sys
-import argparse
-
-includes = set()
-
-def scan_file(filename):
- for line in open(filename):
- if 'INC' not in line:
- continue
- line = line.split(';')[0]
- if 'INCLUDE' in line:
- include = line.split('"')[1]
- includes.add(include)
- scan_file(include)
- elif 'INCBIN' in line:
- include = line.split('"')[1]
- includes.add(include)
-
-def main():
- ap = argparse.ArgumentParser()
- ap.add_argument('filenames', nargs='*')
- args = ap.parse_args()
- for filename in set(args.filenames):
- scan_file(filename)
- sys.stdout.write(' '.join(includes))
-
-if __name__ == '__main__':
- main()
diff --git a/tools/unused_sources.sh b/tools/unused_sources.sh
deleted file mode 100755
index b0b9e368..00000000
--- a/tools/unused_sources.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-# Finds files that aren't included in the build
-
-# top-level sources listed in Makefile
-toplevel='audio.asm data/text/common.asm data/pokemon/dex_entries.asm wram.asm
-main.asm home.asm gfx/sprites.asm gfx/pics_gold.asm gfx/pics_silver.asm
-data/maps/map_data.asm engine/overworld/events.asm rgbdscheck.asm
-data/pokemon/egg_moves.asm data/pokemon/evos_attacks.asm gfx/tilesets.asm
-engine/movie/credits.asm'
-
-for asm in $toplevel; do
- echo "$asm"
- python tools/scan_includes.py "$asm"
- echo
-done | tr ' ' '\n' | sort -u > includes.txt
-git ls-files | grep -E '\.(asm|gbcpal|pal|lz|[1,2]bpp|blk|bin|rle|attrmap|tilemap|dimensions)$' | sort -u > sources.txt
-comm -23 sources.txt includes.txt
-rm sources.txt includes.txt