mirror of https://github.com/mgba-emu/mgba.git
Scripting: Let mScriptContextAttachLogger take NULL for logger
This commit is contained in:
parent
3c59429d96
commit
eb5fc371ff
|
@ -82,7 +82,7 @@ static struct mScriptConsole* _ensureConsole(struct mScriptContext* context) {
|
||||||
|
|
||||||
void mScriptContextAttachLogger(struct mScriptContext* context, struct mLogger* logger) {
|
void mScriptContextAttachLogger(struct mScriptContext* context, struct mLogger* logger) {
|
||||||
struct mScriptConsole* console = _ensureConsole(context);
|
struct mScriptConsole* console = _ensureConsole(context);
|
||||||
console->logger = logger;
|
console->logger = logger ? logger : mLogGetContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
void mScriptContextDetachLogger(struct mScriptContext* context) {
|
void mScriptContextDetachLogger(struct mScriptContext* context) {
|
||||||
|
|
Loading…
Reference in New Issue