Skip to content

Commit

Permalink
Fix .rawimg being included in atlas names
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicKarma committed Apr 14, 2024
1 parent 5a33709 commit 8cd2000
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ This file will contain each version of the mod published, along with all of the

---

## V1.0.1
- Fixed a bug where atlases could include the .rawimg file extension in their registered texture paths.

## V1.0.0
Initial mod release! Find a list of the features in the base README.md and check out the (currently limited) documentation alongside the implementations of them.
2 changes: 1 addition & 1 deletion Core/Graphics/Atlases/AtlasManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ internal static void InitializeModAtlases(Mod mod)
{
string assetFilepath = $"{mod.Name}/" + path;
string filename = Path.GetFileNameWithoutExtension(assetFilepath);
string formattedAtlasPath = assetFilepath.Replace(".json", string.Empty).Replace(".xnb", string.Empty);
string formattedAtlasPath = assetFilepath.Replace(".json", string.Empty).Replace(".xnb", string.Empty).Replace(".rawimg", string.Empty);

if (!AtlasIsRegistered(filename))
RegisterAtlas(mod, filename, formattedAtlasPath);
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
displayName = Luminance
author = Dominic Karma, Toasty
version = 1.0.0
version = 1.0.1
homepage = https://github.com/DominicKarma/Luminance
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, .github\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes, TODO.md
hideCode = false
Expand Down

0 comments on commit 8cd2000

Please sign in to comment.