Python: GB core should expose memory

This commit is contained in:
Vicki Pfau 2017-06-29 02:45:50 -07:00
parent fc64924cf5
commit 7752bfe0db
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@ class GB(Core):
self._native.video.renderer.cache = ffi.NULL
lib.mTileCacheDeinit(cache)
def reset(self):
super(GB, self).reset()
self.memory = GBMemory(self._core)
def attachSIO(self, link):
lib.GBSIOSetDriver(ffi.addressof(self._native.sio), link._native)