Skip to content

Commit

Permalink
Local WAD generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
CatmanFan committed Apr 13, 2024
1 parent e54e8ec commit b668078
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions FriishProduce/FriishProduce.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@
<ItemGroup>
<None Include="App.config" />
<None Include="database.json" />
<None Include="Resources\StaticBase.wad" />
<None Include="Strings\fr.json" />
<None Include="Strings\es.json" />
<None Include="Strings\en.json" />
Expand Down
10 changes: 10 additions & 0 deletions FriishProduce/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions FriishProduce/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,7 @@
<data name="Database" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\database.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="StaticBase" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\StaticBase.wad;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
Binary file added FriishProduce/Resources/StaticBase.wad
Binary file not shown.
6 changes: 4 additions & 2 deletions FriishProduce/_classes/Program/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -80,7 +81,7 @@ public string GetUpperID(int index)
ascii += character;
}

return ascii;
return ascii.ToUpper();
}

/// <summary>
Expand All @@ -89,7 +90,8 @@ public string GetUpperID(int index)
public WAD GetWAD(int index)
{
throw new NotImplementedException();
return new WAD();
var placeholder = WAD.Load(Properties.Resources.StaticBase);
placeholder.ChangeTitleID(LowerTitleID.Channel, GetUpperID(index));
}
}

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ This program uses the following third-party components and apps:
* **romc0** and **lzh8_cmpdec** by [hcs64](https://github.com/hcs64).
* **[ROMC VC Compressor](https://www.elotrolado.net/hilo_romc-vc-compressor_1015640)** by Jurai, with additional LZSS code by Haruhiko Okumura.
* [libertyernie](https://github.com/libertyernie)'s **[fork of BrawlLib](https://github.com/libertyernie/brawllib-wit)** by soopercool101.
* [Static WAD Base](https://github.com/Brawl345/customizemii/blob/master/Base_WADs/StaticBase.wad) from **CustomizeMii**.

For icons and interface:
* **[MdiTabCtrl](https://github.com/JacksiroKe/MdiTabCtrl)** by Jack Siro.
Expand Down

0 comments on commit b668078

Please sign in to comment.