do not open a console at startup.legacy
| @@ -22,7 +22,8 @@ | |||||
| <ClCompile Condition="'$(Configuration)'=='Debug'"> | <ClCompile Condition="'$(Configuration)'=='Debug'"> | ||||
| <GenerateDebugInformation>true</GenerateDebugInformation> | <GenerateDebugInformation>true</GenerateDebugInformation> | ||||
| <Optimization>Disabled</Optimization> | <Optimization>Disabled</Optimization> | ||||
| <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | |||||
| <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDebugDLL</RuntimeLibrary> | |||||
| <RuntimeLibrary Condition="'$(Platform)'=='Xbox 360'">MultiThreadedDebug</RuntimeLibrary> | |||||
| <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
| </ClCompile> | </ClCompile> | ||||
| <ClCompile Condition="'$(Configuration)'=='Release'"> | <ClCompile Condition="'$(Configuration)'=='Release'"> | ||||
| @@ -32,7 +33,8 @@ | |||||
| <!-- For PlayStation tools --> | <!-- For PlayStation tools --> | ||||
| <OptimizationLevel>Level2</OptimizationLevel> | <OptimizationLevel>Level2</OptimizationLevel> | ||||
| <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | |||||
| <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDLL</RuntimeLibrary> | |||||
| <RuntimeLibrary Condition="'$(Platform)'=='Xbox 360'">MultiThreaded</RuntimeLibrary> | |||||
| <FunctionLevelLinking>true</FunctionLevelLinking> | <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
| <IntrinsicFunctions>true</IntrinsicFunctions> | <IntrinsicFunctions>true</IntrinsicFunctions> | ||||
| <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> | <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> | ||||
| @@ -56,6 +58,9 @@ | |||||
| <AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(Ps3Deps);%(AdditionalDependencies)</AdditionalDependencies> | <AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(Ps3Deps);%(AdditionalDependencies)</AdditionalDependencies> | ||||
| <AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(GlDeps);%(AdditionalDependencies)</AdditionalDependencies> | <AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(GlDeps);%(AdditionalDependencies)</AdditionalDependencies> | ||||
| </Link> | </Link> | ||||
| <Link Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'"> | |||||
| <SubSystem>Windows</SubSystem> | |||||
| </Link> | |||||
| <Link Condition="'$(Configuration)'=='Debug'"> | <Link Condition="'$(Configuration)'=='Debug'"> | ||||
| <GenerateDebugInformation>true</GenerateDebugInformation> | <GenerateDebugInformation>true</GenerateDebugInformation> | ||||
| </Link> | </Link> | ||||
| @@ -28,7 +28,7 @@ | |||||
| # include <cmath> | # include <cmath> | ||||
| #endif | #endif | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| @@ -14,7 +14,7 @@ | |||||
| #include <cstdio> | #include <cstdio> | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| @@ -19,14 +19,10 @@ | |||||
| using namespace std; | using namespace std; | ||||
| using namespace lol; | using namespace lol; | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| #if defined _WIN32 | |||||
| # undef main /* FIXME: still needed? */ | |||||
| #endif | |||||
| int main(int argc, char **argv) | int main(int argc, char **argv) | ||||
| { | { | ||||
| Application app("Quad", ivec2(640, 480), 60.0f); | Application app("Quad", ivec2(640, 480), 60.0f); | ||||
| @@ -14,7 +14,7 @@ | |||||
| #include <cstdio> | #include <cstdio> | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| @@ -14,7 +14,7 @@ | |||||
| #include <cstdio> | #include <cstdio> | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| @@ -12,7 +12,7 @@ | |||||
| # include "config.h" | # include "config.h" | ||||
| #endif | #endif | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| @@ -12,7 +12,7 @@ | |||||
| # include "config.h" | # include "config.h" | ||||
| #endif | #endif | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| @@ -15,7 +15,7 @@ | |||||
| #include <cstdio> | #include <cstdio> | ||||
| #include <cstdlib> | #include <cstdlib> | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| @@ -19,14 +19,10 @@ | |||||
| using namespace lol; | using namespace lol; | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| #if defined _WIN32 | |||||
| # undef main /* FIXME: still needed? */ | |||||
| #endif | |||||
| #include "xolotl.h" | #include "xolotl.h" | ||||
| class Xolotl : public WorldEntity | class Xolotl : public WorldEntity | ||||
| @@ -18,12 +18,11 @@ | |||||
| using namespace std; | using namespace std; | ||||
| using namespace lol; | using namespace lol; | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| #if defined _WIN32 | #if defined _WIN32 | ||||
| # undef main /* FIXME: still needed? */ | |||||
| # include <direct.h> | # include <direct.h> | ||||
| #endif | #endif | ||||
| @@ -18,12 +18,11 @@ | |||||
| using namespace std; | using namespace std; | ||||
| using namespace lol; | using namespace lol; | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| #if defined _WIN32 | #if defined _WIN32 | ||||
| # undef main /* FIXME: still needed? */ | |||||
| # include <direct.h> | # include <direct.h> | ||||
| #endif | #endif | ||||
| @@ -17,7 +17,7 @@ | |||||
| using namespace std; | using namespace std; | ||||
| using namespace lol; | using namespace lol; | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| @@ -18,12 +18,11 @@ | |||||
| using namespace std; | using namespace std; | ||||
| using namespace lol; | using namespace lol; | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| #if defined _WIN32 | #if defined _WIN32 | ||||
| # undef main /* FIXME: still needed? */ | |||||
| # include <direct.h> | # include <direct.h> | ||||
| #endif | #endif | ||||
| @@ -26,12 +26,11 @@ using namespace lol; | |||||
| # include <d3d9.h> | # include <d3d9.h> | ||||
| #endif | #endif | ||||
| #if USE_SDL && defined __APPLE__ | |||||
| #if USE_SDL | |||||
| # include <SDL_main.h> | # include <SDL_main.h> | ||||
| #endif | #endif | ||||
| #if defined _WIN32 | #if defined _WIN32 | ||||
| # undef main /* FIXME: still needed? */ | |||||
| # include <direct.h> | # include <direct.h> | ||||
| #endif | #endif | ||||