U8.cs, Lz77.cs: Applied patch by castorinop. (Fixes issue 14)

NusClient.cs: Added fix by madri2, and custom fix to hopefully fix Demae channel issue.

Update issue 11
Status: Started
v patch readded, working on scripting not ignoring checkboxes.

Update issue 9
Status: Fixed
This should be fixed. Needs a rebuild, can't do that from where I am now.
This commit is contained in:
gb.luke 2011-06-18 08:20:28 +00:00
parent 0a5717c111
commit 3ed87d8ea1
3 changed files with 5 additions and 3 deletions

View File

@ -331,7 +331,7 @@ namespace libWiiSharp
{
int i, p, cmp;
cmp = 1;
p = N + 1 + (textBuffer[r] == 0xffff ? 0 : textBuffer[r]);
p = N + 1 + (textBuffer[r] == 0xffff ? 0 : (int)textBuffer[r]);
rightSon[r] = leftSon[r] = N; matchLength = 0;
for (; ; )

View File

@ -456,7 +456,9 @@ namespace libWiiSharp
fireDebug(" - Creating WAD...");
WAD wad = WAD.Create(cert, tik, tmd, contents);
wad.RemoveFooter();
wadName = wadName.Replace("[v]", this.TitleVersion.ToString());
wadName = wadName.Replace("[v]", "v" + this.TitleVersion.ToString()); // fix by madri2
if (Path.DirectorySeparatorChar.ToString() != "/" && Path.AltDirectorySeparatorChar.ToString() != "/")
wadName = wadName.Replace("/", "");
if (wadName.Contains(Path.DirectorySeparatorChar.ToString()) || wadName.Contains(Path.AltDirectorySeparatorChar.ToString()))
wad.Save(wadName);
else

View File

@ -826,7 +826,7 @@ namespace libWiiSharp
int size = u8Nodes.Count + 2;
for (int j = 0; j < dirEntries.Length; j++)
if (dirEntries[j].Contains(dirEntries[i] + "\\")) size++;
if (dirEntries[j].Contains(dirEntries[i] + System.IO.Path.DirectorySeparatorChar.ToString())) size++;
tempNode.SizeOfData = (uint)size;
}