Changeset 195 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/SimulationScript.java
- Timestamp:
- 01/20/2020 08:06:39 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/SimulationScript.java
r194 r195 79 79 private MyScriptHandler sh; 80 80 81 public final String audioDirectory = "Audio"; 82 83 81 84 public boolean saved; 82 85 … … 275 278 private void createAudioDirectory(Path path){ 276 279 String separator = System.getProperty("file.separator"); 277 File f = new File(path.toString()+separator+ "audio");280 File f = new File(path.toString()+separator+audioDirectory); 278 281 if(!f.exists()) 279 282 { … … 286 289 { 287 290 String name = ((Integer) i.number).toString(); 288 File incidentFolder = new File(path.toString()+separator+ "audio"+separator+name);291 File incidentFolder = new File(path.toString()+separator+audioDirectory+separator+name); 289 292 if(!incidentFolder.exists()) 290 293 { … … 307 310 String output = radioEvent.toScriptFile(); 308 311 //optimally, this line should use the ID, but to account for files being read in, it needs to be the radiofile name 312 System.out.println("Attempting to create file: "+ path.toString()+ 313 separator+ 314 audioDirectory+ 315 separator+ 316 name+ 317 separator+ 318 radioEvent.radioFile.replaceAll(".mp3","")+ 319 ".txt"); 309 320 File newAudioScript = new File( 310 321 path.toString()+ 311 322 separator+ 312 "Audio"+323 audioDirectory+ 313 324 separator+ 314 325 name+
Note: See TracChangeset
for help on using the changeset viewer.
