Commit 904e89fe authored by Leeor Dicker's avatar Leeor Dicker

Redirect stdout to file.

parent ace8a9dc
...@@ -9,3 +9,4 @@ ...@@ -9,3 +9,4 @@
/proj/vc14/.vs/Landlord/v14/*.suo /proj/vc14/.vs/Landlord/v14/*.suo
.vs .vs
/data/tsets/tset_001.png /data/tsets/tset_001.png
/log_editor.txt
No preview for this file type
B// Microsoft Visual C++ generated resource script. B// Microsoft Visual C++ generated resource script.
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<PreprocessorDefinitions>WINDOWS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>WINDOWS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>NAS2D_d.lib;SDL2.lib;SDL2main.lib;SDL2_image.lib;SDL2_mixer.lib;SDL2_ttf.lib;physfs.lib;opengl32.lib;glew32.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>NAS2D_d.lib;SDL2.lib;SDL2main.lib;SDL2_image.lib;SDL2_mixer.lib;SDL2_ttf.lib;physfs.lib;opengl32.lib;glew32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link> </Link>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<PreprocessorDefinitions>WINDOWS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>WINDOWS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding> <EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences> <OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
......
...@@ -15,6 +15,11 @@ using namespace std; ...@@ -15,6 +15,11 @@ using namespace std;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
// redirect log entries on Release builds.
#ifndef _DEBUG
FILE *stream;
freopen_s(&stream, "log_editor.txt", "w", stdout);
#endif
try try
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment