Changeset 560 in tmcsimulator for trunk/src


Ignore:
Timestamp:
01/16/2020 12:13:16 PM (6 years ago)
Author:
jdalbey
Message:

Change hardcoded "scripts" as name of folder to a constant in SimulationManager?. See #228.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/Coordinator.java

    r549 r560  
    8383import tmcsim.interfaces.CoordinatorInterface; 
    8484import tmcsim.interfaces.SimulationManagerInterface; 
     85import static tmcsim.simulationmanager.SimulationManager.kScenarioFolder; 
    8586import tmcsim.simulationmanager.SimulationManagerView; 
    8687import tmcsim.simulationmanager.actions.LoadScriptAction; 
     
    166167        try 
    167168        { 
    168             CardfileReader cfr = new CardfileReader("scripts/Cardfile.xml", cardfileData); 
     169            CardfileReader cfr = new CardfileReader(kScenarioFolder+"/Cardfile.xml", cardfileData); 
    169170        } catch (Exception e) 
    170171        { 
Note: See TracChangeset for help on using the changeset viewer.