Skip to content

Commit

Permalink
fix med-tile palette write failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nstbayless committed Apr 23, 2023
1 parent 0ac9bf6 commit a779cbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/constants.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from src.util import *
from src import emulaunch

mmname = "MMagEdit v1.38"
mmname = "MMagEdit v1.39"
mmrepo = "https://github.com/nstbayless/mmagedit"
mmfmt = 202304221055
mmfmt = 202304221715

# this function is used as a "hello world" by libmmagedit to verify library integrity
def get_version_and_date():
Expand Down
3 changes: 1 addition & 2 deletions src/mmdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ def commit(self):
bprev = self.data.read_byte(data_ptr)
bprev &= ~(0x3 << bit)
bprev |= self.med_tile_palettes[i] << bit
self.data.write_byte(data_ptr, bprev)
data_ptr += 1 # if loop ends here.

# macro-tiles
Expand Down Expand Up @@ -1956,8 +1957,6 @@ def write_quickstart_patch(self):
self.write_byte(addr, 0xBF)
addr += 1

print(self.startflag, hex(ppuscroll))

# RET
self.write_byte(addr, 0x60)
else:
Expand Down

0 comments on commit a779cbc

Please sign in to comment.