mirror of
https://github.com/devkitPro/wut.git
synced 2026-09-26 11:57:47 -05:00
libwhb: Don't add a LogHandler if it's already in the list. (#140)
This commit is contained in:
@@ -27,6 +27,9 @@ WHBAddLogHandler(LogHandlerFn fn)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAX_HANDLERS; ++i) {
|
||||
if(sHandlers[i] == fn){
|
||||
break;
|
||||
}
|
||||
if (!sHandlers[i]) {
|
||||
sHandlers[i] = fn;
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user