mirror of https://github.com/mgba-emu/mgba.git
Python: Fix indentation, hold onto logger
This commit is contained in:
parent
0e40168a1b
commit
c1a4f17ebd
|
@ -8,7 +8,11 @@ from . import createCallback
|
||||||
|
|
||||||
createCallback("mLoggerPy", "log", "_pyLog")
|
createCallback("mLoggerPy", "log", "_pyLog")
|
||||||
|
|
||||||
|
defaultLogger = None
|
||||||
|
|
||||||
def installDefault(logger):
|
def installDefault(logger):
|
||||||
|
global defaultLogger
|
||||||
|
defaultLogger = logger
|
||||||
lib.mLogSetDefaultLogger(logger._native)
|
lib.mLogSetDefaultLogger(logger._native)
|
||||||
|
|
||||||
class Logger(object):
|
class Logger(object):
|
||||||
|
|
Loading…
Reference in New Issue