From 81fc446d3666aabfcf99109c4e8bfe775c93a3d6 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 24 Jan 2008 00:22:08 +0000 Subject: [FIX] pokemodr.ui file [FIX] added better .pro rules [FIX] PokeModTreeItem works now [FIX] LICENSE file is purely the terms git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@41 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Pokemod.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'pokemod/Pokemod.cpp') diff --git a/pokemod/Pokemod.cpp b/pokemod/Pokemod.cpp index 9585bbdd..919828eb 100644 --- a/pokemod/Pokemod.cpp +++ b/pokemod/Pokemod.cpp @@ -32,6 +32,21 @@ const QStringList Pokemod::ValidationStr = QStringList() << "Message" << "Warn" << "Error"; +Pokemod::Pokemod() : + Object("Pokemod", *this, 0), + valOutput(NULL), + title(""), + version(""), + description(""), + startMap(UINT_MAX), + startWarp(UINT_MAX), + superPCUname(""), + superPCPasswd(""), + typeChart(1, 1, Frac(1, 1, Frac::Improper)), + rules(*this) +{ +} + Pokemod::Pokemod(const QString& fname) : Object("Pokemod", *this, 0), valOutput(NULL), @@ -726,7 +741,7 @@ unsigned Pokemod::getNewTypeId() const ; return i; } -void Pokemod::load(const QString& fname) throw(Exception) +void Pokemod::load(const QString& fname, const unsigned _id) throw(Exception) { Ini ini(fname); QStringList fpath = fname.split('\\', QString::SkipEmptyParts).join("/").split('\\', QString::SkipEmptyParts); -- cgit