Correct function.

This commit is contained in:
papel 2013-07-17 03:34:43 -03:00
parent 99754bcd7a
commit a61117dec4
3 changed files with 3 additions and 4 deletions

View File

@ -69,7 +69,6 @@ namespace SaveState
void SaveStart::DoState(PointerWrap &p)
{
// Gotta do CoreTiming first since we'll restore into it.
CoreTiming::DoState(p);

View File

@ -127,7 +127,7 @@ EmuScreen::~EmuScreen() {
void EmuScreen::dialogFinished(const Screen *dialog, DialogResult result) {
// TODO: improve the way with which we got commands from PauseMenu.
// DR_CANCEL means "continue", DR_OK means "back to menu",
// DR_CANCEL means clicked on "continue", DR_OK means clicked on "back to menu",
// DR_YES means a message sent to PauseMenu by NativeMessageReceived.
if (result == DR_OK) {
if (g_Config.bNewUI)
@ -136,7 +136,7 @@ void EmuScreen::dialogFinished(const Screen *dialog, DialogResult result) {
screenManager()->switchScreen(new MenuScreen());
}
else if (result == DR_YES) {
PauseScreen::Message* msg = ((PauseScreen*)dialog)->getMessage();
PauseScreen::Message* msg = (PauseScreen::Message*)((Screen*)dialog)->dialogData();
if (msg != NULL)
{
NativeMessageReceived(msg->msg, msg->value);

View File

@ -70,7 +70,7 @@ public:
const char *value;
};
Message* getMessage() const
virtual void *dialogData()
{
return m_data;
}