This commit is contained in:
Oscar
2025-07-17 13:52:06 +03:00
commit 2f50c8a911
206 changed files with 246874 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#include "debug.h"
#include <Windows.h>
#include <iostream>
void initDebug() {
if (AllocConsole()) {
FILE* pFile;
freopen_s(&pFile, "CONOUT$", "w", stdout);
freopen_s(&pFile, "CONOUT$", "w", stderr);
freopen_s(&pFile, "CONIN$", "r", stdin);
printf("Console allocated.\n\n");
} else {
MessageBoxA(NULL, "Failed to allocate console", "Error", MB_OK | MB_ICONERROR);
}
}

View File

@@ -0,0 +1,3 @@
#pragma once
void initDebug();