diff --git a/src/drivers/Qt/QtScriptManager.cpp b/src/drivers/Qt/QtScriptManager.cpp index 71044f06..f68d39ab 100644 --- a/src/drivers/Qt/QtScriptManager.cpp +++ b/src/drivers/Qt/QtScriptManager.cpp @@ -939,7 +939,7 @@ void MovieScriptObject::replay() FCEUI_MoviePlayFromBeginning(); } //---------------------------------------------------- -bool MovieScriptObject::readOnly() +bool MovieScriptObject::getReadOnly() { return FCEUI_GetMovieToggleReadOnly(); } diff --git a/src/drivers/Qt/QtScriptManager.h b/src/drivers/Qt/QtScriptManager.h index 3e746561..c6028347 100644 --- a/src/drivers/Qt/QtScriptManager.h +++ b/src/drivers/Qt/QtScriptManager.h @@ -507,7 +507,7 @@ public slots: Q_INVOKABLE bool isPowerOn(); Q_INVOKABLE bool isFromSaveState(); Q_INVOKABLE void replay(); - Q_INVOKABLE bool readOnly(); + Q_INVOKABLE bool getReadOnly(); Q_INVOKABLE void setReadOnly(bool which); Q_INVOKABLE bool play(const QString& filename, bool readOnly = false, int pauseFrame = 0); Q_INVOKABLE bool record(const QString& filename, int saveType = FROM_POWERON, const QString author = QString()); @@ -520,6 +520,12 @@ public slots: Q_INVOKABLE QString getFilename(); Q_INVOKABLE QString getFilepath(); + Q_INVOKABLE void close(){ stop(); } + Q_INVOKABLE bool readOnly(){ return getReadOnly(); } + Q_INVOKABLE void playBeginning(){ replay(); } + Q_INVOKABLE bool playback(const QString& filename, bool readOnly = false, int pauseFrame = 0){ return play(filename, readOnly, pauseFrame); } + Q_INVOKABLE bool load(const QString& filename, bool readOnly = false, int pauseFrame = 0){ return play(filename, readOnly, pauseFrame); } + Q_INVOKABLE bool save(const QString& filename, int saveType = FROM_POWERON, const QString author = QString()){ return record(filename, saveType, author); } }; class InputScriptObject: public QObject