Skip to content

Commit

Permalink
use relative map path
Browse files Browse the repository at this point in the history
supported since GU17 and required for mod.io
  • Loading branch information
jakobharder committed Aug 27, 2023
1 parent 8f57c68 commit a5b4982
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions AnnoMapEditor/Mods/Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ private async Task WriteAssetsXml(string modPath, string fullModName, string map
if (assetsXmlDir is not null)
Directory.CreateDirectory(assetsXmlDir);

string fullMapPath = Path.Combine("mods", fullModName, mapFilePath).Replace("\\", "/");

string content = CreateAssetsModOps(mapType, fullMapPath);
string content = CreateAssetsModOps(mapType, mapFilePath);

using StreamWriter writer = new(File.Create(assetsXmlPath));
await writer.WriteAsync(content);
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ It's not reliable to do so without manual editing.

### 0.5

- 0.5.1: save as mod: set map name also for non-English languages
- 0.5.1: save as mod: fix use via mod.io (relative map path)
- Add, remove, change pool islands

### 0.4
Expand Down

0 comments on commit a5b4982

Please sign in to comment.