mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-16 20:31:16 +00:00
* Use strcasecmp, strncasecmp, strlwr, strupr and itoa from SDL * Use SDL_GetTicks instead of timeGetTime * Use MxDSFile::OPEN_READ instead of OF_READ * Use SDL_IOStream to read bitmaps * Use SDL_LogXXX instead of OutputDebugString * Undo mxvideoparam.h change * Revert "Undo mxvideoparam.h change" This reverts commit4a20cf6c46. * Fix _MxTrace * Reapply "Undo mxvideoparam.h change" This reverts commitb3a09dc520. * fix _MxTrace * Use __declspec(dllexport) for exporting symbols from dll Refactored CMake script such that all objects are passed to the lego1 library. * clang-format * fix msvc build * MSVC fixed for real now? * Forgot about d3drm_guid * Fix naming issue * Use Uint64 in LegoCarBuild::Tickle for dTime
29 lines
578 B
C++
29 lines
578 B
C++
#include "mxdebug.h"
|
|
|
|
#ifdef _DEBUG
|
|
|
|
// Debug-only wrapper for OutputDebugString to support variadic arguments.
|
|
// Identical functions at BETA10 0x100ec9fe and 0x101741b5 are more limited in scope.
|
|
// This is the most widely used version.
|
|
|
|
#include <SDL3/SDL_log.h>
|
|
#include <stdio.h>
|
|
|
|
// FUNCTION: BETA10 0x10124cb9
|
|
int DebugHeapState()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// FUNCTION: BETA10 0x10124cdd
|
|
void _MxTrace(const char* format, ...)
|
|
{
|
|
va_list args;
|
|
|
|
va_start(args, format);
|
|
SDL_LogMessageV(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_TRACE, format, args);
|
|
va_end(args);
|
|
}
|
|
|
|
#endif
|