Emit mspack debug messages to Xenia.
This commit is contained in:
10
third_party/mspack/logging.cc
vendored
Normal file
10
third_party/mspack/logging.cc
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "xenia/base/logging.h"
|
||||
|
||||
extern "C" void xenia_log(const char* fmt, ...) {
|
||||
char buffer[128];
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
vsnprintf(buffer, sizeof(buffer), fmt, args);
|
||||
va_end(args);
|
||||
XELOGW("mspack: %s", buffer);
|
||||
}
|
||||
5
third_party/mspack/lzxd.c
vendored
5
third_party/mspack/lzxd.c
vendored
@@ -15,6 +15,11 @@
|
||||
#include <system.h>
|
||||
#include <lzx.h>
|
||||
|
||||
extern void xenia_log(const char*, ...);
|
||||
|
||||
#undef D
|
||||
#define D(x) do { xenia_log x; } while (0);
|
||||
|
||||
/* Microsoft's LZX document (in cab-sdk.exe) and their implementation
|
||||
* of the com.ms.util.cab Java package do not concur.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user