Skip to content

Commit ca01dd5

Browse files
committed
fix(sdk): we never want windows style path
1 parent 0355677 commit ca01dd5

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
@@ -230,14 +230,14 @@ private static void generateAssetsFile(Path tmpdir, String assetsPath) {
230230
} else {
231231
if (assetsNeedHashing) {
232232
String newName = hashAsset(f);
233-
images.addProperty(origAssetsPath.relativize(f).toString(), newName);
233+
images.addProperty(origAssetsPath.relativize(f).toString().replace("\\", "/"), newName);
234234
Files.copy(
235235
f, tmpdir.resolve("hashed_assets").resolve(newName),
236236
StandardCopyOption.REPLACE_EXISTING
237237
);
238238
} else {
239239
images.addProperty(
240-
origAssetsPath.relativize(f).toString(),
240+
origAssetsPath.relativize(f).toString().replace("\\", "/"),
241241
tmpdir.relativize(f).toString().replace("\\", "/")
242242
);
243243
}

0 commit comments

Comments
 (0)