add: unloading

This commit is contained in:
2024-04-13 11:55:51 +02:00
parent 8f161be085
commit 9e8909a97f
5 changed files with 20 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ void il2cppi_new_console() {
freopen_s((FILE**) stdout, "CONOUT$", "w", stdout);
}
void il2cpp_close_console() {
fclose((FILE *)stdout);
FreeConsole();
}
#if _MSC_VER >= 1920
// Helper function to convert Il2CppString to std::string
std::string il2cppi_to_string(Il2CppString* str) {