mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
get RomStr from romstr.py in gbz80disasm
This commit is contained in:
parent
63ccfbfd62
commit
315edbe14b
@ -6,19 +6,17 @@ from copy import copy, deepcopy
|
||||
from ctypes import c_int8
|
||||
import json
|
||||
import random
|
||||
from romstr import RomStr
|
||||
|
||||
spacing = "\t"
|
||||
|
||||
#this was originally for renaming freeze maps for a unique name
|
||||
# this was originally for renaming freeze maps for a unique name
|
||||
def random_hash():
|
||||
available_chars = string.hexdigits[:16]
|
||||
return ''.join(
|
||||
random.choice(available_chars)
|
||||
for dummy in xrange(5))
|
||||
|
||||
class RomStr(str):
|
||||
"""simple wrapper to prevent a giant rom from being shown on screen"""
|
||||
def __repr__(self):
|
||||
return "RomStr(too long)"
|
||||
def load_rom(filename="../baserom.gbc"):
|
||||
"""loads bytes into memory"""
|
||||
global rom
|
||||
|
Loading…
Reference in New Issue
Block a user