mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-15 15:09:30 +00:00
fix potentially wrong texture loading order (#20)
* add gsl library to track memory allocations * rework creation to respect mod order slight slowdown but just to be safe * 1.6.1 * print info on timing * specify largeaddressaware (shouldn't matter since gw is linked with it, but can't hurt)
This commit is contained in:
@@ -26,9 +26,21 @@ inline void Message(const char* format, ...)
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void Info(const char* format, ...)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
vprintf(format, args);
|
||||
va_end(args);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void Warning(const char* format, ...)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
static HANDLE hConsole = GetStdHandle(STD_ERROR_HANDLE);
|
||||
[[maybe_unused]] static auto success = SetConsoleTextAttribute(hConsole, 6);
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
vfprintf(stderr, format, args);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "Utils.h"
|
||||
|
||||
#include <d3d9.h>
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "Defines.h"
|
||||
#include "Error.h"
|
||||
|
||||
Reference in New Issue
Block a user