Skip to content

Commit 84aa95b

Browse files
authored
[GEN][ZH] Enable use of Wave Editor in release build (#851)
Usable with -useWaveEditor command line
1 parent ee7cc0e commit 84aa95b

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

Generals/Code/GameEngine/Source/Common/CommandLine.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,17 @@ Int parseFPUPreserve(char *args[], int argc)
163163
return 2;
164164
}
165165

166+
//=============================================================================
167+
//=============================================================================
168+
Int parseUseWaveEditor(char *args[], int num)
169+
{
170+
if (TheWritableGlobalData)
171+
{
172+
TheWritableGlobalData->m_usingWaterTrackEditor = TRUE;
173+
}
174+
return 1;
175+
}
176+
166177
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
167178

168179
//=============================================================================
@@ -525,17 +536,6 @@ Int parseNoStaticLOD(char *args[], int num)
525536
return 1;
526537
}
527538

528-
//=============================================================================
529-
//=============================================================================
530-
Int parseUseWaveEditor(char *args[], int num)
531-
{
532-
if (TheWritableGlobalData)
533-
{
534-
TheWritableGlobalData->m_usingWaterTrackEditor = TRUE;
535-
}
536-
return 1;
537-
}
538-
539539
//=============================================================================
540540
//=============================================================================
541541
Int parseFPSLimit(char *args[], int num)
@@ -1204,6 +1204,7 @@ static CommandLineParam params[] =
12041204
{ "-mod", parseMod },
12051205
{ "-noshaders", parseNoShaders },
12061206
{ "-quickstart", parseQuickStart },
1207+
{ "-useWaveEditor", parseUseWaveEditor },
12071208

12081209
#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
12091210
{ "-noaudio", parseNoAudio },
@@ -1286,7 +1287,6 @@ static CommandLineParam params[] =
12861287
{ "-lowDetail", parseLowDetail },
12871288
{ "-noDynamicLOD", parseNoDynamicLOD },
12881289
{ "-noStaticLOD", parseNoStaticLOD },
1289-
{ "-useWaveEditor", parseUseWaveEditor },
12901290
{ "-fps", parseFPSLimit },
12911291
{ "-wireframe", parseWireframe },
12921292
{ "-showCollision", parseShowCollision },

GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,17 @@ Int parseFPUPreserve(char *args[], int argc)
163163
return 2;
164164
}
165165

166+
//=============================================================================
167+
//=============================================================================
168+
Int parseUseWaveEditor(char *args[], int num)
169+
{
170+
if (TheWritableGlobalData)
171+
{
172+
TheWritableGlobalData->m_usingWaterTrackEditor = TRUE;
173+
}
174+
return 1;
175+
}
176+
166177
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
167178

168179
//=============================================================================
@@ -525,17 +536,6 @@ Int parseNoStaticLOD(char *args[], int num)
525536
return 1;
526537
}
527538

528-
//=============================================================================
529-
//=============================================================================
530-
Int parseUseWaveEditor(char *args[], int num)
531-
{
532-
if (TheWritableGlobalData)
533-
{
534-
TheWritableGlobalData->m_usingWaterTrackEditor = TRUE;
535-
}
536-
return 1;
537-
}
538-
539539
//=============================================================================
540540
//=============================================================================
541541
Int parseFPSLimit(char *args[], int num)
@@ -1204,6 +1204,7 @@ static CommandLineParam params[] =
12041204
{ "-mod", parseMod },
12051205
{ "-noshaders", parseNoShaders },
12061206
{ "-quickstart", parseQuickStart },
1207+
{ "-useWaveEditor", parseUseWaveEditor },
12071208

12081209
#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
12091210
{ "-noaudio", parseNoAudio },
@@ -1286,7 +1287,6 @@ static CommandLineParam params[] =
12861287
{ "-lowDetail", parseLowDetail },
12871288
{ "-noDynamicLOD", parseNoDynamicLOD },
12881289
{ "-noStaticLOD", parseNoStaticLOD },
1289-
{ "-useWaveEditor", parseUseWaveEditor },
12901290
{ "-fps", parseFPSLimit },
12911291
{ "-wireframe", parseWireframe },
12921292
{ "-showCollision", parseShowCollision },

0 commit comments

Comments
 (0)