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:
DubbleClick
2023-12-05 16:11:44 +01:00
committed by GitHub
parent 9e593e83ee
commit 7dbbdc480e
5 changed files with 64 additions and 31 deletions
+12
View File
@@ -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);
+1
View File
@@ -12,6 +12,7 @@
#include "Utils.h"
#include <d3d9.h>
#include <gsl/gsl>
#include "Defines.h"
#include "Error.h"