Skip to content

Commit

Permalink
comment out unnecessary printf for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
LovelyA72 committed Apr 6, 2022
1 parent 01f5177 commit ba4df96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions SpaceWorld/SpaceWorld.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>rename "$(TargetPath)" "SpaceWorld_win64.exe"</Command>
<Command>IF EXIST "$(OutDir)/SpaceWorld_win64.exe" DEL "$(OutDir)/SpaceWorld_win64.exe" /s
rename "$(TargetPath)" "SpaceWorld_win64.exe"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -142,7 +143,8 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>rename "$(TargetPath)" "SpaceWorld_win64.exe"</Command>
<Command>IF EXIST "$(OutDir)/SpaceWorld_win64.exe" DEL "$(OutDir)/SpaceWorld_win64.exe" /s
rename "$(TargetPath)" "SpaceWorld_win64.exe"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions SpaceWorld/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1318,12 +1318,12 @@ int main(int argc, char* argv[])
//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);

int i, j;
char* thisChar;
for (i = 1; i < argc; i++) { // argv[0] may be the file name (no guarantee, see Peter M's comment)
thisChar = argv[i]; // If the parameter is "abc", thisChar = 'a'
printf("%s ", thisChar);
}
printf("\n");
//char* thisChar;
//for (i = 1; i < argc; i++) { // argv[0] may be the file name (no guarantee, see Peter M's comment)
// thisChar = argv[i]; // If the parameter is "abc", thisChar = 'a'
// printf("%s ", thisChar);
//}
//printf("\n");
//*
if (argc <= 4)
{
Expand Down

0 comments on commit ba4df96

Please sign in to comment.