Commit 869b97bb authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Minor change in persistent layers

parent fb41a529
...@@ -234,18 +234,18 @@ public class SimControlPanel extends JMenuBar implements ActionListener, ChangeL ...@@ -234,18 +234,18 @@ public class SimControlPanel extends JMenuBar implements ActionListener, ChangeL
* @return the confPath * @return the confPath
*/ */
public static String getConfPath(String pName) { public static String getConfPath(String pName) {
return CONF_PATH + pName.replace(":", "").replaceAll(" ", ""); String newName = "Layer_" + pName.replace(":", "").replaceAll(" ", "").replace("/", "_");
if (newName.length() > 1) {
return CONF_PATH + newName + "/Main";
}
return CONF_PATH + newName;
} }
/** /**
* @return the confPath * @return the confPath
*/ */
public static String getConfMainPath(String pName) { public static String getConfMainPath(String pName) {
String newName = "Layer_" + pName.replace(":", "").replaceAll(" ", "").replace("/", "_"); return getConfPath(pName) + "/Main";
if (newName.length() > 1) {
return CONF_PATH + newName + "/Main";
}
return null;
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment