Don't put the song title in the screenshot name because it might contain utf8 which doesn't work on windows, or path garbage, or other stuff that would have to be sanitized.

This commit is contained in:
Kyzentun
2015-05-10 10:53:33 -06:00
parent 336cd2f712
commit 912582674c
+1 -8
View File
@@ -1466,14 +1466,7 @@ bool HandleGlobalInputs( const InputEventPlus &input )
|| INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_RSHIFT) ) );
bool bSaveCompressed = !bHoldingShift;
RageTimer timer;
RString prefix;
RString suffix;
if(GAMESTATE->m_pCurSong)
{
prefix= GAMESTATE->m_pCurSong->GetDisplayFullTitle() + "_";
suffix= "_" + SCREENMAN->GetTopScreen()->GetName();
}
StepMania::SaveScreenshot("Screenshots/", bSaveCompressed, false, prefix, suffix);
StepMania::SaveScreenshot("Screenshots/", bSaveCompressed, false, "", "");
LOG->Trace( "Screenshot took %f seconds.", timer.GetDeltaTime() );
return true; // handled
}