Skip to content

Commit

Permalink
fix assetpath on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Oct 1, 2024
1 parent 26e956a commit a53e86b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/electron/electron_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ class ElectronSettings
if (dir && id)
{
this.data.paths.assetPath = path.join(dir, "assets", id, "/");
}else{
this.data.paths.assetPath = path.join(".", "assets", id, "/");

}
if (process.platform === "win32")
{
Expand Down Expand Up @@ -328,7 +331,7 @@ class ElectronSettings

_setCurrentProjectDir(value)
{
if (value && !value.endsWith("/")) value += "/";
if (value) value = path.join(value, "/");
this.set(this.CURRENTPROJECTDIR_FIELD, value);
}

Expand Down

0 comments on commit a53e86b

Please sign in to comment.