mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-20 14:05:45 +00:00
Show console in window mode
This commit is contained in:
parent
7a9c19e0fd
commit
b09cf1130e
@ -35,8 +35,8 @@ html_frame::html_frame()
|
|||||||
|
|
||||||
if (needs_restart)
|
if (needs_restart)
|
||||||
{
|
{
|
||||||
//utils::nt::relaunch_self();
|
utils::nt::relaunch_self();
|
||||||
//utils::nt::terminate(0);
|
utils::nt::terminate(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,8 @@ std::filesystem::path extract_driver()
|
|||||||
|
|
||||||
void unsafe_main(const int /*argc*/, char* /*argv*/[])
|
void unsafe_main(const int /*argc*/, char* /*argv*/[])
|
||||||
{
|
{
|
||||||
launcher().run();
|
//launcher().run();
|
||||||
|
//return;
|
||||||
|
|
||||||
const auto driver_file = extract_driver();
|
const auto driver_file = extract_driver();
|
||||||
|
|
||||||
@ -150,5 +151,13 @@ int main(const int argc, char* argv[])
|
|||||||
|
|
||||||
int __stdcall WinMain(HINSTANCE, HINSTANCE, char*, int)
|
int __stdcall WinMain(HINSTANCE, HINSTANCE, char*, int)
|
||||||
{
|
{
|
||||||
|
AllocConsole();
|
||||||
|
AttachConsole(GetCurrentProcessId());
|
||||||
|
|
||||||
|
FILE* fp;
|
||||||
|
freopen_s(&fp, "conin$", "r", stdin);
|
||||||
|
freopen_s(&fp, "conout$", "w", stdout);
|
||||||
|
freopen_s(&fp, "conout$", "w", stderr);
|
||||||
|
|
||||||
return main(__argc, __argv);
|
return main(__argc, __argv);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user