eclipse plugin: Prevent redundant parsing of the scenario/_main.cfg file...
...when starting a campaign/scenario, but instead use the cached IDs
This commit is contained in:
parent
eb5311cd1e
commit
433b760507
1 changed files with 4 additions and 2 deletions
|
@ -69,10 +69,12 @@ public class GameUtils
|
|||
String campaignId = null;
|
||||
String scenarioId = null;
|
||||
|
||||
campaignId = ResourceUtils.getCampaignID(selectedResource);
|
||||
campaignId = ProjectUtils.getCacheForProject(selectedResource.getProject()).
|
||||
getConfig("_main.cfg").getCampaignId();
|
||||
|
||||
if (scenario == true && selectedResource instanceof IFile)
|
||||
scenarioId = ResourceUtils.getScenarioID((IFile)selectedResource);
|
||||
scenarioId = ProjectUtils.getCacheForProject(selectedResource.getProject()).
|
||||
getConfig(selectedResource.getName()).getScenarioId();
|
||||
|
||||
if (campaignId == null)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue