Skip to content

Commit 4511e77

Browse files
Fixed MLO generation (#26)
Dumb compiler
1 parent 15061c3 commit 4511e77

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

ShinRyuModManager-CE/ModLoadOrder/MLO.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void WriteMLO(string path) {
6464
// 0x0: Length
6565
// 0x2: String
6666
foreach (var mod in Mods) {
67-
writer.WriteOfType((ushort)mod.Length + 1);
67+
writer.WriteOfType((ushort)(mod.Length + 1));
6868
writer.Write(mod);
6969
}
7070

@@ -75,7 +75,7 @@ public void WriteMLO(string path) {
7575
// 0x4: String
7676
foreach (var file in Files) {
7777
writer.WriteOfType((ushort)file.Index);
78-
writer.WriteOfType((ushort)file.Name.Length + 1);
78+
writer.WriteOfType((ushort)(file.Name.Length + 1));
7979
writer.Write(file.Name);
8080
}
8181

@@ -86,7 +86,7 @@ public void WriteMLO(string path) {
8686
// 0x4: String
8787
foreach (var folder in ParlessFolders) {
8888
writer.WriteOfType((ushort)folder.Index);
89-
writer.WriteOfType((ushort)folder.Name.Length + 1);
89+
writer.WriteOfType((ushort)(folder.Name.Length + 1));
9090
writer.Write(folder.Name);
9191
}
9292

@@ -98,7 +98,7 @@ public void WriteMLO(string path) {
9898
// 0x?: Mod Indices
9999
foreach (var folder in CpkFolders) {
100100
writer.WriteOfType((ushort)folder.Indices.Count);
101-
writer.WriteOfType((ushort)folder.Name.Length + 1);
101+
writer.WriteOfType((ushort)(folder.Name.Length + 1));
102102
writer.Write(folder.Name);
103103

104104
foreach (var index in folder.Indices) {

ShinRyuModManager-CE/ShinRyuModManager-CE.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
1515

1616
<!-- Versioning -->
17-
<AssemblyVersion>1.3.7</AssemblyVersion>
17+
<AssemblyVersion>1.3.8</AssemblyVersion>
1818
<VersionPrefix>$(AssemblyVersion)</VersionPrefix>
1919
<AssemblyTitle>ShinRyuModManager-CE</AssemblyTitle>
2020
<Company>SRMM Studio</Company>

ShinRyuModManager-CE/UserInterface/Assets/changelog.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
> ### **%{color:gold} Version 1.3.7 %** ###
1+
> ### **%{color:gold} Version 1.3.8 %** ###
2+
* Fixed MLO generation
3+
4+
---
5+
6+
> ### **%{color:orange} Version 1.3.7 %** ###
27
* Implemented changes from SRMM 4.7.4
38
* Code cleanup
49

0 commit comments

Comments
 (0)