diff options
Diffstat (limited to 'pokemod/Dialog.cpp')
| -rw-r--r-- | pokemod/Dialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pokemod/Dialog.cpp b/pokemod/Dialog.cpp index 829a53f7..a907fb2b 100644 --- a/pokemod/Dialog.cpp +++ b/pokemod/Dialog.cpp @@ -36,19 +36,19 @@ const QStringList Dialog::CommandAbbrStr = QStringList() << "FF" << "SF" << "UF" const QList<unsigned> Dialog::CommandNumArgs = QList<unsigned>() << 1 << 1 << 1 << 1 << 3 << 2 << 2 << 1 << 4 << 4 << 4 << 1 << 5 << 3 << 7 << 4 << 1 << 4 << 1 << 4 << 6 << 3 << 6 << 5 << 5 << 4 << 4 << 5 << 6 << 1 << 2 << 1 << 2 << 1 << 2 << 1 << 3 << 1 << 1 << 3 << 0 << 0 << 0 << 0 << 0 << 0; Dialog::Dialog(const Pokemod& par, const unsigned _id) : - Object(par, _id), + Object("Dialog", par, _id), dialog("") { } Dialog::Dialog(const Pokemod& par, const Dialog& d, const unsigned _id) : - Object(par, _id) + Object("Dialog", par, _id) { *this = d; } Dialog::Dialog(const Pokemod& par, const QString& fname, const unsigned _id) : - Object(par, _id) + Object("Dialog", par, _id) { load(fname, _id); } @@ -668,14 +668,14 @@ void Dialog::load(const QString& fname, const unsigned _id) throw(Exception) ini.getValue("id", id); else id = _id; - ini.getValue("dialog", dialog); + ini.getValue(className, dialog); } void Dialog::save() const throw(Exception) { Ini ini; ini.addField("id", id); - ini.addField("dialog", dialog); + ini.addField(className, dialog); ini.save(QString("%1/dialog/%2.pini").arg(pokemod.getPath()).arg(id)); } @@ -692,7 +692,7 @@ QString Dialog::getDialog() const void Dialog::insertDialogCommand(const QString& cmd, const long pos) throw(BoundsException) { if (dialog.length() < pos) - throw(BoundsException("Dialog" , "command")); + throw(BoundsException(className , "command")); dialog.insert(pos, cmd); } |
