Exposed StepMania::SaveScreenshot to Lua. Added prefix and suffix args for setting the screenshot name and removed the unused index arg. Added GetHighScore to PlayerStageStats and AddScreenshot to Profile so that Lua can imitate ScreenEvaluation's code for adding a screenshot to the profile. Removed hungarian notation from variable names in StepMania::SaveScreenshot.
This commit is contained in:
@@ -703,8 +703,7 @@ bool ScreenEvaluation::Input( const InputEventPlus &input )
|
||||
|
||||
Profile* pProfile = PROFILEMAN->GetProfile(pn);
|
||||
RString sDir = PROFILEMAN->GetProfileDir((ProfileSlot)pn) + "Screenshots/";
|
||||
int iScreenshotIndex = pProfile->GetNextScreenshotIndex();
|
||||
RString sFileName = StepMania::SaveScreenshot( sDir, true, true, iScreenshotIndex );
|
||||
RString sFileName = StepMania::SaveScreenshot( sDir, true, true, "", "" );
|
||||
|
||||
if( !sFileName.empty() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user