Skip to content

Commit 35b512a

Browse files
authored
Update makedist-win.bat (#474)
Remove previous build log if it exists Formatting
1 parent 3c05ec1 commit 35b512a

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

NeuralAmpModeler/NeuralAmpModeler.cpp

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ void NeuralAmpModeler::ProcessBlock(iplug::sample** inputs, iplug::sample** outp
324324
sample** gateGainOutput =
325325
noiseGateActive ? mNoiseGateGain.Process(mOutputPointers, numChannelsInternal, numFrames) : mOutputPointers;
326326

327-
sample** toneStackOutPointers = (toneStackActive && mToneStack != nullptr) ? mToneStack->Process(gateGainOutput, numChannelsInternal, numFrames)
328-
: gateGainOutput;
327+
sample** toneStackOutPointers = (toneStackActive && mToneStack != nullptr)
328+
? mToneStack->Process(gateGainOutput, numChannelsInternal, numFrames)
329+
: gateGainOutput;
329330

330331
sample** irPointers = toneStackOutPointers;
331332
if (mIR != nullptr && GetParam(kIRToggle)->Value())
@@ -392,7 +393,7 @@ void NeuralAmpModeler::OnIdle()
392393
bool NeuralAmpModeler::SerializeState(IByteChunk& chunk) const
393394
{
394395
// If this isn't here when unserializing, then we know we're dealing with something before v0.8.0.
395-
WDL_String header("###NeuralAmpModeler###"); // Don't change this!
396+
WDL_String header("###NeuralAmpModeler###"); // Don't change this!
396397
chunk.PutStr(header.Get());
397398
// Plugin version, so we can load legacy serialized states in the future!
398399
WDL_String version(PLUG_VERSION_STR);
@@ -409,7 +410,7 @@ int NeuralAmpModeler::UnserializeState(const IByteChunk& chunk, int startPos)
409410
WDL_String header;
410411
startPos = chunk.GetStr(header, startPos);
411412
// TODO: Handle legacy plugin serialized states.
412-
//if strncmp (header.Get(), "###NeuralAmpModeler###")
413+
// if strncmp (header.Get(), "###NeuralAmpModeler###")
413414
//{
414415
// return UnserializeStateLegacy(header, startPos); // (We'll assume 0.7.9).
415416
//}
@@ -456,19 +457,13 @@ void NeuralAmpModeler::OnUIOpen()
456457

457458
void NeuralAmpModeler::OnParamChange(int paramIdx)
458459
{
459-
switch (paramIdx)
460-
{
461-
case kToneBass:
462-
mToneStack->SetParam("bass", GetParam(paramIdx)->Value());
463-
break;
464-
case kToneMid:
465-
mToneStack->SetParam("middle", GetParam(paramIdx)->Value());
466-
break;
467-
case kToneTreble:
468-
mToneStack->SetParam("treble", GetParam(paramIdx)->Value());
469-
break;
460+
switch (paramIdx)
461+
{
462+
case kToneBass: mToneStack->SetParam("bass", GetParam(paramIdx)->Value()); break;
463+
case kToneMid: mToneStack->SetParam("middle", GetParam(paramIdx)->Value()); break;
464+
case kToneTreble: mToneStack->SetParam("treble", GetParam(paramIdx)->Value()); break;
470465
default: break;
471-
}
466+
}
472467
}
473468

474469
void NeuralAmpModeler::OnParamChangeUI(int paramIdx, EParamSource source)

NeuralAmpModeler/scripts/makedist-win.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ copy /b *.cpp+,,
4848
echo ------------------------------------------------------------------
4949
echo Building ...
5050

51+
REM Remove previous build logs
52+
if exist "build-win.log" (del build-win.log)
53+
5154
if exist "%ProgramFiles(x86)%" (goto 64-Bit) else (goto 32-Bit)
5255

5356
if not defined DevEnvDir (

0 commit comments

Comments
 (0)