Skip to content

Commit 856333c

Browse files
committed
[GEN][ZH] Remove trailing LF from RELEASE_CRASH, RELEASE_CRASHLOCALIZED strings with script (#1232)
1 parent 7098e3b commit 856333c

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Generals/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2732,13 +2732,13 @@ void GameLogic::friend_awakenUpdateModule(Object* obj, UpdateModulePtr u, Unsign
27322732
{
27332733
if (idx < 0 || idx >= m_sleepyUpdates.size())
27342734
{
2735-
RELEASE_CRASH("fatal error! sleepy update module illegal index.\n");
2735+
RELEASE_CRASH("fatal error! sleepy update module illegal index.");
27362736
return;
27372737
}
27382738

27392739
if (m_sleepyUpdates[idx] != u)
27402740
{
2741-
RELEASE_CRASH("fatal error! sleepy update module index mismatch.\n");
2741+
RELEASE_CRASH("fatal error! sleepy update module index mismatch.");
27422742
return;
27432743
}
27442744

@@ -2757,7 +2757,7 @@ void GameLogic::friend_awakenUpdateModule(Object* obj, UpdateModulePtr u, Unsign
27572757
{
27582758
if (idx != -1)
27592759
{
2760-
RELEASE_CRASH("fatal error! sleepy update module index mismatch.\n");
2760+
RELEASE_CRASH("fatal error! sleepy update module index mismatch.");
27612761
return;
27622762
}
27632763

Generals/Code/GameEngineDevice/Source/MilesAudioDevice/MilesAudioManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3062,7 +3062,7 @@ U32 AILCALLBACK streamingFileOpen(char const *fileName, U32 *file_handle)
30623062
{
30633063
#if defined(RTS_DEBUG)
30643064
if (sizeof(U32) != sizeof(File*)) {
3065-
RELEASE_CRASH(("streamingFileOpen - This function requires work in order to compile on non 32-bit platforms.\n"));
3065+
RELEASE_CRASH(("streamingFileOpen - This function requires work in order to compile on non 32-bit platforms."));
30663066
}
30673067
#endif
30683068

Generals/Code/Main/WinMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ LRESULT CALLBACK WndProc( HWND hWnd, UINT message,
623623
}
624624
catch (...)
625625
{
626-
RELEASE_CRASH(("Uncaught exception in Main::WndProc... probably should not happen\n"));
626+
RELEASE_CRASH(("Uncaught exception in Main::WndProc... probably should not happen"));
627627
// no rethrow
628628
}
629629

GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,13 +3066,13 @@ void GameLogic::friend_awakenUpdateModule(Object* obj, UpdateModulePtr u, Unsign
30663066
{
30673067
if (idx < 0 || idx >= m_sleepyUpdates.size())
30683068
{
3069-
RELEASE_CRASH("fatal error! sleepy update module illegal index.\n");
3069+
RELEASE_CRASH("fatal error! sleepy update module illegal index.");
30703070
return;
30713071
}
30723072

30733073
if (m_sleepyUpdates[idx] != u)
30743074
{
3075-
RELEASE_CRASH("fatal error! sleepy update module index mismatch.\n");
3075+
RELEASE_CRASH("fatal error! sleepy update module index mismatch.");
30763076
return;
30773077
}
30783078

@@ -3091,7 +3091,7 @@ void GameLogic::friend_awakenUpdateModule(Object* obj, UpdateModulePtr u, Unsign
30913091
{
30923092
if (idx != -1)
30933093
{
3094-
RELEASE_CRASH("fatal error! sleepy update module index mismatch.\n");
3094+
RELEASE_CRASH("fatal error! sleepy update module index mismatch.");
30953095
return;
30963096
}
30973097

GeneralsMD/Code/GameEngineDevice/Source/MilesAudioDevice/MilesAudioManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3062,7 +3062,7 @@ U32 AILCALLBACK streamingFileOpen(char const *fileName, U32 *file_handle)
30623062
{
30633063
#if defined(RTS_DEBUG)
30643064
if (sizeof(U32) != sizeof(File*)) {
3065-
RELEASE_CRASH(("streamingFileOpen - This function requires work in order to compile on non 32-bit platforms.\n"));
3065+
RELEASE_CRASH(("streamingFileOpen - This function requires work in order to compile on non 32-bit platforms."));
30663066
}
30673067
#endif
30683068

GeneralsMD/Code/Main/WinMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ LRESULT CALLBACK WndProc( HWND hWnd, UINT message,
645645
}
646646
catch (...)
647647
{
648-
RELEASE_CRASH(("Uncaught exception in Main::WndProc... probably should not happen\n"));
648+
RELEASE_CRASH(("Uncaught exception in Main::WndProc... probably should not happen"));
649649
// no rethrow
650650
}
651651

0 commit comments

Comments
 (0)