"NextBannerGroup2",
"SaveScreenshot1",
"SaveScreenshot2",
+ "SaveSong",
"CancelAllPlayerOptions",
"BackInEventMode",
"OptionsListOpen1",
CODE_BW_NEXT_GROUP2,
CODE_SAVE_SCREENSHOT1,
CODE_SAVE_SCREENSHOT2,
+ CODE_SAVE_SONG,
CODE_CANCEL_ALL_PLAYER_OPTIONS,
CODE_BACK_IN_EVENT_MODE,
CODE_OPTIONS_LIST_OPEN1,
#include "Steps.h"
#include "LuaReference.h"
#include "StepMania.h"
+#include "RageUtil.h"
#include <ctime>
#include <set>
f.Close();
}
+void GameState::CreateSymlinkFavourite( const CString &sSongDir )
+{
+ LOG->Debug("GameState::CreateSymlinkFavourite( %s )", sSongDir.c_str());
+ CString sPath = GetCwd();
+ LOG->Debug("what %s", sPath.c_str());
+}
+
/*
* Game flow:
*
void SaveCurrentSettingsToProfile( PlayerNumber pn ); // called at the beginning of each stage
void SetSongInProgress( const CString &sWriteOut );
+ void CreateSymlinkFavourite( const CString &sSongDir );
void Update( float fDelta );
PlayerNumber pn = GAMESTATE->GetCurrentStyle()->ControllerToPlayerNumber( GameI.controller );
HighScore &hs = m_HighScore[pn];
+ if( CodeDetector::EnteredCode(GameI.controller, CODE_SAVE_SONG) )
+ {
+ SCREENMAN->SystemMessage( "Nice Meme!" );
+ GAMESTATE->CreateSymlinkFavourite( GAMESTATE->m_pCurSong->GetSongDir() );
+ }
+
if( CodeDetector::EnteredCode(GameI.controller, CODE_SAVE_SCREENSHOT1) ||
CodeDetector::EnteredCode(GameI.controller, CODE_SAVE_SCREENSHOT2) )