Skip to content

Commit

Permalink
Store dump files in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
LiarPrincess committed Nov 9, 2020
1 parent 11d32c3 commit 8dc0fa2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.DS_Store
Swift plays pokemon.xcodeproj/xcuserdata

# User settings
Swift plays Pokemon.xcodeproj/**/xcuserdata

# Build thingies
/Build
/.build

# Roms are excluded because of legal stuff…
ROMs/*

# ROM test files
/Tests/GameBoyKitROMTests/Bootrom/Dump
ROMs/*.gb

/Tests/GameBoyKitROMTests/Blargg/ROMs
/Tests/GameBoyKitROMTests/Blargg/Dumps
/Tests/GameBoyKitROMTests/Blargg/Dumps.zip
# You can download 'Blargg' test ROMs at:
# https://gbdev.gg8.se/wiki/articles/Test_ROMs
ROMs/Tests - Blargg

/Tests/GameBoyKitROMTests/Tetris/Dump
/Tests/GameBoyKitROMTests/Tetris/Tetris.gb
# We store dumps in zip files, we do not need them unzipped
ROMs/**/Dump
Binary file added ROMs/DMG_ROM.bin
Binary file not shown.
Binary file added ROMs/Tests - Bootrom/Dump.zip
Binary file not shown.
Binary file added ROMs/Tests - Tetris/Dump.zip
Binary file not shown.
8 changes: 8 additions & 0 deletions ROMs/create_dump_zips.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
rm "./Tests - Blargg/Dumps.zip"
zip -9 -r -q "./Tests - Blargg/Dump.zip" "./Tests - Blargg/Dump"

rm "./Tests - Bootrom/Dump.zip"
zip -9 -r -q "./Tests - Bootrom/Dump.zip" "./Tests - Bootrom/Dump"

rm "./Tests - Tetris/Dump.zip"
zip -9 -r -q "./Tests - Tetris/Dump.zip" "./Tests - Tetris/Dump"
2 changes: 1 addition & 1 deletion Tests/GameBoyKitROMTests/BlarggTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,6 @@ private func openRom(romPath: String) -> Cartridge {
private func getDumpsDirUrl(dumpDirName: String) -> URL {
return romsDir
.appendingPathComponent("Tests - Blargg")
.appendingPathComponent("Dumps")
.appendingPathComponent("Dump")
.appendingPathComponent(dumpDirName)
}

0 comments on commit 8dc0fa2

Please sign in to comment.