Difference between revisions of "Compiling ScummVM/Visual Studio"

Jump to navigation Jump to search
→‎Compiling without Console/Status Window: Console is no longer the default
m (Text replacement - "www.scummvm.org/frs/" to "downloads.scummvm.org/frs/")
(→‎Compiling without Console/Status Window: Console is no longer the default)
Line 50: Line 50:
NOTE: Several people have had errors about structure packing under Visual Studio 2019. In such cases, you need to update [http://libsdl.org/download-2.0.php SDL2] with the latest version.
NOTE: Several people have had errors about structure packing under Visual Studio 2019. In such cases, you need to update [http://libsdl.org/download-2.0.php SDL2] with the latest version.


== Compiling without Console/Status Window ==
== Compiling with Console/Text Output ==


If you want to run ScummVM without the console Window being present by default, there are two things you need to do:
By default ScummVM is compiled as a Windows subsystem application with no console output. If you need the console, you can do one of the following:
* In the Project Options for the scummvm project, go to the Linker | System | SubSystem line, and change the /SUBSYSTEM:CONSOLE to /SUBSYSTEM:WINDOWS
* In the create_project command, add <code>--enable-text-console</code>.
* In the file backends/platform/sdl/win32/win32.cpp, change the parameter from true to false in the first line of OSystem_Win32::initBackend:
* In the Project Options for the scummvm project, go to the Linker | System | SubSystem line, and change the /SUBSYSTEM:WINDOWS to /SUBSYSTEM:CONSOLE
ConfMan.registerDefault("console", false);
78

edits

Navigation menu