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:
+1
-8
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user