Standardize pedia icon paths to use forward-slashes (/) so they will work cross-operating-system.
1 files changed, 6 insertions(+), 3 deletions(-)

M src/main/java/com/civfanatics/civ3/pediaIcons/PediaIconsFile.java
M src/main/java/com/civfanatics/civ3/pediaIcons/PediaIconsFile.java +6 -3
@@ 35,12 35,13 @@ public class PediaIconsFile {
         while (s.hasNextLine()) {
             String nextLine = s.nextLine();
             if (nextLine.startsWith("#TECH")) {
-                String techEntry  = s.nextLine();
+                String techIconPath  = s.nextLine();
+                techIconPath = techIconPath.replaceAll("\\\\", "/");
                 if (nextLine.endsWith("_LARGE")) {
-                    largeIcons.put(nextLine.substring(1, nextLine.length() - 6), techEntry);
+                    largeIcons.put(nextLine.substring(1, nextLine.length() - 6), techIconPath);
                 }
                 else {
-                    smallIcons.put(nextLine.substring(1), techEntry);
+                    smallIcons.put(nextLine.substring(1), techIconPath);
                 }
             }
             else if (nextLine.startsWith("#start resources")) {

          
@@ 54,6 55,8 @@ public class PediaIconsFile {
                     }
                     String largeLine = s.nextLine();
                     String smallLine = s.nextLine();
+                    largeLine = largeLine.replaceAll("\\\\", "/");
+                    smallLine = smallLine.replaceAll("\\\\", "/");
                     
                     largeIcons.put(key.substring(6), largeLine);
                     smallIcons.put(key.substring(6), smallLine);