QTfrontend/campaign.cpp
changeset 9182 f92e205bc167
parent 9080 9b42757d7e71
child 9219 0a4b6bb69f99
--- a/QTfrontend/campaign.cpp	Tue Jun 11 01:40:55 2013 +0300
+++ b/QTfrontend/campaign.cpp	Mon May 27 21:39:52 2013 +0300
@@ -50,3 +50,14 @@
     campfile.setIniCodec("UTF-8");
     return campfile.value(QString("Mission %1/Script").arg(mNum)).toString();
 }
+
+QString getCampaignImage(QString campaign, unsigned int mNum)
+{
+	return getCampaignScript(campaign,mNum).replace(QString(".lua"),QString(".png"));
+}
+
+QString getCampaignMissionName(QString campaign, unsigned int mNum) 
+{
+	return getCampaignScript(campaign,mNum).replace(QString(".lua"),QString(""));
+}
+