Line 107... |
Line 107... |
107 |
|
107 |
|
108 |
// Custom Start
|
108 |
// Custom Start
|
109 |
Utils::String GetCustomStartName() const;
|
109 |
Utils::String GetCustomStartName() const;
|
110 |
|
110 |
|
111 |
// set functions
|
111 |
// set functions
|
112 |
void SetScriptType ( const Utils::String &str ) { m_sScriptType = str; m_bChanged = true; }
|
112 |
void SetScriptType ( const Utils::String &str ) { m_sScriptType = str; _changed(); }
|
113 |
void SetAnotherMod ( const Utils::String &name, const Utils::String &author ) { m_sOtherName = name; m_sOtherAuthor = author; m_bChanged = true; }
|
113 |
void SetAnotherMod ( const Utils::String &name, const Utils::String &author ) { m_sOtherName = name; m_sOtherAuthor = author; _changed(); }
|
114 |
void SetForceProfile ( bool p ) { m_bForceProfile = p; m_bChanged = true; }
|
114 |
void SetForceProfile ( bool p ) { m_bForceProfile = p; _changed(); }
|
115 |
|
115 |
|
116 |
void SetPackageType(int i)
|
116 |
void SetPackageType(int i)
|
117 |
{
|
117 |
{
|
118 |
m_iPackageType = i;
|
118 |
m_iPackageType = i;
|
119 |
if ( i == PACKAGETYPE_UPDATE )
|
119 |
if ( i == PACKAGETYPE_UPDATE )
|
Line 121... |
Line 121... |
121 |
if ( !this->FindPackageNeeded("<package>", "<author>") )
|
121 |
if ( !this->FindPackageNeeded("<package>", "<author>") )
|
122 |
this->AddNeededLibrary("<package>", "<author>", "1.00");
|
122 |
this->AddNeededLibrary("<package>", "<author>", "1.00");
|
123 |
}
|
123 |
}
|
124 |
else
|
124 |
else
|
125 |
this->RemovePackageNeeded("<package>", "<author>");
|
125 |
this->RemovePackageNeeded("<package>", "<author>");
|
126 |
m_bChanged = true;
|
126 |
_changed();
|
127 |
}
|
127 |
}
|
128 |
void SetPatch() { this->SetPackageType(PACKAGETYPE_PATCH); }
|
128 |
void SetPatch() { this->SetPackageType(PACKAGETYPE_PATCH); }
|
129 |
void SetLibrary() { this->SetPackageType(PACKAGETYPE_LIBRARY); }
|
129 |
void SetLibrary() { this->SetPackageType(PACKAGETYPE_LIBRARY); }
|
130 |
void SetCustomStart() { this->SetPackageType(PACKAGETYPE_CUSTOMSTART); }
|
130 |
void SetCustomStart() { this->SetPackageType(PACKAGETYPE_CUSTOMSTART); }
|
131 |
void SetPackageUpdate() { this->SetPackageType(PACKAGETYPE_UPDATE); }
|
131 |
void SetPackageUpdate() { this->SetPackageType(PACKAGETYPE_UPDATE); }
|
132 |
void SetNormalPackage() { this->SetPackageType(PACKAGETYPE_NORMAL); }
|
132 |
void SetNormalPackage() { this->SetPackageType(PACKAGETYPE_NORMAL); }
|
133 |
void SetScriptType(int i) { SetNormalPackage(); m_iScriptType = i; m_bChanged = true; }
|
133 |
void SetScriptType(int i) { SetNormalPackage(); m_iScriptType = i; _changed(); }
|
134 |
|
134 |
|
135 |
virtual bool LoadPackageData(const Utils::String &sFfirst, const Utils::String &sRest);
|
135 |
virtual bool LoadPackageData(const Utils::String &sFfirst, const Utils::String &sRest);
|
136 |
virtual bool GeneratePackagerScript(bool wildcard, CyStringList *list, bool datafile = false);
|
136 |
virtual bool GeneratePackagerScript(bool wildcard, CyStringList *list, bool datafile = false);
|
137 |
|
137 |
|
138 |
CSpkFile();
|
138 |
CSpkFile();
|