equal
deleted
inserted
replaced
48 { |
48 { |
49 QSettings campfile("physfs://Missions/Campaign/" + campaign + "/campaign.ini", QSettings::IniFormat, 0); |
49 QSettings campfile("physfs://Missions/Campaign/" + campaign + "/campaign.ini", QSettings::IniFormat, 0); |
50 campfile.setIniCodec("UTF-8"); |
50 campfile.setIniCodec("UTF-8"); |
51 return campfile.value(QString("Mission %1/Script").arg(mNum)).toString(); |
51 return campfile.value(QString("Mission %1/Script").arg(mNum)).toString(); |
52 } |
52 } |
|
53 |
|
54 QString getCampaignImage(QString campaign, unsigned int mNum) |
|
55 { |
|
56 return getCampaignScript(campaign,mNum).replace(QString(".lua"),QString(".png")); |
|
57 } |
|
58 |
|
59 QString getCampaignMissionName(QString campaign, unsigned int mNum) |
|
60 { |
|
61 return getCampaignScript(campaign,mNum).replace(QString(".lua"),QString("")); |
|
62 } |
|
63 |