diff --git a/.gitignore b/.gitignore index 3a8542d..a816690 100644 --- a/.gitignore +++ b/.gitignore @@ -359,4 +359,6 @@ MigrationBackup/ .ionide/ # Fody - auto-generated XML schema -FodyWeavers.xsd \ No newline at end of file +FodyWeavers.xsd + +ffmpeg/ \ No newline at end of file diff --git a/dllmain.cpp b/dllmain.cpp index 01c6b3b..e14a107 100644 --- a/dllmain.cpp +++ b/dllmain.cpp @@ -4,6 +4,7 @@ #include "PlayLayer.h" #include "PlayerObject.h" #include "GameManager.h" +#include void readInput(HMODULE hModule) { for (std::string line; std::getline(std::cin, line);) { @@ -47,8 +48,10 @@ DWORD WINAPI my_thread(void* hModule) { AllocConsole(); SetConsoleTitleA("Console"); - freopen_s(reinterpret_cast(stdout), "CONOUT$", "w", stdout); + // freopen_s(reinterpret_cast(stdout), "CONOUT$", "w", stdout); freopen_s(reinterpret_cast(stdin), "CONIN$", "r", stdin); + static std::ofstream conout("CONOUT$", std::ios::out); + std::cout.rdbuf(conout.rdbuf()); auto base = reinterpret_cast(GetModuleHandle(0));