mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
added code to help debug issue #6: made Win32 app show stdout and stderr, if and when it is run from a command prompt window
This commit is contained in:
parent
b9c9687153
commit
6abc599ddf
@ -212,6 +212,13 @@ int main(int argc, char **argv)
|
||||
char str[256];
|
||||
bool cd_boot = false;
|
||||
|
||||
// Make sure stdout and stderr gets displayed, if and when the app is run
|
||||
// via a command prompt window.
|
||||
if (AttachConsole(ATTACH_PARENT_PROCESS)) {
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
}
|
||||
|
||||
// Initialize variables
|
||||
RAMBaseHost = NULL;
|
||||
ROMBaseHost = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user