Created
February 25, 2013 19:28
-
-
Save NichtJens/5032468 to your computer and use it in GitHub Desktop.
Small modification for "https://github.com/kiij/CoilSnake/blob/master/modules/eb/BattleBgModule.py" to run (almost) errorless.
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
diff --git a/modules/eb/BattleBgModule.py b/modules/eb/BattleBgModule.py | |
index f771fb9..0667f3c 100644 | |
--- a/modules/eb/BattleBgModule.py | |
+++ b/modules/eb/BattleBgModule.py | |
@@ -55,12 +55,12 @@ class BattleBgModule(EbModule.EbModule): | |
if (self._bbgGfxArrs[gfxNum] == None): | |
# Max size used in rom: 421 (2bpp) 442 (4bpp) | |
tg = EbTileGraphics(512, 8, colorDepth) | |
- with EbCompressedData() as tgb: | |
+ with EbCompressedData(tg.sizeBlock()) as tgb: | |
tgb.readFromRom(rom, EbModule.toRegAddr( | |
self._bbgGfxPtrTbl[gfxNum,0].val())) | |
tg.readFromBlock(tgb) | |
a = EbArrangement(32, 32) | |
- with EbCompressedData() as ab: | |
+ with EbCompressedData(a.sizeBlock()) as ab: | |
ab.readFromRom(rom, EbModule.toRegAddr( | |
self._bbgArrPtrTbl[gfxNum,0].val())) | |
a.readFromBlock(ab) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment