Skip to content

Commit 13f1210

Browse files
author
Julien Poulton
committed
Merge branch '4857-fix-windows-assets-subfolders' into 'master'
[FIX][SDK] fixing assets subfolders on windows See merge request codingame/game-engine!151
2 parents 7b61845 + ca01dd5 commit 13f1210

File tree

1 file changed

+2
-2
lines changed
  • runner/src/main/java/com/codingame/gameengine/runner

1 file changed

+2
-2
lines changed

runner/src/main/java/com/codingame/gameengine/runner/Renderer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@ private static void generateAssetsFile(Path tmpdir, String assetsPath) {
264264
} else {
265265
if (assetsNeedHashing) {
266266
String newName = hashAsset(f);
267-
images.addProperty(origAssetsPath.relativize(f).toString(), newName);
267+
images.addProperty(origAssetsPath.relativize(f).toString().replace("\\", "/"), newName);
268268
Files.copy(
269269
f, tmpdir.resolve("hashed_assets").resolve(newName),
270270
StandardCopyOption.REPLACE_EXISTING
271271
);
272272
} else {
273273
images.addProperty(
274-
origAssetsPath.relativize(f).toString(),
274+
origAssetsPath.relativize(f).toString().replace("\\", "/"),
275275
tmpdir.relativize(f).toString().replace("\\", "/")
276276
);
277277
}

0 commit comments

Comments
 (0)