Skip to content

Commit

Permalink
Fixes after GLideN64 rebase
Browse files Browse the repository at this point in the history
Note: Removal of NoiseTex
  • Loading branch information
m4xw committed Jan 21, 2025
1 parent 7ac869a commit b33fa19
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ void LogDebug(const char* _fileName, int _line, u16 _type, const char* _format,
}

#else // mupen64plus
#include <mupen64plus-next_common.h>
#include "mupenplus/GLideN64_mupenplus.h"
extern retro_log_printf_t log_cb;

void LogDebug(const char* _fileName, int _line, u16 _type, const char* _format, ...)
{
Expand All @@ -129,12 +131,6 @@ void LogDebug(const char* _fileName, int _line, u16 _type, const char* _format,
M64MSG_VERBOSE
};

if (CoreDebugCallback == nullptr ||
_type > LOG_LEVEL)
{
return;
}

// initialize use of the variable argument array
va_list vaArgs;
va_start(vaArgs, _format);
Expand All @@ -159,7 +155,8 @@ void LogDebug(const char* _fileName, int _line, u16 _type, const char* _format,
std::stringstream formatString;
formatString << _fileName << ":" << _line << ", \"" << zc.data() << "\"";

CoreDebugCallback(CoreDebugCallbackContext, logLevel[_type], formatString.str().c_str());
//CoreDebugCallback(CoreDebugCallbackContext, logLevel[_type], formatString.str().c_str());
log_cb(RETRO_LOG_INFO, formatString.str().c_str());
}
#endif

Expand Down

0 comments on commit b33fa19

Please sign in to comment.