mirror of https://github.com/mgba-emu/mgba.git
Python: GB core should expose memory
This commit is contained in:
parent
fc64924cf5
commit
7752bfe0db
|
@ -35,6 +35,10 @@ class GB(Core):
|
||||||
self._native.video.renderer.cache = ffi.NULL
|
self._native.video.renderer.cache = ffi.NULL
|
||||||
lib.mTileCacheDeinit(cache)
|
lib.mTileCacheDeinit(cache)
|
||||||
|
|
||||||
|
def reset(self):
|
||||||
|
super(GB, self).reset()
|
||||||
|
self.memory = GBMemory(self._core)
|
||||||
|
|
||||||
def attachSIO(self, link):
|
def attachSIO(self, link):
|
||||||
lib.GBSIOSetDriver(ffi.addressof(self._native.sio), link._native)
|
lib.GBSIOSetDriver(ffi.addressof(self._native.sio), link._native)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue