Moderators: simonsunnyboy, thothy, Moderator Team
Code: Select all
hatari$ find src | xargs grep -l WIN32
src/CMakeLists.txt
src/file.c
src/gemdos.c
src/ide.c
src/includes/main.h
src/includes/unzip.h
src/main.c
src/paths.c
src/scandir.c
Code: Select all
# When building for Windows, define specific sources for gui and resources
# and set the subsystem of the resulting .exe to "windows GUI" instead of "console"
if(WIN32)
set(GUIWIN_SOURCES gui-win/opencon.c)
set(GUIWIN_RES gui-win/hatari-winicon.rc)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mwindows")
endif(WIN32)
Code: Select all
void Win_OpenCon(void)
{
if (!bExceptionDebugging)
return;
AllocConsole();
freopen("CON", "w", stdout);
freopen("CON", "r", stdin);
freopen("CON", "wr", stderr);
}
Code: Select all
#ifdef WIN32
Win_OpenCon();
#endif
Users browsing this forum: No registered users and 4 guests