mirror of
https://github.com/Brawl345/customizemii.git
synced 2024-11-14 20:35:12 +01:00
Base WADs for CustomizeMii
This commit is contained in:
parent
484b0aa308
commit
82af5fd420
BIN
Backup_Channel.wad
Normal file
BIN
Backup_Channel.wad
Normal file
Binary file not shown.
@ -1,26 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C# Express 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomizeMii", "CustomizeMii\CustomizeMii.csproj", "{46B7F0BC-101B-4167-95AD-4C5D78AA0A20}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ForwardMii-Plugin", "ForwardMii-Plugin\ForwardMii-Plugin.csproj", "{20CB2CA7-6767-4758-97FA-97395F47CD6B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{46B7F0BC-101B-4167-95AD-4C5D78AA0A20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{46B7F0BC-101B-4167-95AD-4C5D78AA0A20}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{46B7F0BC-101B-4167-95AD-4C5D78AA0A20}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{46B7F0BC-101B-4167-95AD-4C5D78AA0A20}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{20CB2CA7-6767-4758-97FA-97395F47CD6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{20CB2CA7-6767-4758-97FA-97395F47CD6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{20CB2CA7-6767-4758-97FA-97395F47CD6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{20CB2CA7-6767-4758-97FA-97395F47CD6B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@ -1,714 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
//These classes are based on bns.py of the Wii.py Framework with improvements by me (Leathl)
|
||||
//Thanks to Xuzz, SquidMan, megazig, Matt_P, Omega and The Lemon Man, the authors of Wii.py!
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using WaveFile;
|
||||
|
||||
namespace BNS
|
||||
{
|
||||
internal class BNS_Data
|
||||
{
|
||||
//Private Varialbes
|
||||
private byte[] magic = new byte[] { (byte)'D', (byte)'A', (byte)'T', (byte)'A' };
|
||||
private UInt32 size = 0x0004d000;
|
||||
private byte[] data;
|
||||
|
||||
//Public Variables
|
||||
public UInt32 Size { get { return size; } set { size = value; } }
|
||||
public byte[] Data { get { return data; } set { data = value; } }
|
||||
|
||||
public BNS_Data() { }
|
||||
|
||||
public void Write(Stream outStream)
|
||||
{
|
||||
byte[] temp = BitConverter.GetBytes(size); Array.Reverse(temp);
|
||||
|
||||
outStream.Write(magic, 0, magic.Length);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
outStream.Write(data, 0, data.Length);
|
||||
}
|
||||
}
|
||||
|
||||
internal class BNS_Info
|
||||
{
|
||||
//Private Variables
|
||||
private byte[] magic = new byte[] { (byte)'I', (byte)'N', (byte)'F', (byte)'O' };
|
||||
private UInt32 size = 0x000000a0;
|
||||
private byte codec = 0x00;
|
||||
private byte hasLoop = 0x00;
|
||||
private byte channelCount = 0x02;
|
||||
private byte zero = 0x00;
|
||||
private UInt16 sampleRate = 0xac44;
|
||||
private UInt16 pad0 = 0x0000;
|
||||
private UInt32 loopStart = 0x00000000;
|
||||
private UInt32 loopEnd = 0x00000000; //Or total sample count
|
||||
private UInt32 offsetToChannelStart = 0x00000018;
|
||||
private UInt32 pad1 = 0x00000000;
|
||||
private UInt32 channel1StartOffset = 0x00000020;
|
||||
private UInt32 channel2StartOffset = 0x0000002C;
|
||||
private UInt32 channel1Start = 0x00000000;
|
||||
private UInt32 coefficients1Offset = 0x0000038;
|
||||
private UInt32 pad2 = 0x00000000;
|
||||
private UInt32 channel2Start = 0x00000000;
|
||||
private UInt32 coefficients2Offset = 0x00000068;
|
||||
private UInt32 pad3 = 0x00000000;
|
||||
private int[] coefficients1 = new int[16];
|
||||
private UInt16 channel1Gain = 0x0000;
|
||||
private UInt16 channel1PredictiveScale = 0x0000;
|
||||
private UInt16 channel1PreviousValue = 0x0000;
|
||||
private UInt16 channel1NextPreviousValue = 0x0000;
|
||||
private UInt16 channel1LoopPredictiveScale = 0x0000;
|
||||
private UInt16 channel1LoopPreviousValue = 0x0000;
|
||||
private UInt16 channel1LoopNextPreviousValue = 0x0000;
|
||||
private UInt16 channel1LoopPadding = 0x0000;
|
||||
private int[] coefficients2 = new int[16];
|
||||
private UInt16 channel2Gain = 0x0000;
|
||||
private UInt16 channel2PredictiveScale = 0x0000;
|
||||
private UInt16 channel2PreviousValue = 0x0000;
|
||||
private UInt16 channel2NextPreviousValue = 0x0000;
|
||||
private UInt16 channel2LoopPredictiveScale = 0x0000;
|
||||
private UInt16 channel2LoopPreviousValue = 0x0000;
|
||||
private UInt16 channel2LoopNextPreviousValue = 0x0000;
|
||||
private UInt16 channel2LoopPadding = 0x0000;
|
||||
|
||||
//Public Variables
|
||||
public byte HasLoop { get { return hasLoop; } set { hasLoop = value; } }
|
||||
public UInt32 Coefficients1Offset { get { return coefficients1Offset; } set { coefficients1Offset = value; } }
|
||||
public UInt32 Channel1StartOffset { get { return channel1StartOffset; } set { channel1StartOffset = value; } }
|
||||
public UInt32 Channel2StartOffset { get { return channel2StartOffset; } set { channel2StartOffset = value; } }
|
||||
public UInt32 Size { get { return size; } set { size = value; } }
|
||||
public UInt16 SampleRate { get { return sampleRate; } set { sampleRate = value; } }
|
||||
public byte ChannelCount { get { return channelCount; } set { channelCount = value; } }
|
||||
public UInt32 Channel1Start { get { return channel1Start; } set { channel1Start = value; } }
|
||||
public UInt32 Channel2Start { get { return channel2Start; } set { channel2Start = value; } }
|
||||
public UInt32 LoopStart { get { return loopStart; } set { loopStart = value; } }
|
||||
public UInt32 LoopEnd { get { return loopEnd; } set { loopEnd = value; } }
|
||||
public int[] Coefficients1 { get { return coefficients1; } set { coefficients1 = value; } }
|
||||
public int[] Coefficients2 { get { return coefficients2; } set { coefficients2 = value; } }
|
||||
|
||||
public BNS_Info() { }
|
||||
|
||||
public void Write(Stream outStream)
|
||||
{
|
||||
outStream.Write(magic, 0, magic.Length);
|
||||
|
||||
byte[] temp = BitConverter.GetBytes(size); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
outStream.WriteByte(codec);
|
||||
outStream.WriteByte(hasLoop);
|
||||
outStream.WriteByte(channelCount);
|
||||
outStream.WriteByte(zero);
|
||||
|
||||
temp = BitConverter.GetBytes(sampleRate); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(pad0); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(loopStart); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(loopEnd); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(offsetToChannelStart); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(pad1); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1StartOffset); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2StartOffset); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1Start); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(coefficients1Offset); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
if (this.channelCount == 2)
|
||||
{
|
||||
temp = BitConverter.GetBytes(pad2); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2Start); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(coefficients2Offset); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(pad3); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
foreach (int thisInt in coefficients1)
|
||||
{
|
||||
temp = BitConverter.GetBytes(thisInt); Array.Reverse(temp);
|
||||
outStream.Write(temp, 2, temp.Length - 2);
|
||||
}
|
||||
|
||||
temp = BitConverter.GetBytes(channel1Gain); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1PredictiveScale); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1PreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1NextPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1LoopPredictiveScale); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1LoopPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1LoopNextPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1LoopPadding); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
foreach (int thisInt in coefficients2)
|
||||
{
|
||||
temp = BitConverter.GetBytes(thisInt); Array.Reverse(temp);
|
||||
outStream.Write(temp, 2, temp.Length - 2);
|
||||
}
|
||||
|
||||
temp = BitConverter.GetBytes(channel2Gain); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2PredictiveScale); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2PreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2NextPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2LoopPredictiveScale); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2LoopPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2LoopNextPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel2LoopPadding); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
}
|
||||
else if (this.channelCount == 1)
|
||||
{
|
||||
foreach (int thisInt in coefficients1)
|
||||
{
|
||||
temp = BitConverter.GetBytes(thisInt); Array.Reverse(temp);
|
||||
outStream.Write(temp, 2, temp.Length - 2);
|
||||
}
|
||||
|
||||
temp = BitConverter.GetBytes(channel1Gain); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1PredictiveScale); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1PreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1NextPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1LoopPredictiveScale); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1LoopPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1LoopNextPreviousValue); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(channel1LoopPadding); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal class BNS_Header
|
||||
{
|
||||
//Private Variables
|
||||
private byte[] magic = new byte[] { (byte)'B', (byte)'N', (byte)'S', (byte)' ' };
|
||||
private UInt32 flags = 0xfeff0100;
|
||||
private UInt32 fileSize = 0x0004d0c0;
|
||||
private UInt16 size = 0x0020;
|
||||
private UInt16 chunkCount = 0x0002;
|
||||
private UInt32 infoOffset = 0x00000020;
|
||||
private UInt32 infoLength = 0x000000a0;
|
||||
private UInt32 dataOffset = 0x000000c0;
|
||||
private UInt32 dataLength = 0x0004d000;
|
||||
|
||||
//Public Varialbes
|
||||
public UInt32 DataOffset { get { return dataOffset; } set { dataOffset = value; } }
|
||||
public UInt32 InfoLength { get { return infoLength; } set { infoLength = value; } }
|
||||
public UInt16 Size { get { return size; } set { size = value; } }
|
||||
public UInt32 DataLength { get { return dataLength; } set { dataLength = value; } }
|
||||
public UInt32 FileSize { get { return fileSize; } set { fileSize = value; } }
|
||||
|
||||
public BNS_Header() { }
|
||||
|
||||
public void Write(Stream outStream)
|
||||
{
|
||||
outStream.Write(magic, 0, magic.Length);
|
||||
|
||||
byte[] temp = BitConverter.GetBytes(flags); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(fileSize); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(size); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(chunkCount); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(infoOffset); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(infoLength); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(dataOffset); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
|
||||
temp = BitConverter.GetBytes(dataLength); Array.Reverse(temp);
|
||||
outStream.Write(temp, 0, temp.Length);
|
||||
}
|
||||
}
|
||||
|
||||
public class BNS_File
|
||||
{
|
||||
//Private Variables
|
||||
private BNS_Header bnsHeader = new BNS_Header();
|
||||
private BNS_Info bnsInfo = new BNS_Info();
|
||||
private BNS_Data bnsData = new BNS_Data();
|
||||
private int[,] lSamples = new int[2, 2];
|
||||
private int[,] rlSamples = new int[2, 2];
|
||||
private int[] tlSamples = new int[2];
|
||||
private int[] hbcDefTbl = new int[] { 674, 1040, 3598, -1738, 2270, -583, 3967, -1969, 1516, 381, 3453, -1468, 2606, -617, 3795, -1759 };
|
||||
private int[] defTbl = new int[] { 1820, -856, 3238, -1514, 2333, -550, 3336, -1376, 2444, -949, 3666, -1764, 2654, -701, 3420, -1398 };
|
||||
private int[] pHist1 = new int[2];
|
||||
private int[] pHist2 = new int[2];
|
||||
private int tempSampleCount;
|
||||
private string waveFile;
|
||||
private bool loopFromWave = false;
|
||||
private bool converted = false;
|
||||
private bool toMono = false;
|
||||
|
||||
|
||||
|
||||
//Public Variables
|
||||
/// <summary>
|
||||
/// 0x00 (0) = No Loop, 0x01 (1) = Loop
|
||||
/// </summary>
|
||||
public byte HasLoop { get { return this.bnsInfo.HasLoop; } set { this.bnsInfo.HasLoop = value; } }
|
||||
/// <summary>
|
||||
/// The start sample of the Loop
|
||||
/// </summary>
|
||||
public UInt32 LoopStart { get { return this.bnsInfo.LoopStart; } set { this.bnsInfo.LoopStart = value; } }
|
||||
/// <summary>
|
||||
/// The total number of samples in this file
|
||||
/// </summary>
|
||||
public UInt32 TotalSampleCount { get { return this.bnsInfo.LoopEnd; } set { this.bnsInfo.LoopEnd = value; } }
|
||||
/// <summary>
|
||||
/// If true and the input Wave file is stereo, the BNS will be converted to Mono.
|
||||
/// Be sure to set this before you call Convert()!
|
||||
/// </summary>
|
||||
public bool StereoToMono { get { return toMono; } set { toMono = value; } }
|
||||
|
||||
|
||||
|
||||
//Public Functions
|
||||
|
||||
public BNS_File(string waveFile)
|
||||
{
|
||||
this.waveFile = waveFile;
|
||||
}
|
||||
|
||||
public BNS_File(string waveFile, bool loopFromWave)
|
||||
{
|
||||
this.waveFile = waveFile;
|
||||
this.loopFromWave = loopFromWave;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the progress of the conversion
|
||||
/// </summary>
|
||||
public event EventHandler<System.ComponentModel.ProgressChangedEventArgs> ProgressChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Converts the Wave file to BNS
|
||||
/// </summary>
|
||||
public void Convert()
|
||||
{
|
||||
Convert(waveFile, loopFromWave);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the BNS file as a Byte Array. If not already converted, it will be done first.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public byte[] ToByteArray()
|
||||
{
|
||||
return ToMemoryStream().ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the BNS file as a Memory Stream. If not already converted, it will be done first.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public MemoryStream ToMemoryStream()
|
||||
{
|
||||
if (!converted)
|
||||
Convert(waveFile, loopFromWave);
|
||||
|
||||
MemoryStream ms = new MemoryStream();
|
||||
|
||||
this.bnsHeader.Write(ms);
|
||||
this.bnsInfo.Write(ms);
|
||||
this.bnsData.Write(ms);
|
||||
|
||||
return ms;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the BNS file to the given path. If not already converted, it will be done first.
|
||||
/// </summary>
|
||||
/// <param name="destionationFile"></param>
|
||||
public void Save(string destionationFile)
|
||||
{
|
||||
if (File.Exists(destionationFile)) File.Delete(destionationFile);
|
||||
|
||||
using (FileStream fs = new FileStream(destionationFile, FileMode.Create))
|
||||
{
|
||||
byte[] bnsFile = ToMemoryStream().ToArray();
|
||||
fs.Write(bnsFile, 0, bnsFile.Length);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the Loop to the given Start Sample. Be sure that you call Convert() first!
|
||||
/// </summary>
|
||||
/// <param name="loopStartSample"></param>
|
||||
public void SetLoop(int loopStartSample)
|
||||
{
|
||||
this.bnsInfo.HasLoop = 0x01;
|
||||
this.bnsInfo.LoopStart = (uint)loopStartSample;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Private Functions
|
||||
|
||||
private void Convert(string waveFile, bool loopFromWave)
|
||||
{
|
||||
Wave wave = new Wave(waveFile);
|
||||
int waveLoopCount = wave.LoopCount;
|
||||
int waveLoopStart = wave.LoopStart;
|
||||
|
||||
this.bnsInfo.ChannelCount = (byte)wave.ChannelCount;
|
||||
this.bnsInfo.SampleRate = (ushort)wave.SampleRate;
|
||||
|
||||
if (this.bnsInfo.ChannelCount > 2 || this.bnsInfo.ChannelCount < 1)
|
||||
throw new Exception("Unsupported Count of Channels!");
|
||||
if (wave.BitDepth != 16)
|
||||
throw new Exception("Only 16bit Wave files are supported!");
|
||||
if (wave.DataFormat != 1)
|
||||
throw new Exception("The format of this Wave file is not supported!");
|
||||
|
||||
this.bnsData.Data = Encode(wave.GetAllFrames());
|
||||
wave.Close();
|
||||
|
||||
if (this.bnsInfo.ChannelCount == 1)
|
||||
{
|
||||
this.bnsHeader.InfoLength = 0x60;
|
||||
this.bnsHeader.DataOffset = 0x80;
|
||||
|
||||
this.bnsInfo.Size = 0x60;
|
||||
this.bnsInfo.Channel1StartOffset = 0x0000001C;
|
||||
this.bnsInfo.Channel2StartOffset = 0x00000000;
|
||||
this.bnsInfo.Channel1Start = 0x00000028;
|
||||
this.bnsInfo.Coefficients1Offset = 0x00000000;
|
||||
}
|
||||
|
||||
this.bnsData.Size = (uint)bnsData.Data.Length + 8;
|
||||
|
||||
this.bnsHeader.DataLength = this.bnsData.Size;
|
||||
this.bnsHeader.FileSize = this.bnsHeader.Size + this.bnsInfo.Size + this.bnsData.Size;
|
||||
|
||||
if (loopFromWave)
|
||||
if (waveLoopCount == 1)
|
||||
if (waveLoopStart != -1)
|
||||
{ this.bnsInfo.LoopStart = (uint)waveLoopStart; this.bnsInfo.HasLoop = 0x01; }
|
||||
|
||||
this.bnsInfo.LoopEnd = (uint)tempSampleCount;
|
||||
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
this.bnsInfo.Coefficients1[i] = this.defTbl[i];
|
||||
|
||||
if (this.bnsInfo.ChannelCount == 2)
|
||||
this.bnsInfo.Coefficients2[i] = this.defTbl[i];
|
||||
}
|
||||
|
||||
this.converted = true;
|
||||
}
|
||||
|
||||
private byte[] Encode(byte[] inputFrames)
|
||||
{
|
||||
int offset = 0;
|
||||
int[] sampleBuffer = new int[14];
|
||||
|
||||
this.tempSampleCount = inputFrames.Length / (bnsInfo.ChannelCount == 2 ? 4 : 2);
|
||||
int modLength = (inputFrames.Length / (bnsInfo.ChannelCount == 2 ? 4 : 2)) % 14;
|
||||
|
||||
Array.Resize(ref inputFrames, inputFrames.Length + ((14 - modLength) * (bnsInfo.ChannelCount == 2 ? 4 : 2)));
|
||||
|
||||
int sampleCount = inputFrames.Length / (bnsInfo.ChannelCount == 2 ? 4 : 2);
|
||||
|
||||
int blocks = (sampleCount + 13) / 14;
|
||||
|
||||
List<int> soundDataLeft = new List<int>();
|
||||
List<int> soundDataRight = new List<int>();
|
||||
|
||||
int co = offset;
|
||||
|
||||
if (this.toMono && this.bnsInfo.ChannelCount == 2) this.bnsInfo.ChannelCount = 1;
|
||||
else if (this.toMono) this.toMono = false;
|
||||
|
||||
for (int j = 0; j < sampleCount; j++)
|
||||
{
|
||||
soundDataLeft.Add(BitConverter.ToInt16(inputFrames, co));
|
||||
co += 2;
|
||||
|
||||
if (this.bnsInfo.ChannelCount == 2 || toMono)
|
||||
{
|
||||
soundDataRight.Add(BitConverter.ToInt16(inputFrames, co));
|
||||
co += 2;
|
||||
}
|
||||
}
|
||||
|
||||
byte[] data = new byte[(this.bnsInfo.ChannelCount == 2 ? (blocks * 16) : (blocks * 8))];
|
||||
|
||||
int data1Offset = 0;
|
||||
int data2Offset = blocks * 8;
|
||||
|
||||
this.bnsInfo.Channel2Start = (this.bnsInfo.ChannelCount == 2 ? (uint)data2Offset : 0);
|
||||
|
||||
int[] leftSoundData = soundDataLeft.ToArray();
|
||||
int[] rightSoundData = soundDataRight.ToArray();
|
||||
|
||||
for (int y = 0; y < blocks; y++)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (y % (int)(blocks / 100) == 0 || (y + 1) == blocks)
|
||||
ChangeProgress((y + 1) * 100 / blocks);
|
||||
}
|
||||
catch { }
|
||||
|
||||
for (int a = 0; a < 14; a++)
|
||||
sampleBuffer[a] = leftSoundData[y * 14 + a];
|
||||
|
||||
byte[] outBuffer = RepackAdpcm(0, this.defTbl, sampleBuffer);
|
||||
|
||||
for (int a = 0; a < 8; a++)
|
||||
data[data1Offset + a] = outBuffer[a];
|
||||
|
||||
data1Offset += 8;
|
||||
|
||||
if (this.bnsInfo.ChannelCount == 2)
|
||||
{
|
||||
for (int a = 0; a < 14; a++)
|
||||
sampleBuffer[a] = rightSoundData[y * 14 + a];
|
||||
|
||||
outBuffer = RepackAdpcm(1, this.defTbl, sampleBuffer);
|
||||
|
||||
for (int a = 0; a < 8; a++)
|
||||
data[data2Offset + a] = outBuffer[a];
|
||||
|
||||
data2Offset += 8;
|
||||
}
|
||||
}
|
||||
|
||||
this.bnsInfo.LoopEnd = (uint)(blocks * 7);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
private byte[] RepackAdpcm(int index, int[] table, int[] inputBuffer)
|
||||
{
|
||||
byte[] data = new byte[8];
|
||||
int[] blSamples = new int[2];
|
||||
int bestIndex = -1;
|
||||
double bestError = 999999999.0;
|
||||
double error;
|
||||
|
||||
for (int tableIndex = 0; tableIndex < 8; tableIndex++)
|
||||
{
|
||||
byte[] testData = CompressAdpcm(index, table, tableIndex, inputBuffer, out error);
|
||||
|
||||
if (error < bestError)
|
||||
{
|
||||
bestError = error;
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
data[i] = testData[i];
|
||||
for (int i = 0; i < 2; i++)
|
||||
blSamples[i] = this.tlSamples[i];
|
||||
|
||||
bestIndex = tableIndex;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
this.rlSamples[index, i] = blSamples[i];
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
private byte[] CompressAdpcm(int index, int[] table, int tableIndex, int[] inputBuffer, out double outError)
|
||||
{
|
||||
byte[] data = new byte[8];
|
||||
int error = 0;
|
||||
int factor1 = table[2 * tableIndex + 0];
|
||||
int factor2 = table[2 * tableIndex + 1];
|
||||
|
||||
int exponent = DetermineStdExponent(index, table, tableIndex, inputBuffer);
|
||||
|
||||
while (exponent <= 15)
|
||||
{
|
||||
bool breakIt = false;
|
||||
error = 0;
|
||||
data[0] = (byte)(exponent | (tableIndex << 4));
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
this.tlSamples[i] = this.rlSamples[index, i];
|
||||
|
||||
int j = 0;
|
||||
|
||||
for (int i = 0; i < 14; i++)
|
||||
{
|
||||
int predictor = (int)((this.tlSamples[1] * factor1 + this.tlSamples[0] * factor2) >> 11);
|
||||
int residual = (inputBuffer[i] - predictor) >> exponent;
|
||||
|
||||
if (residual > 7 || residual < -8)
|
||||
{
|
||||
exponent++;
|
||||
breakIt = true;
|
||||
break;
|
||||
}
|
||||
|
||||
int nibble = Clamp(residual, -8, 7);
|
||||
|
||||
if ((i & 1) != 0)
|
||||
data[i / 2 + 1] = (byte)(data[i / 2 + 1] | (nibble & 0xf));
|
||||
else
|
||||
data[i / 2 + 1] = (byte)(nibble << 4);
|
||||
|
||||
predictor += nibble << exponent;
|
||||
|
||||
this.tlSamples[0] = this.tlSamples[1];
|
||||
this.tlSamples[1] = Clamp(predictor, -32768, 32767);
|
||||
|
||||
error += (int)(Math.Pow((double)(this.tlSamples[1] - inputBuffer[i]), 2));
|
||||
}
|
||||
|
||||
if (!breakIt) j = 14;
|
||||
|
||||
if (j == 14) break;
|
||||
}
|
||||
|
||||
outError = error;
|
||||
return data;
|
||||
}
|
||||
|
||||
private int DetermineStdExponent(int index, int[] table, int tableIndex, int[] inputBuffer)
|
||||
{
|
||||
int[] elSamples = new int[2];
|
||||
int maxResidual = 0;
|
||||
int factor1 = table[2 * tableIndex + 0];
|
||||
int factor2 = table[2 * tableIndex + 1];
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
elSamples[i] = this.rlSamples[index, i];
|
||||
|
||||
for (int i = 0; i < 14; i++)
|
||||
{
|
||||
int predictor = (elSamples[1] * factor1 + elSamples[0] * factor2) >> 11;
|
||||
int residual = inputBuffer[i] - predictor;
|
||||
|
||||
if (residual > maxResidual)
|
||||
maxResidual = residual;
|
||||
|
||||
elSamples[0] = elSamples[1];
|
||||
elSamples[1] = inputBuffer[i];
|
||||
}
|
||||
|
||||
return FindExponent(maxResidual);
|
||||
}
|
||||
|
||||
private int FindExponent(double residual)
|
||||
{
|
||||
int exponent = 0;
|
||||
|
||||
while (residual > 7.5 || residual < -8.5)
|
||||
{
|
||||
exponent++;
|
||||
residual /= 2.0;
|
||||
}
|
||||
|
||||
return exponent;
|
||||
}
|
||||
|
||||
private int Clamp(int input, int min, int max)
|
||||
{
|
||||
if (input < min) return min;
|
||||
if (input > max) return max;
|
||||
return input;
|
||||
}
|
||||
|
||||
private void ChangeProgress(int progressPercentage)
|
||||
{
|
||||
EventHandler<System.ComponentModel.ProgressChangedEventArgs> progressChanged = ProgressChanged;
|
||||
if (progressChanged != null)
|
||||
{
|
||||
progressChanged(new object(), new System.ComponentModel.ProgressChangedEventArgs(progressPercentage, new object()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,183 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{46B7F0BC-101B-4167-95AD-4C5D78AA0A20}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>CustomizeMii</RootNamespace>
|
||||
<AssemblyName>CustomizeMii</AssemblyName>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkSubset>
|
||||
</TargetFrameworkSubset>
|
||||
<ApplicationIcon>Resources\CustomizeMii.ico</ApplicationIcon>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>2.1.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="ForwardMii, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\ForwardMii-Plugin\bin\Release\ForwardMii.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="BNS.cs" />
|
||||
<Compile Include="CustomizeMii_BackgroundWorkers.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_BnsConvert.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_BnsConvert.Designer.cs">
|
||||
<DependentUpon>CustomizeMii_BnsConvert.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_ComplexForwarder.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_ComplexForwarder.Designer.cs">
|
||||
<DependentUpon>CustomizeMii_ComplexForwarder.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_Forwarders.cs" />
|
||||
<Compile Include="CustomizeMii_Main.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_Main.Designer.cs">
|
||||
<DependentUpon>CustomizeMii_Main.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_Preview.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_Preview.Designer.cs">
|
||||
<DependentUpon>CustomizeMii_Preview.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_InputBox.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_InputBox.Designer.cs">
|
||||
<DependentUpon>CustomizeMii_InputBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="CustomizeMii_BnsConvert.resx">
|
||||
<DependentUpon>CustomizeMii_BnsConvert.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="CustomizeMii_ComplexForwarder.resx">
|
||||
<DependentUpon>CustomizeMii_ComplexForwarder.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="CustomizeMii_InputBox.resx">
|
||||
<DependentUpon>CustomizeMii_InputBox.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="CustomizeMii_Main.resx">
|
||||
<DependentUpon>CustomizeMii_Main.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="CustomizeMii_Preview.resx">
|
||||
<DependentUpon>CustomizeMii_Preview.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<EmbeddedResource Include="Resources\comex.app" />
|
||||
<EmbeddedResource Include="Resources\Waninkoko.app" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<Compile Include="CustomizeMii_Structs.cs" />
|
||||
<Compile Include="Wave.cs" />
|
||||
<Compile Include="Wii.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="License.txt" />
|
||||
<Content Include="Readme.txt" />
|
||||
<Content Include="Instructions.txt" />
|
||||
<None Include="Resources\btnCreateWad.png" />
|
||||
<None Include="Resources\CustomizeMii.ico" />
|
||||
<None Include="Resources\Instructions.rtf" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
@ -1,17 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||
<InstallUrlHistory>
|
||||
</InstallUrlHistory>
|
||||
<SupportUrlHistory>
|
||||
</SupportUrlHistory>
|
||||
<UpdateUrlHistory>
|
||||
</UpdateUrlHistory>
|
||||
<BootstrapperUrlHistory>
|
||||
</BootstrapperUrlHistory>
|
||||
<ErrorReportUrlHistory>
|
||||
</ErrorReportUrlHistory>
|
||||
<FallbackCulture>de-DE</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -1,753 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using BNS;
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
partial class CustomizeMii_Main
|
||||
{
|
||||
public int sendWadReady = 0;
|
||||
private bool sendToWii = false;
|
||||
private bool internalSound;
|
||||
|
||||
void bwBannerReplace_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
pbProgress.Value = 100;
|
||||
lbStatusText.Text = string.Empty;
|
||||
SetText(tbReplace, BannerReplace);
|
||||
}
|
||||
|
||||
void bwBannerReplace_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
currentProgress.progressValue = e.ProgressPercentage;
|
||||
currentProgress.progressState = (string)e.UserState;
|
||||
|
||||
this.Invoke(ProgressUpdate);
|
||||
}
|
||||
|
||||
void bwBannerReplace_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
BackgroundWorker bwBannerReplace = sender as BackgroundWorker;
|
||||
string thisFile = (string)e.Argument;
|
||||
if (Directory.Exists(TempTempPath)) Directory.Delete(TempTempPath, true);
|
||||
if (Directory.Exists(TempBannerPath)) Directory.Delete(TempBannerPath, true);
|
||||
|
||||
if (thisFile.EndsWith(".bin"))
|
||||
{
|
||||
bwBannerReplace.ReportProgress(0, "Loading banner.bin...");
|
||||
Wii.U8.UnpackU8(thisFile, TempBannerPath);
|
||||
}
|
||||
else if (thisFile.EndsWith(".app"))
|
||||
{
|
||||
bwBannerReplace.ReportProgress(0, "Loading 00000000.app...");
|
||||
Wii.U8.UnpackU8(thisFile, TempTempPath);
|
||||
bwBannerReplace.ReportProgress(50, "Loading banner.bin...");
|
||||
Wii.U8.UnpackU8(TempTempPath + "meta\\banner.bin", TempBannerPath);
|
||||
Directory.Delete(TempTempPath, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
bwBannerReplace.ReportProgress(0, "Loading WAD...");
|
||||
Wii.WadUnpack.UnpackWad(thisFile, TempTempPath);
|
||||
if (Wii.U8.CheckU8(TempTempPath + "00000000.app") == false)
|
||||
throw new Exception("CustomizeMii only handles Channel WADs!");
|
||||
bwBannerReplace.ReportProgress(30, "Loading 00000000.app...");
|
||||
Wii.U8.UnpackU8(TempTempPath + "00000000.app", TempTempPath + "00000000.app_OUT");
|
||||
bwBannerReplace.ReportProgress(60, "Loading banner.bin...");
|
||||
Wii.U8.UnpackU8(TempTempPath + "00000000.app_OUT\\meta\\banner.bin", TempBannerPath);
|
||||
Directory.Delete(TempTempPath, true);
|
||||
}
|
||||
|
||||
EventHandler AddBannerTpls = new EventHandler(this.AddBannerTpls);
|
||||
EventHandler AddIconTpls = new EventHandler(this.AddIconTpls);
|
||||
EventHandler AddBrlyts = new EventHandler(this.AddBrlyts);
|
||||
EventHandler AddBrlans = new EventHandler(this.AddBrlans);
|
||||
this.Invoke(AddBannerTpls);
|
||||
this.Invoke(AddIconTpls);
|
||||
this.Invoke(AddBrlyts);
|
||||
this.Invoke(AddBrlans);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (Directory.Exists(TempTempPath)) Directory.Delete(TempTempPath, true);
|
||||
if (Directory.Exists(TempBannerPath)) Directory.Delete(TempBannerPath, true);
|
||||
BannerReplace = string.Empty;
|
||||
ErrorBox(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
void bwIconReplace_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
pbProgress.Value = 100;
|
||||
lbStatusText.Text = string.Empty;
|
||||
SetText(tbReplace, IconReplace);
|
||||
}
|
||||
|
||||
void bwIconReplace_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
currentProgress.progressValue = e.ProgressPercentage;
|
||||
currentProgress.progressState = (string)e.UserState;
|
||||
|
||||
this.Invoke(ProgressUpdate);
|
||||
}
|
||||
|
||||
void bwIconReplace_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
BackgroundWorker bwIconReplace = sender as BackgroundWorker;
|
||||
string thisFile = (string)e.Argument;
|
||||
if (Directory.Exists(TempTempPath)) Directory.Delete(TempTempPath, true);
|
||||
if (Directory.Exists(TempIconPath)) Directory.Delete(TempIconPath, true);
|
||||
|
||||
if (thisFile.EndsWith(".bin"))
|
||||
{
|
||||
bwIconReplace.ReportProgress(0, "Loading icon.bin...");
|
||||
Wii.U8.UnpackU8(thisFile, TempIconPath);
|
||||
}
|
||||
else if (thisFile.EndsWith(".app"))
|
||||
{
|
||||
bwIconReplace.ReportProgress(0, "Loading 00000000.app...");
|
||||
Wii.U8.UnpackU8(thisFile, TempTempPath);
|
||||
bwIconReplace.ReportProgress(50, "Loading icon.bin...");
|
||||
Wii.U8.UnpackU8(TempTempPath + "meta\\icon.bin", TempIconPath);
|
||||
Directory.Delete(TempTempPath, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
bwIconReplace.ReportProgress(0, "Loading WAD...");
|
||||
Wii.WadUnpack.UnpackWad(thisFile, TempTempPath);
|
||||
if (Wii.U8.CheckU8(TempTempPath + "00000000.app") == false)
|
||||
throw new Exception("CustomizeMii only handles Channel WADs!");
|
||||
bwIconReplace.ReportProgress(30, "Loading 00000000.app...");
|
||||
Wii.U8.UnpackU8(TempTempPath + "00000000.app", TempTempPath + "00000000.app_OUT");
|
||||
bwIconReplace.ReportProgress(60, "Loading icon.bin...");
|
||||
Wii.U8.UnpackU8(TempTempPath + "00000000.app_OUT\\meta\\icon.bin", TempIconPath);
|
||||
Directory.Delete(TempTempPath, true);
|
||||
}
|
||||
|
||||
EventHandler AddBannerTpls = new EventHandler(this.AddBannerTpls);
|
||||
EventHandler AddIconTpls = new EventHandler(this.AddIconTpls);
|
||||
EventHandler AddBrlyts = new EventHandler(this.AddBrlyts);
|
||||
EventHandler AddBrlans = new EventHandler(this.AddBrlans);
|
||||
this.Invoke(AddBannerTpls);
|
||||
this.Invoke(AddIconTpls);
|
||||
this.Invoke(AddBrlyts);
|
||||
this.Invoke(AddBrlans);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (Directory.Exists(TempTempPath)) Directory.Delete(TempTempPath, true);
|
||||
if (Directory.Exists(TempIconPath)) Directory.Delete(TempIconPath, true);
|
||||
IconReplace = string.Empty;
|
||||
ErrorBox(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
void bwSoundReplace_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
pbProgress.Value = 100;
|
||||
lbStatusText.Text = string.Empty;
|
||||
SetText(tbReplace, SoundReplace);
|
||||
}
|
||||
|
||||
void bwSoundReplace_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
currentProgress.progressValue = e.ProgressPercentage;
|
||||
currentProgress.progressState = (string)e.UserState;
|
||||
|
||||
this.Invoke(ProgressUpdate);
|
||||
}
|
||||
|
||||
void bwSoundReplace_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
BackgroundWorker bwSoundReplace = sender as BackgroundWorker;
|
||||
string thisFile = (string)e.Argument;
|
||||
if (File.Exists(TempSoundPath)) File.Delete(TempSoundPath);
|
||||
if (Directory.Exists(TempTempPath)) Directory.Delete(TempTempPath, true);
|
||||
|
||||
if (thisFile.EndsWith(".bin"))
|
||||
{
|
||||
bwSoundReplace.ReportProgress(0, "Copying sound.bin...");
|
||||
File.Copy(thisFile, TempSoundPath);
|
||||
}
|
||||
else if (thisFile.EndsWith(".app"))
|
||||
{
|
||||
bwSoundReplace.ReportProgress(0, "Loading 00000000.app...");
|
||||
Wii.U8.UnpackU8(thisFile, TempTempPath);
|
||||
bwSoundReplace.ReportProgress(80, "Copying sound.bin...");
|
||||
File.Copy(TempTempPath + "meta\\sound.bin", TempSoundPath);
|
||||
Directory.Delete(TempTempPath, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
bwSoundReplace.ReportProgress(0, "Loading WAD...");
|
||||
Wii.WadUnpack.UnpackWad(thisFile, TempTempPath);
|
||||
if (Wii.U8.CheckU8(TempTempPath + "00000000.app") == false)
|
||||
throw new Exception("CustomizeMii only handles Channel WADs!");
|
||||
bwSoundReplace.ReportProgress(50, "Loading 00000000.app...");
|
||||
Wii.U8.UnpackU8(TempTempPath + "00000000.app", TempTempPath + "00000000.app_OUT");
|
||||
bwSoundReplace.ReportProgress(90, "Copying sound.bin...");
|
||||
File.Copy(TempTempPath + "00000000.app_OUT\\meta\\sound.bin", TempSoundPath);
|
||||
Directory.Delete(TempTempPath, true);
|
||||
}
|
||||
|
||||
SetText(tbSound, SoundReplace);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (Directory.Exists(TempTempPath)) Directory.Delete(TempTempPath, true);
|
||||
if (File.Exists(TempSoundPath)) File.Delete(TempSoundPath);
|
||||
SoundReplace = string.Empty;
|
||||
ErrorBox(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
void bwConvertToBns_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
if (File.Exists(TempBnsPath))
|
||||
{
|
||||
if (internalSound == true)
|
||||
SetText(tbSound, "BNS: Internal Sound");
|
||||
else
|
||||
SetText(tbSound, "BNS: " + Mp3Path);
|
||||
|
||||
btnBrowseSound.Text = "Clear";
|
||||
|
||||
if (!string.IsNullOrEmpty(SoundReplace))
|
||||
{
|
||||
SoundReplace = string.Empty;
|
||||
if (cmbReplace.SelectedIndex == 2) SetText(tbReplace, SoundReplace);
|
||||
if (File.Exists(TempSoundPath)) File.Delete(TempSoundPath);
|
||||
}
|
||||
}
|
||||
|
||||
if (File.Exists(TempWavePath)) File.Delete(TempWavePath);
|
||||
|
||||
lbStatusText.Text = string.Empty;
|
||||
Mp3Path = string.Empty;
|
||||
pbProgress.Value = 100;
|
||||
}
|
||||
|
||||
void bwConvertToBns_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
currentProgress.progressValue = e.ProgressPercentage;
|
||||
if (!string.IsNullOrEmpty((string)e.UserState)) currentProgress.progressState = (string)e.UserState;
|
||||
|
||||
this.Invoke(ProgressUpdate);
|
||||
}
|
||||
|
||||
void bns_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
currentProgress.progressValue = e.ProgressPercentage;
|
||||
|
||||
this.Invoke(ProgressUpdate);
|
||||
}
|
||||
|
||||
void bwConvertToBns_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
BackgroundWorker bwConvertToBns = sender as BackgroundWorker;
|
||||
BnsConversionInfo bnsInfo = (BnsConversionInfo)e.Argument;
|
||||
string audioFile;
|
||||
|
||||
if (bnsInfo.AudioFile == "Internal Sound")
|
||||
{ audioFile = TempWavePath; internalSound = true; }
|
||||
else
|
||||
audioFile = bnsInfo.AudioFile;
|
||||
Mp3Path = audioFile; //Rather audioPath...
|
||||
|
||||
bool mp3 = audioFile.EndsWith(".mp3");
|
||||
if (mp3 && bnsInfo.Loop == BnsConversionInfo.LoopType.FromWave) bnsInfo.Loop = BnsConversionInfo.LoopType.None;
|
||||
|
||||
if (mp3)
|
||||
{
|
||||
bwConvertToBns.ReportProgress(0, "Converting MP3...");
|
||||
|
||||
ProcessStartInfo lameI = new ProcessStartInfo(System.Windows.Forms.Application.StartupPath + "\\lame.exe",
|
||||
string.Format("--decode \"{0}\" \"{1}\"", audioFile, "C:\\cmtempmp3wav.wav")); //Gotta go this step, cause the TempWavePath is too long for lame.exe
|
||||
lameI.CreateNoWindow = true;
|
||||
lameI.UseShellExecute = false;
|
||||
lameI.RedirectStandardError = true;
|
||||
|
||||
Process lame = Process.Start(lameI);
|
||||
|
||||
string thisLine = string.Empty;
|
||||
while (lame.HasExited == false)
|
||||
{
|
||||
thisLine = lame.StandardError.ReadLine();
|
||||
if (!string.IsNullOrEmpty(thisLine))
|
||||
{
|
||||
if (thisLine.StartsWith("Frame#"))
|
||||
{
|
||||
string thisFrame = thisLine.Remove(thisLine.IndexOf('/'));
|
||||
thisFrame = thisFrame.Remove(0, thisFrame.LastIndexOf(' ') + 1);
|
||||
string Frames = thisLine.Remove(0, thisLine.IndexOf('/') + 1);
|
||||
Frames = Frames.Remove(Frames.IndexOf(' '));
|
||||
|
||||
int thisProgress = (int)((Convert.ToDouble(thisFrame) / Convert.ToDouble(Frames)) * 100);
|
||||
bwConvertToBns.ReportProgress(thisProgress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
lame.WaitForExit();
|
||||
lame.Close();
|
||||
|
||||
if (File.Exists("C:\\cmtempmp3wav.wav"))
|
||||
{
|
||||
FileInfo fi = new FileInfo("C:\\cmtempmp3wav.wav");
|
||||
fi.MoveTo(TempWavePath);
|
||||
}
|
||||
|
||||
if (!File.Exists(TempWavePath)) throw new Exception("Error converting MP3...");
|
||||
else audioFile = TempWavePath;
|
||||
}
|
||||
|
||||
bwConvertToBns.ReportProgress(0, "Converting To BNS...");
|
||||
|
||||
BNS_File bns = new BNS_File(audioFile, bnsInfo.Loop == BnsConversionInfo.LoopType.FromWave);
|
||||
bns.ProgressChanged += new EventHandler<ProgressChangedEventArgs>(bns_ProgressChanged);
|
||||
|
||||
bns.StereoToMono = bnsInfo.StereoToMono;
|
||||
bns.Convert();
|
||||
|
||||
if (bnsInfo.Loop == BnsConversionInfo.LoopType.Manual && bnsInfo.LoopStartSample > -1 && bnsInfo.LoopStartSample < bns.TotalSampleCount)
|
||||
bns.SetLoop(bnsInfo.LoopStartSample);
|
||||
|
||||
bns.Save(TempBnsPath);
|
||||
|
||||
if (File.Exists(TempWavePath))
|
||||
File.Delete(TempWavePath);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrorBox("Error during conversion:\n" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
void bwConvertMp3_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
if (File.Exists(TempWavePath))
|
||||
{
|
||||
SetText(tbSound, Mp3Path);
|
||||
|
||||
btnBrowseSound.Text = "Clear";
|
||||
|
||||
if (!string.IsNullOrEmpty(SoundReplace))
|
||||
{
|
||||
SoundReplace = string.Empty;
|
||||
if (cmbReplace.SelectedIndex == 2) SetText(tbReplace, SoundReplace);
|
||||
if (File.Exists(TempSoundPath)) File.Delete(TempSoundPath);
|
||||
}
|
||||
}
|
||||
|
||||
lbStatusText.Text = string.Empty;
|
||||
Mp3Path = string.Empty;
|
||||
pbProgress.Value = 100;
|
||||
}
|
||||
|
||||
void bwConvertMp3_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
currentProgress.progressValue = e.ProgressPercentage;
|
||||
|
||||
this.Invoke(ProgressUpdate);
|
||||
}
|
||||
|
||||
void bwConvertMp3_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
BackgroundWorker bwConvertMp3 = sender as BackgroundWorker;
|
||||
Mp3Path = (string)e.Argument;
|
||||
ProcessStartInfo lameI = new ProcessStartInfo(System.Windows.Forms.Application.StartupPath + "\\lame.exe",
|
||||
string.Format("--decode \"{0}\" \"{1}\"", e.Argument, "C:\\cmtempmp3wav.wav")); //Gotta go this step, cause the TempWavePath is too long for lame.exe
|
||||
lameI.CreateNoWindow = true;
|
||||
lameI.UseShellExecute = false;
|
||||
lameI.RedirectStandardError = true;
|
||||
|
||||
Process lame = Process.Start(lameI);
|
||||
|
||||
string thisLine = string.Empty;
|
||||
while (lame.HasExited == false)
|
||||
{
|
||||
thisLine = lame.StandardError.ReadLine();
|
||||
if (!string.IsNullOrEmpty(thisLine))
|
||||
{
|
||||
if (thisLine.StartsWith("Frame#"))
|
||||
{
|
||||
string thisFrame = thisLine.Remove(thisLine.IndexOf('/'));
|
||||
thisFrame = thisFrame.Remove(0, thisFrame.LastIndexOf(' ') + 1);
|
||||
string Frames = thisLine.Remove(0, thisLine.IndexOf('/') + 1);
|
||||
Frames = Frames.Remove(Frames.IndexOf(' '));
|
||||
|
||||
int thisProgress = (int)((Convert.ToDouble(thisFrame) / Convert.ToDouble(Frames)) * 100);
|
||||
bwConvertMp3.ReportProgress(thisProgress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
lame.WaitForExit();
|
||||
lame.Close();
|
||||
|
||||
if (File.Exists("C:\\cmtempmp3wav.wav"))
|
||||
{
|
||||
FileInfo fi = new FileInfo("C:\\cmtempmp3wav.wav");
|
||||
fi.MoveTo(TempWavePath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (File.Exists(TempWavePath)) File.Delete(TempWavePath);
|
||||
Mp3Path = string.Empty;
|
||||
ErrorBox("Error during conversion:\n" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
void bwLoadChannel_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
pbProgress.Value = 100;
|
||||
lbStatusText.Text = string.Empty;
|
||||
}
|
||||
|
||||
void bwLoadChannel_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
currentProgress.progressValue = e.ProgressPercentage;
|
||||
currentProgress.progressState = (string)e.UserState;
|
||||
|
||||
this.Invoke(ProgressUpdate);
|
||||
}
|
||||
|
||||
void bwLoadChannel_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
BackgroundWorker bwLoadChannel = sender as BackgroundWorker;
|
||||
EventHandler SetSourceWad = new EventHandler(this.SetSourceWad);
|
||||
byte[] WadFile = Wii.Tools.LoadFileToByteArray((string)e.Argument);
|
||||
bool hashesMatch = true;
|
||||
|
||||
if (Directory.Exists(TempUnpackPath)) Directory.Delete(TempUnpackPath, true);
|
||||
|
||||
bwLoadChannel.ReportProgress(0, "Loading WAD...");
|
||||
Wii.WadUnpack.UnpackWad(WadFile, TempUnpackPath, out hashesMatch);
|
||||
if (Wii.U8.CheckU8(TempUnpackPath + "00000000.app") == false)
|
||||
throw new Exception("CustomizeMii only edits Channel WADs!");
|
||||
|
||||
this.Invoke(SetSourceWad);
|
||||
|
||||
bwLoadChannel.ReportProgress(25, "Loading 00000000.app...");
|
||||
Wii.U8.UnpackU8(TempUnpackPath + "00000000.app", TempUnpackPath + "00000000.app_OUT");
|
||||
|
||||
bwLoadChannel.ReportProgress(50, "Loading banner.bin...");
|
||||
Wii.U8.UnpackU8(TempUnpackPath + "00000000.app_OUT\\meta\\banner.bin", TempUnpackPath + "00000000.app_OUT\\meta\\banner.bin_OUT");
|
||||
|
||||
bwLoadChannel.ReportProgress(75, "Loading icon.bin...");
|
||||
Wii.U8.UnpackU8(TempUnpackPath + "00000000.app_OUT\\meta\\icon.bin", TempUnpackPath + "00000000.app_OUT\\meta\\icon.bin_OUT");
|
||||
|
||||
bwLoadChannel.ReportProgress(90, "Gathering Information...");
|
||||
string[] ChannelTitles = Wii.WadInfo.GetChannelTitles(WadFile);
|
||||
string TitleID = Wii.WadInfo.GetTitleID(WadFile, 1);
|
||||
|
||||
SetText(tbAllLanguages, ChannelTitles[1]);
|
||||
|
||||
if (ChannelTitles[0] != ChannelTitles[1])
|
||||
SetText(tbJapanese, ChannelTitles[0]);
|
||||
if (ChannelTitles[2] != ChannelTitles[1])
|
||||
SetText(tbGerman, ChannelTitles[2]);
|
||||
if (ChannelTitles[3] != ChannelTitles[1])
|
||||
SetText(tbFrench, ChannelTitles[3]);
|
||||
if (ChannelTitles[4] != ChannelTitles[1])
|
||||
SetText(tbSpanish, ChannelTitles[4]);
|
||||
if (ChannelTitles[5] != ChannelTitles[1])
|
||||
SetText(tbItalian, ChannelTitles[5]);
|
||||
if (ChannelTitles[6] != ChannelTitles[1])
|
||||
SetText(tbDutch, ChannelTitles[6]);
|
||||
|
||||
SetText(tbTitleID, TitleID);
|
||||
|
||||
EventHandler AddBannerTpls = new EventHandler(this.AddBannerTpls);
|
||||
EventHandler AddIconTpls = new EventHandler(this.AddIconTpls);
|
||||
EventHandler AddBrlyts = new EventHandler(this.AddBrlyts);
|
||||
EventHandler AddBrlans = new EventHandler(this.AddBrlans);
|
||||
this.Invoke(AddBannerTpls);
|
||||
this.Invoke(AddIconTpls);
|
||||
this.Invoke(AddBrlyts);
|
||||
this.Invoke(AddBrlans);
|
||||
|
||||
bwLoadChannel.ReportProgress(100);
|
||||
EventHandler EnableCtrls = new EventHandler(this.EnableControls);
|
||||
this.Invoke(EnableCtrls);
|
||||
|
||||
if (!hashesMatch)
|
||||
System.Windows.Forms.MessageBox.Show("At least one content's hash doesn't match the hash in the TMD!\n" +
|
||||
"Some files of the WAD might be corrupted, thus it might brick your Wii!", "Warning",
|
||||
System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (Directory.Exists(TempUnpackPath)) Directory.Delete(TempUnpackPath, true);
|
||||
SourceWad = string.Empty;
|
||||
SetText(tbSourceWad, string.Empty);
|
||||
ErrorBox(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
void bwCreateWad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
EventHandler EnableControls = new EventHandler(this.EnableControls);
|
||||
EventHandler Initialize = new EventHandler(this.Initialize);
|
||||
pbProgress.Value = 100;
|
||||
lbStatusText.Text = string.Empty;
|
||||
this.Invoke(EnableControls);
|
||||
this.Invoke(Initialize);
|
||||
}
|
||||
|
||||
void bwCreateWad_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
currentProgress.progressValue = e.ProgressPercentage;
|
||||
currentProgress.progressState = (string)e.UserState;
|
||||
|
||||
this.Invoke(ProgressUpdate);
|
||||
}
|
||||
|
||||
void bwCreateWad_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
BackgroundWorker bwCreateWad = sender as BackgroundWorker;
|
||||
WadCreationInfo wadInfo = (WadCreationInfo)e.Argument;
|
||||
EventHandler DisableControls = new EventHandler(this.DisableControls);
|
||||
this.Invoke(DisableControls);
|
||||
|
||||
this.sendToWii = wadInfo.sendToWii;
|
||||
sendWadReady = 0;
|
||||
|
||||
bwCreateWad.ReportProgress(0, "Making TPLs transparent");
|
||||
MakeBannerTplsTransparent();
|
||||
MakeIconTplsTransparent();
|
||||
|
||||
bwCreateWad.ReportProgress(5, "Packing icon.bin...");
|
||||
byte[] iconbin;
|
||||
|
||||
if (!string.IsNullOrEmpty(IconReplace))
|
||||
iconbin = Wii.U8.PackU8(TempIconPath);
|
||||
else
|
||||
iconbin = Wii.U8.PackU8(TempUnpackPath + "00000000.app_OUT\\meta\\icon.bin_OUT");
|
||||
|
||||
if (cbLz77.Checked == true) iconbin = Wii.Lz77.Compress(iconbin);
|
||||
iconbin = Wii.U8.AddHeaderIMD5(iconbin);
|
||||
Wii.Tools.SaveFileFromByteArray(iconbin, TempUnpackPath + "00000000.app_OUT\\meta\\icon.bin");
|
||||
Directory.Delete(TempUnpackPath + "00000000.app_OUT\\meta\\icon.bin_OUT", true);
|
||||
|
||||
bwCreateWad.ReportProgress(25, "Packing banner.bin...");
|
||||
byte[] bannerbin;
|
||||
|
||||
if (!string.IsNullOrEmpty(BannerReplace))
|
||||
bannerbin = Wii.U8.PackU8(TempBannerPath);
|
||||
else
|
||||
bannerbin = Wii.U8.PackU8(TempUnpackPath + "00000000.app_OUT\\meta\\banner.bin_OUT");
|
||||
|
||||
if (cbLz77.Checked == true) bannerbin = Wii.Lz77.Compress(bannerbin);
|
||||
bannerbin = Wii.U8.AddHeaderIMD5(bannerbin);
|
||||
Wii.Tools.SaveFileFromByteArray(bannerbin, TempUnpackPath + "00000000.app_OUT\\meta\\banner.bin");
|
||||
Directory.Delete(TempUnpackPath + "00000000.app_OUT\\meta\\banner.bin_OUT", true);
|
||||
|
||||
if (!string.IsNullOrEmpty(SoundReplace) || !string.IsNullOrEmpty(tbSound.Text))
|
||||
{
|
||||
bwCreateWad.ReportProgress(50, "Packing sound.bin...");
|
||||
|
||||
if (!string.IsNullOrEmpty(SoundReplace))
|
||||
{
|
||||
File.Delete(TempUnpackPath + "00000000.app_OUT\\meta\\sound.bin");
|
||||
File.Copy(TempSoundPath, TempUnpackPath + "00000000.app_OUT\\meta\\sound.bin");
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(tbSound.Text))
|
||||
{
|
||||
if (tbSound.Text.EndsWith(".bns"))
|
||||
{
|
||||
Wii.Sound.BnsToSoundBin(tbSound.Text, TempUnpackPath + "00000000.app_OUT\\meta\\sound.bin", false);
|
||||
}
|
||||
else if (tbSound.Text.StartsWith("BNS:"))
|
||||
{
|
||||
Wii.Sound.BnsToSoundBin(TempBnsPath, TempUnpackPath + "00000000.app_OUT\\meta\\sound.bin", false);
|
||||
}
|
||||
else
|
||||
{
|
||||
string SoundFile = tbSound.Text;
|
||||
if (tbSound.Text.EndsWith(".mp3")) SoundFile = TempWavePath;
|
||||
|
||||
Wii.Sound.WaveToSoundBin(SoundFile, TempUnpackPath + "00000000.app_OUT\\meta\\sound.bin", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bwCreateWad.ReportProgress(60, "Packing 00000000.app...");
|
||||
int[] Sizes = new int[3];
|
||||
string[] Titles = new string[] { tbJapanese.Text, tbEnglish.Text, tbGerman.Text, tbFrench.Text, tbSpanish.Text, tbItalian.Text, tbDutch.Text };
|
||||
|
||||
for (int i = 0; i < Titles.Length; i++)
|
||||
if (string.IsNullOrEmpty(Titles[i])) Titles[i] = tbAllLanguages.Text;
|
||||
|
||||
byte[] nullapp = Wii.U8.PackU8(TempUnpackPath + "00000000.app_OUT", out Sizes[0], out Sizes[1], out Sizes[2]);
|
||||
nullapp = Wii.U8.AddHeaderIMET(nullapp, Titles, Sizes);
|
||||
Wii.Tools.SaveFileFromByteArray(nullapp, TempUnpackPath + "00000000.app");
|
||||
Directory.Delete(TempUnpackPath + "00000000.app_OUT", true);
|
||||
|
||||
string[] tikfile = Directory.GetFiles(TempUnpackPath, "*.tik");
|
||||
string[] tmdfile = Directory.GetFiles(TempUnpackPath, "*.tmd");
|
||||
byte[] tmd = Wii.Tools.LoadFileToByteArray(tmdfile[0]);
|
||||
|
||||
if (!string.IsNullOrEmpty(tbDol.Text))
|
||||
{
|
||||
bwCreateWad.ReportProgress(80, "Inserting new DOL...");
|
||||
string[] AppFiles = Directory.GetFiles(TempUnpackPath, "*.app");
|
||||
|
||||
foreach (string thisApp in AppFiles)
|
||||
if (!thisApp.EndsWith("00000000.app")) File.Delete(thisApp);
|
||||
|
||||
if (wadInfo.nandLoader == 0)
|
||||
{
|
||||
using (BinaryReader nandloader = new BinaryReader(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("CustomizeMii.Resources.comex.app")))
|
||||
{
|
||||
using (FileStream fs = new FileStream(TempUnpackPath + "\\00000001.app", FileMode.Create))
|
||||
{
|
||||
byte[] temp = nandloader.ReadBytes((int)nandloader.BaseStream.Length);
|
||||
fs.Write(temp, 0, temp.Length);
|
||||
}
|
||||
}
|
||||
|
||||
if (tbDol.Text.StartsWith("Simple Forwarder:"))
|
||||
{
|
||||
CreateForwarderSimple(TempUnpackPath + "\\00000002.app");
|
||||
}
|
||||
else if (tbDol.Text.StartsWith("Complex Forwarder:"))
|
||||
{
|
||||
bwCreateWad.ReportProgress(82, "Compiling Forwarder...");
|
||||
CreateForwarderComplex(TempUnpackPath + "\\00000002.app");
|
||||
}
|
||||
else if (tbDol.Text == "Internal" || tbDol.Text.EndsWith(".wad"))
|
||||
{
|
||||
File.Copy(TempDolPath, TempUnpackPath + "\\00000002.app");
|
||||
}
|
||||
else
|
||||
{
|
||||
File.Copy(tbDol.Text, TempUnpackPath + "\\00000002.app");
|
||||
}
|
||||
|
||||
tmd = Wii.WadEdit.ChangeTmdBootIndex(tmd, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
using (BinaryReader nandloader = new BinaryReader(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("CustomizeMii.Resources.Waninkoko.app")))
|
||||
{
|
||||
using (FileStream fs = new FileStream(TempUnpackPath + "\\00000002.app", FileMode.Create))
|
||||
{
|
||||
byte[] temp = nandloader.ReadBytes((int)nandloader.BaseStream.Length);
|
||||
fs.Write(temp, 0, temp.Length);
|
||||
}
|
||||
}
|
||||
|
||||
if (tbDol.Text.StartsWith("Simple Forwarder:"))
|
||||
{
|
||||
CreateForwarderSimple(TempUnpackPath + "\\00000001.app");
|
||||
}
|
||||
else if (tbDol.Text.StartsWith("Complex Forwarder:"))
|
||||
{
|
||||
bwCreateWad.ReportProgress(82, "Compiling Forwarder...");
|
||||
CreateForwarderComplex(TempUnpackPath + "\\00000001.app");
|
||||
}
|
||||
else if (tbDol.Text == "Internal")
|
||||
{
|
||||
File.Copy(TempDolPath, TempUnpackPath + "\\00000001.app");
|
||||
}
|
||||
else
|
||||
{
|
||||
File.Copy(tbDol.Text, TempUnpackPath + "\\00000001.app");
|
||||
}
|
||||
|
||||
tmd = Wii.WadEdit.ChangeTmdBootIndex(tmd, 2);
|
||||
}
|
||||
|
||||
tmd = Wii.WadEdit.ChangeTmdContentCount(tmd, 3);
|
||||
|
||||
bwCreateWad.ReportProgress(85, "Updating TMD...");
|
||||
File.Delete(tmdfile[0]);
|
||||
using (FileStream fs = new FileStream(tmdfile[0], FileMode.Create))
|
||||
{
|
||||
byte[] tmdconts = new byte[108];
|
||||
tmdconts[7] = 0x01;
|
||||
tmdconts[39] = 0x01;
|
||||
tmdconts[41] = 0x01;
|
||||
tmdconts[43] = 0x01;
|
||||
tmdconts[75] = 0x02;
|
||||
tmdconts[77] = 0x02;
|
||||
tmdconts[79] = 0x01;
|
||||
|
||||
fs.Write(tmd, 0, 484);
|
||||
fs.Write(tmdconts, 0, tmdconts.Length);
|
||||
}
|
||||
}
|
||||
|
||||
bwCreateWad.ReportProgress(85, "Updating TMD...");
|
||||
Wii.WadEdit.UpdateTmdContents(tmdfile[0]);
|
||||
|
||||
Wii.WadEdit.ChangeTitleID(tikfile[0], 0, tbTitleID.Text.ToUpper());
|
||||
Wii.WadEdit.ChangeTitleID(tmdfile[0], 1, tbTitleID.Text.ToUpper());
|
||||
|
||||
bwCreateWad.ReportProgress(90, "Trucha Signing...");
|
||||
Wii.WadEdit.TruchaSign(tmdfile[0], 1);
|
||||
Wii.WadEdit.TruchaSign(tikfile[0], 0);
|
||||
|
||||
bwCreateWad.ReportProgress(95, "Packing WAD...");
|
||||
if (File.Exists(wadInfo.outFile)) File.Delete(wadInfo.outFile);
|
||||
Wii.WadPack.PackWad(TempUnpackPath, wadInfo.outFile, false);
|
||||
|
||||
bwCreateWad.ReportProgress(100, " ");
|
||||
CreationTimer.Stop();
|
||||
|
||||
if (!sendToWii)
|
||||
{
|
||||
FileInfo fi = new FileInfo(wadInfo.outFile);
|
||||
double fileSize = Math.Round(fi.Length * 0.0009765625 * 0.0009765625, 2);
|
||||
|
||||
|
||||
InfoBox(string.Format("Successfully created custom channel!\nTime elapsed: {0} ms\nFilesize: {1} MB\nApprox. Blocks: {2}", CreationTimer.ElapsedMilliseconds, fileSize, Wii.WadInfo.GetNandBlocks(wadInfo.outFile)));
|
||||
}
|
||||
else sendWadReady = 1;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
sendWadReady = -1;
|
||||
CreationTimer.Stop();
|
||||
EventHandler EnableControls = new EventHandler(this.EnableControls);
|
||||
this.Invoke(EnableControls);
|
||||
ErrorBox(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
391
CustomizeMii/CustomizeMii_BnsConvert.Designer.cs
generated
391
CustomizeMii/CustomizeMii_BnsConvert.Designer.cs
generated
@ -1,391 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
partial class CustomizeMii_BnsConvert
|
||||
{
|
||||
/// <summary>
|
||||
/// Erforderliche Designervariable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Verwendete Ressourcen bereinigen.
|
||||
/// </summary>
|
||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Vom Windows Form-Designer generierter Code
|
||||
|
||||
/// <summary>
|
||||
/// Erforderliche Methode für die Designerunterstützung.
|
||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.btnConvert = new System.Windows.Forms.Button();
|
||||
this.lbAudioFile = new System.Windows.Forms.Label();
|
||||
this.tbAudioFile = new System.Windows.Forms.TextBox();
|
||||
this.btnBrowseAudioFile = new System.Windows.Forms.Button();
|
||||
this.gbLoop = new System.Windows.Forms.GroupBox();
|
||||
this.tbLoopStart = new System.Windows.Forms.TextBox();
|
||||
this.rbEnterManually = new System.Windows.Forms.RadioButton();
|
||||
this.rbFromAudioFile = new System.Windows.Forms.RadioButton();
|
||||
this.rbNone = new System.Windows.Forms.RadioButton();
|
||||
this.gbWaveInfo = new System.Windows.Forms.GroupBox();
|
||||
this.lbStatusValue = new System.Windows.Forms.Label();
|
||||
this.lbLoopStartValue = new System.Windows.Forms.Label();
|
||||
this.lbLoopCountValue = new System.Windows.Forms.Label();
|
||||
this.lbFormatValue = new System.Windows.Forms.Label();
|
||||
this.lbChannelCountValue = new System.Windows.Forms.Label();
|
||||
this.lbSamplerateValue = new System.Windows.Forms.Label();
|
||||
this.lbBitdepthValue = new System.Windows.Forms.Label();
|
||||
this.lbStatus = new System.Windows.Forms.Label();
|
||||
this.lbLoopStart = new System.Windows.Forms.Label();
|
||||
this.lbLoopCount = new System.Windows.Forms.Label();
|
||||
this.lbFormat = new System.Windows.Forms.Label();
|
||||
this.lbChannelCount = new System.Windows.Forms.Label();
|
||||
this.lbSamplerate = new System.Windows.Forms.Label();
|
||||
this.lbBitdepth = new System.Windows.Forms.Label();
|
||||
this.cbSourceSound = new System.Windows.Forms.CheckBox();
|
||||
this.gbLoop.SuspendLayout();
|
||||
this.gbWaveInfo.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnCancel.Location = new System.Drawing.Point(186, 179);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(160, 23);
|
||||
this.btnCancel.TabIndex = 10;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// btnConvert
|
||||
//
|
||||
this.btnConvert.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnConvert.Location = new System.Drawing.Point(15, 179);
|
||||
this.btnConvert.Name = "btnConvert";
|
||||
this.btnConvert.Size = new System.Drawing.Size(160, 23);
|
||||
this.btnConvert.TabIndex = 9;
|
||||
this.btnConvert.Text = "Convert";
|
||||
this.btnConvert.UseVisualStyleBackColor = true;
|
||||
this.btnConvert.Click += new System.EventHandler(this.btnConvert_Click);
|
||||
//
|
||||
// lbAudioFile
|
||||
//
|
||||
this.lbAudioFile.AutoSize = true;
|
||||
this.lbAudioFile.Location = new System.Drawing.Point(12, 24);
|
||||
this.lbAudioFile.Name = "lbAudioFile";
|
||||
this.lbAudioFile.Size = new System.Drawing.Size(56, 13);
|
||||
this.lbAudioFile.TabIndex = 11;
|
||||
this.lbAudioFile.Text = "Audio File:";
|
||||
//
|
||||
// tbAudioFile
|
||||
//
|
||||
this.tbAudioFile.Location = new System.Drawing.Point(74, 21);
|
||||
this.tbAudioFile.Name = "tbAudioFile";
|
||||
this.tbAudioFile.ReadOnly = true;
|
||||
this.tbAudioFile.Size = new System.Drawing.Size(191, 20);
|
||||
this.tbAudioFile.TabIndex = 12;
|
||||
//
|
||||
// btnBrowseAudioFile
|
||||
//
|
||||
this.btnBrowseAudioFile.Location = new System.Drawing.Point(271, 20);
|
||||
this.btnBrowseAudioFile.Name = "btnBrowseAudioFile";
|
||||
this.btnBrowseAudioFile.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnBrowseAudioFile.TabIndex = 13;
|
||||
this.btnBrowseAudioFile.Text = "Browse...";
|
||||
this.btnBrowseAudioFile.UseVisualStyleBackColor = true;
|
||||
this.btnBrowseAudioFile.Click += new System.EventHandler(this.btnBrowseAudioFile_Click);
|
||||
//
|
||||
// gbLoop
|
||||
//
|
||||
this.gbLoop.Controls.Add(this.tbLoopStart);
|
||||
this.gbLoop.Controls.Add(this.rbEnterManually);
|
||||
this.gbLoop.Controls.Add(this.rbFromAudioFile);
|
||||
this.gbLoop.Controls.Add(this.rbNone);
|
||||
this.gbLoop.Location = new System.Drawing.Point(15, 72);
|
||||
this.gbLoop.Name = "gbLoop";
|
||||
this.gbLoop.Size = new System.Drawing.Size(331, 94);
|
||||
this.gbLoop.TabIndex = 14;
|
||||
this.gbLoop.TabStop = false;
|
||||
this.gbLoop.Text = "Loop";
|
||||
//
|
||||
// tbLoopStart
|
||||
//
|
||||
this.tbLoopStart.Enabled = false;
|
||||
this.tbLoopStart.Location = new System.Drawing.Point(227, 64);
|
||||
this.tbLoopStart.Name = "tbLoopStart";
|
||||
this.tbLoopStart.Size = new System.Drawing.Size(60, 20);
|
||||
this.tbLoopStart.TabIndex = 1;
|
||||
this.tbLoopStart.Text = "0";
|
||||
//
|
||||
// rbEnterManually
|
||||
//
|
||||
this.rbEnterManually.AutoSize = true;
|
||||
this.rbEnterManually.Location = new System.Drawing.Point(6, 65);
|
||||
this.rbEnterManually.Name = "rbEnterManually";
|
||||
this.rbEnterManually.Size = new System.Drawing.Size(215, 17);
|
||||
this.rbEnterManually.TabIndex = 0;
|
||||
this.rbEnterManually.Text = "Enter Manually Loop Start Sample:";
|
||||
this.rbEnterManually.UseVisualStyleBackColor = true;
|
||||
this.rbEnterManually.CheckedChanged += new System.EventHandler(this.rbSelectionChanged);
|
||||
//
|
||||
// rbFromAudioFile
|
||||
//
|
||||
this.rbFromAudioFile.AutoSize = true;
|
||||
this.rbFromAudioFile.Location = new System.Drawing.Point(6, 42);
|
||||
this.rbFromAudioFile.Name = "rbFromAudioFile";
|
||||
this.rbFromAudioFile.Size = new System.Drawing.Size(281, 17);
|
||||
this.rbFromAudioFile.TabIndex = 0;
|
||||
this.rbFromAudioFile.Text = "From Audio File (works only with pre-looped wave files)";
|
||||
this.rbFromAudioFile.UseVisualStyleBackColor = true;
|
||||
this.rbFromAudioFile.CheckedChanged += new System.EventHandler(this.rbSelectionChanged);
|
||||
//
|
||||
// rbNone
|
||||
//
|
||||
this.rbNone.AutoSize = true;
|
||||
this.rbNone.Checked = true;
|
||||
this.rbNone.Location = new System.Drawing.Point(6, 19);
|
||||
this.rbNone.Name = "rbNone";
|
||||
this.rbNone.Size = new System.Drawing.Size(51, 17);
|
||||
this.rbNone.TabIndex = 0;
|
||||
this.rbNone.TabStop = true;
|
||||
this.rbNone.Text = "None";
|
||||
this.rbNone.UseVisualStyleBackColor = true;
|
||||
this.rbNone.CheckedChanged += new System.EventHandler(this.rbSelectionChanged);
|
||||
//
|
||||
// gbWaveInfo
|
||||
//
|
||||
this.gbWaveInfo.Controls.Add(this.lbStatusValue);
|
||||
this.gbWaveInfo.Controls.Add(this.lbLoopStartValue);
|
||||
this.gbWaveInfo.Controls.Add(this.lbLoopCountValue);
|
||||
this.gbWaveInfo.Controls.Add(this.lbFormatValue);
|
||||
this.gbWaveInfo.Controls.Add(this.lbChannelCountValue);
|
||||
this.gbWaveInfo.Controls.Add(this.lbSamplerateValue);
|
||||
this.gbWaveInfo.Controls.Add(this.lbBitdepthValue);
|
||||
this.gbWaveInfo.Controls.Add(this.lbStatus);
|
||||
this.gbWaveInfo.Controls.Add(this.lbLoopStart);
|
||||
this.gbWaveInfo.Controls.Add(this.lbLoopCount);
|
||||
this.gbWaveInfo.Controls.Add(this.lbFormat);
|
||||
this.gbWaveInfo.Controls.Add(this.lbChannelCount);
|
||||
this.gbWaveInfo.Controls.Add(this.lbSamplerate);
|
||||
this.gbWaveInfo.Controls.Add(this.lbBitdepth);
|
||||
this.gbWaveInfo.Location = new System.Drawing.Point(363, 20);
|
||||
this.gbWaveInfo.Name = "gbWaveInfo";
|
||||
this.gbWaveInfo.Size = new System.Drawing.Size(135, 182);
|
||||
this.gbWaveInfo.TabIndex = 15;
|
||||
this.gbWaveInfo.TabStop = false;
|
||||
this.gbWaveInfo.Text = "Wave Info";
|
||||
//
|
||||
// lbStatusValue
|
||||
//
|
||||
this.lbStatusValue.Location = new System.Drawing.Point(75, 151);
|
||||
this.lbStatusValue.Name = "lbStatusValue";
|
||||
this.lbStatusValue.Size = new System.Drawing.Size(54, 13);
|
||||
this.lbStatusValue.TabIndex = 7;
|
||||
//
|
||||
// lbLoopStartValue
|
||||
//
|
||||
this.lbLoopStartValue.Location = new System.Drawing.Point(75, 130);
|
||||
this.lbLoopStartValue.Name = "lbLoopStartValue";
|
||||
this.lbLoopStartValue.Size = new System.Drawing.Size(54, 13);
|
||||
this.lbLoopStartValue.TabIndex = 7;
|
||||
//
|
||||
// lbLoopCountValue
|
||||
//
|
||||
this.lbLoopCountValue.Location = new System.Drawing.Point(75, 109);
|
||||
this.lbLoopCountValue.Name = "lbLoopCountValue";
|
||||
this.lbLoopCountValue.Size = new System.Drawing.Size(54, 13);
|
||||
this.lbLoopCountValue.TabIndex = 7;
|
||||
//
|
||||
// lbFormatValue
|
||||
//
|
||||
this.lbFormatValue.Location = new System.Drawing.Point(75, 88);
|
||||
this.lbFormatValue.Name = "lbFormatValue";
|
||||
this.lbFormatValue.Size = new System.Drawing.Size(54, 13);
|
||||
this.lbFormatValue.TabIndex = 7;
|
||||
//
|
||||
// lbChannelCountValue
|
||||
//
|
||||
this.lbChannelCountValue.Location = new System.Drawing.Point(75, 67);
|
||||
this.lbChannelCountValue.Name = "lbChannelCountValue";
|
||||
this.lbChannelCountValue.Size = new System.Drawing.Size(54, 13);
|
||||
this.lbChannelCountValue.TabIndex = 7;
|
||||
//
|
||||
// lbSamplerateValue
|
||||
//
|
||||
this.lbSamplerateValue.Location = new System.Drawing.Point(75, 46);
|
||||
this.lbSamplerateValue.Name = "lbSamplerateValue";
|
||||
this.lbSamplerateValue.Size = new System.Drawing.Size(54, 13);
|
||||
this.lbSamplerateValue.TabIndex = 7;
|
||||
//
|
||||
// lbBitdepthValue
|
||||
//
|
||||
this.lbBitdepthValue.Location = new System.Drawing.Point(75, 25);
|
||||
this.lbBitdepthValue.Name = "lbBitdepthValue";
|
||||
this.lbBitdepthValue.Size = new System.Drawing.Size(54, 13);
|
||||
this.lbBitdepthValue.TabIndex = 7;
|
||||
//
|
||||
// lbStatus
|
||||
//
|
||||
this.lbStatus.AutoSize = true;
|
||||
this.lbStatus.Location = new System.Drawing.Point(6, 151);
|
||||
this.lbStatus.Name = "lbStatus";
|
||||
this.lbStatus.Size = new System.Drawing.Size(40, 13);
|
||||
this.lbStatus.TabIndex = 6;
|
||||
this.lbStatus.Text = "Status:";
|
||||
//
|
||||
// lbLoopStart
|
||||
//
|
||||
this.lbLoopStart.AutoSize = true;
|
||||
this.lbLoopStart.Location = new System.Drawing.Point(6, 130);
|
||||
this.lbLoopStart.Name = "lbLoopStart";
|
||||
this.lbLoopStart.Size = new System.Drawing.Size(59, 13);
|
||||
this.lbLoopStart.TabIndex = 5;
|
||||
this.lbLoopStart.Text = "Loop Start:";
|
||||
//
|
||||
// lbLoopCount
|
||||
//
|
||||
this.lbLoopCount.AutoSize = true;
|
||||
this.lbLoopCount.Location = new System.Drawing.Point(6, 109);
|
||||
this.lbLoopCount.Name = "lbLoopCount";
|
||||
this.lbLoopCount.Size = new System.Drawing.Size(39, 13);
|
||||
this.lbLoopCount.TabIndex = 4;
|
||||
this.lbLoopCount.Text = "Loops:";
|
||||
//
|
||||
// lbFormat
|
||||
//
|
||||
this.lbFormat.AutoSize = true;
|
||||
this.lbFormat.Location = new System.Drawing.Point(6, 88);
|
||||
this.lbFormat.Name = "lbFormat";
|
||||
this.lbFormat.Size = new System.Drawing.Size(42, 13);
|
||||
this.lbFormat.TabIndex = 3;
|
||||
this.lbFormat.Text = "Format:";
|
||||
//
|
||||
// lbChannelCount
|
||||
//
|
||||
this.lbChannelCount.AutoSize = true;
|
||||
this.lbChannelCount.Location = new System.Drawing.Point(6, 67);
|
||||
this.lbChannelCount.Name = "lbChannelCount";
|
||||
this.lbChannelCount.Size = new System.Drawing.Size(54, 13);
|
||||
this.lbChannelCount.TabIndex = 2;
|
||||
this.lbChannelCount.Text = "Channels:";
|
||||
//
|
||||
// lbSamplerate
|
||||
//
|
||||
this.lbSamplerate.AutoSize = true;
|
||||
this.lbSamplerate.Location = new System.Drawing.Point(6, 46);
|
||||
this.lbSamplerate.Name = "lbSamplerate";
|
||||
this.lbSamplerate.Size = new System.Drawing.Size(63, 13);
|
||||
this.lbSamplerate.TabIndex = 1;
|
||||
this.lbSamplerate.Text = "Samplerate:";
|
||||
//
|
||||
// lbBitdepth
|
||||
//
|
||||
this.lbBitdepth.AutoSize = true;
|
||||
this.lbBitdepth.Location = new System.Drawing.Point(6, 25);
|
||||
this.lbBitdepth.Name = "lbBitdepth";
|
||||
this.lbBitdepth.Size = new System.Drawing.Size(49, 13);
|
||||
this.lbBitdepth.TabIndex = 0;
|
||||
this.lbBitdepth.Text = "Bitdepth:";
|
||||
//
|
||||
// cbSourceSound
|
||||
//
|
||||
this.cbSourceSound.AutoSize = true;
|
||||
this.cbSourceSound.Enabled = false;
|
||||
this.cbSourceSound.Location = new System.Drawing.Point(15, 50);
|
||||
this.cbSourceSound.Name = "cbSourceSound";
|
||||
this.cbSourceSound.Size = new System.Drawing.Size(170, 17);
|
||||
this.cbSourceSound.TabIndex = 16;
|
||||
this.cbSourceSound.Text = "Take sound from source WAD";
|
||||
this.cbSourceSound.UseVisualStyleBackColor = true;
|
||||
this.cbSourceSound.CheckedChanged += new System.EventHandler(this.cbSourceSound_CheckedChanged);
|
||||
//
|
||||
// CustomizeMii_BnsConvert
|
||||
//
|
||||
this.AcceptButton = this.btnConvert;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.btnCancel;
|
||||
this.ClientSize = new System.Drawing.Size(510, 220);
|
||||
this.Controls.Add(this.cbSourceSound);
|
||||
this.Controls.Add(this.gbWaveInfo);
|
||||
this.Controls.Add(this.gbLoop);
|
||||
this.Controls.Add(this.btnBrowseAudioFile);
|
||||
this.Controls.Add(this.tbAudioFile);
|
||||
this.Controls.Add(this.lbAudioFile);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnConvert);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "CustomizeMii_BnsConvert";
|
||||
this.Text = "CustomizeMii_BnsConvert";
|
||||
this.Load += new System.EventHandler(this.CustomizeMii_BnsConvert_Load);
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.CustomizeMii_BnsConvert_FormClosing);
|
||||
this.gbLoop.ResumeLayout(false);
|
||||
this.gbLoop.PerformLayout();
|
||||
this.gbWaveInfo.ResumeLayout(false);
|
||||
this.gbWaveInfo.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.Button btnConvert;
|
||||
private System.Windows.Forms.Label lbAudioFile;
|
||||
private System.Windows.Forms.TextBox tbAudioFile;
|
||||
private System.Windows.Forms.Button btnBrowseAudioFile;
|
||||
private System.Windows.Forms.GroupBox gbLoop;
|
||||
private System.Windows.Forms.RadioButton rbNone;
|
||||
private System.Windows.Forms.RadioButton rbEnterManually;
|
||||
private System.Windows.Forms.RadioButton rbFromAudioFile;
|
||||
private System.Windows.Forms.TextBox tbLoopStart;
|
||||
private System.Windows.Forms.GroupBox gbWaveInfo;
|
||||
private System.Windows.Forms.Label lbBitdepth;
|
||||
private System.Windows.Forms.Label lbSamplerate;
|
||||
private System.Windows.Forms.Label lbChannelCount;
|
||||
private System.Windows.Forms.Label lbFormat;
|
||||
private System.Windows.Forms.Label lbLoopCount;
|
||||
private System.Windows.Forms.Label lbLoopStart;
|
||||
private System.Windows.Forms.Label lbStatus;
|
||||
private System.Windows.Forms.Label lbStatusValue;
|
||||
private System.Windows.Forms.Label lbLoopStartValue;
|
||||
private System.Windows.Forms.Label lbLoopCountValue;
|
||||
private System.Windows.Forms.Label lbFormatValue;
|
||||
private System.Windows.Forms.Label lbChannelCountValue;
|
||||
private System.Windows.Forms.Label lbSamplerateValue;
|
||||
private System.Windows.Forms.Label lbBitdepthValue;
|
||||
private System.Windows.Forms.CheckBox cbSourceSound;
|
||||
|
||||
}
|
||||
}
|
@ -1,356 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
using System.ComponentModel;
|
||||
using WaveFile;
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
public partial class CustomizeMii_BnsConvert : Form
|
||||
{
|
||||
private bool lameExists;
|
||||
private int loopStartSample;
|
||||
private BackgroundWorker bwGatherInfo;
|
||||
private int bitDepth;
|
||||
private int sampleRate;
|
||||
private int channelCount;
|
||||
private int dataFormat;
|
||||
private int loopCount;
|
||||
private int loopStart;
|
||||
private bool error = false;
|
||||
private bool cancelled = false;
|
||||
|
||||
public string AudioFile { get { return tbAudioFile.Text; } }
|
||||
public bool LoopNone { get { return rbNone.Checked; } }
|
||||
public bool LoopFromAudio { get { return rbFromAudioFile.Checked; } }
|
||||
public bool LoopManually { get { return rbEnterManually.Checked; } }
|
||||
public int LoopStartSample { get { return loopStartSample; } }
|
||||
public int ChannelCount { get { return channelCount; } }
|
||||
|
||||
public CustomizeMii_BnsConvert(bool lameExists)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.lameExists = lameExists;
|
||||
}
|
||||
|
||||
private void CustomizeMii_BnsConvert_Load(object sender, EventArgs e)
|
||||
{
|
||||
//this.Size = new System.Drawing.Size(358, 220);
|
||||
this.Size = new System.Drawing.Size(btnCancel.Location.X + btnCancel.Size.Width + 15, 220);
|
||||
|
||||
this.CenterToParent();
|
||||
bwGatherInfo = new BackgroundWorker();
|
||||
bwGatherInfo.WorkerSupportsCancellation = true;
|
||||
|
||||
bwGatherInfo.DoWork += new DoWorkEventHandler(bwGatherInfo_DoWork);
|
||||
|
||||
byte[] soundBin = Wii.Tools.LoadFileToByteArray(CustomizeMii_Main.TempUnpackPath + "00000000.app_OUT\\meta\\sound.bin", 32, 16);
|
||||
|
||||
if (soundBin[0] == 'R' && soundBin[1] == 'I' && soundBin[2] == 'F' && soundBin[3] == 'F')
|
||||
{ cbSourceSound.Enabled = true; }
|
||||
else if (soundBin[0] == 'L' && soundBin[1] == 'Z' && soundBin[2] == '7' && soundBin[3] == '7')
|
||||
if (soundBin[9] == 'R' && soundBin[10] == 'I' && soundBin[11] == 'F' && soundBin[12] == 'F')
|
||||
{ cbSourceSound.Enabled = true; }
|
||||
}
|
||||
|
||||
private void CustomizeMii_BnsConvert_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
cancelled = true;
|
||||
|
||||
if (bwGatherInfo.IsBusy)
|
||||
bwGatherInfo.CancelAsync();
|
||||
}
|
||||
|
||||
private void rbSelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
tbLoopStart.Enabled = rbEnterManually.Checked;
|
||||
}
|
||||
|
||||
private void btnConvert_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!File.Exists(tbAudioFile.Text) && tbAudioFile.Text != "Internal Sound")
|
||||
{
|
||||
tbAudioFile.Focus();
|
||||
tbAudioFile.SelectAll();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!int.TryParse(tbLoopStart.Text, out loopStartSample))
|
||||
{
|
||||
tbLoopStart.Focus();
|
||||
tbLoopStart.SelectAll();
|
||||
}
|
||||
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void cbSourceSound_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (cbSourceSound.Checked)
|
||||
{
|
||||
tbAudioFile.Text = "Internal Sound";
|
||||
|
||||
FileStream fs = new FileStream(CustomizeMii_Main.TempUnpackPath + "00000000.app_OUT\\meta\\sound.bin", FileMode.Open);
|
||||
byte[] audio = new byte[fs.Length - 32];
|
||||
int offset = 0;
|
||||
|
||||
fs.Seek(32, SeekOrigin.Begin);
|
||||
fs.Read(audio, 0, audio.Length);
|
||||
fs.Close();
|
||||
|
||||
if ((offset = Wii.Lz77.GetLz77Offset(audio)) != -1)
|
||||
audio = Wii.Lz77.Decompress(audio, offset);
|
||||
|
||||
foreach (Label thisLabel in gbWaveInfo.Controls)
|
||||
if (thisLabel.Name.ToLower().Contains("value"))
|
||||
{
|
||||
thisLabel.ForeColor = System.Drawing.Color.Black;
|
||||
thisLabel.Text = "Gathering";
|
||||
}
|
||||
|
||||
bwGatherInfo.RunWorkerAsync(audio);
|
||||
|
||||
//this.Size = new System.Drawing.Size(510, 220);
|
||||
this.Size = new System.Drawing.Size(gbWaveInfo.Location.X + gbWaveInfo.Size.Width + 15, 220);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tbAudioFile.Text == "Internal Sound")
|
||||
tbAudioFile.Text = string.Empty;
|
||||
|
||||
//this.Size = new System.Drawing.Size(358, 220);
|
||||
this.Size = new System.Drawing.Size(btnCancel.Location.X + btnCancel.Size.Width + 15, 220);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnBrowseAudioFile_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog ofd = new OpenFileDialog();
|
||||
if (lameExists)
|
||||
{ ofd.Filter = "Wave|*.wav|MP3|*.mp3|All|*.wav;*.mp3"; ofd.FilterIndex = 3; }
|
||||
else
|
||||
{ ofd.Filter = "Wave|*.wav"; }
|
||||
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (ofd.FileName != tbAudioFile.Text)
|
||||
{
|
||||
btnConvert.Enabled = false;
|
||||
|
||||
cbSourceSound.Checked = false;
|
||||
tbAudioFile.Text = ofd.FileName;
|
||||
|
||||
if (ofd.FileName.EndsWith(".wav"))
|
||||
{
|
||||
rbFromAudioFile.Enabled = true;
|
||||
|
||||
foreach (Label thisLabel in gbWaveInfo.Controls)
|
||||
if (thisLabel.Name.ToLower().Contains("value"))
|
||||
{
|
||||
thisLabel.ForeColor = System.Drawing.Color.Black;
|
||||
thisLabel.Text = "Gathering";
|
||||
}
|
||||
|
||||
bwGatherInfo.RunWorkerAsync(ofd.FileName);
|
||||
|
||||
//this.Size = new System.Drawing.Size(510, 220);
|
||||
this.Size = new System.Drawing.Size(gbWaveInfo.Location.X + gbWaveInfo.Size.Width + 15, 220);
|
||||
}
|
||||
else if (ofd.FileName.EndsWith(".mp3"))
|
||||
{
|
||||
channelCount = 0;
|
||||
btnConvert.Enabled = true;
|
||||
|
||||
if (rbFromAudioFile.Checked) rbNone.Checked = true;
|
||||
rbFromAudioFile.Enabled = false;
|
||||
|
||||
//this.Size = new System.Drawing.Size(358, 220);
|
||||
this.Size = new System.Drawing.Size(btnCancel.Location.X + btnCancel.Size.Width + 15, 220);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void bwGatherInfo_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
EventHandler UpdateValues = new EventHandler(this.UpdateValues);
|
||||
|
||||
try
|
||||
{
|
||||
Wave wave;
|
||||
if (e.Argument is byte[])
|
||||
{ wave = new Wave((byte[])e.Argument); }
|
||||
else
|
||||
{ wave = new Wave((string)e.Argument); }
|
||||
|
||||
try { bitDepth = wave.BitDepth; }
|
||||
catch { bitDepth = -1; }
|
||||
|
||||
try { sampleRate = wave.SampleRate; }
|
||||
catch { sampleRate = -1; }
|
||||
|
||||
try { channelCount = wave.ChannelCount; }
|
||||
catch { channelCount = -1; }
|
||||
|
||||
try { dataFormat = wave.DataFormat; }
|
||||
catch { dataFormat = -1; }
|
||||
|
||||
try { loopCount = wave.LoopCount; }
|
||||
catch { loopCount = -1; }
|
||||
|
||||
try { loopStart = wave.LoopStart; }
|
||||
catch { loopStart = -1; }
|
||||
|
||||
if (!cancelled)
|
||||
this.Invoke(UpdateValues);
|
||||
|
||||
if (e.Argument is byte[])
|
||||
{
|
||||
byte[] audio = e.Argument as byte[];
|
||||
using (FileStream fs = new FileStream(CustomizeMii_Main.TempWavePath, FileMode.Create))
|
||||
{
|
||||
fs.Write(audio, 0, audio.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
error = true;
|
||||
|
||||
if (!cancelled)
|
||||
this.Invoke(UpdateValues);
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateValues(object sender, EventArgs e)
|
||||
{
|
||||
if (error == true)
|
||||
{
|
||||
foreach (Label thisLabel in gbWaveInfo.Controls)
|
||||
if (thisLabel.Name.ToLower().Contains("value"))
|
||||
{
|
||||
thisLabel.Text = "Error";
|
||||
thisLabel.ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
|
||||
error = false;
|
||||
return;
|
||||
}
|
||||
|
||||
bool statusOk = true;
|
||||
|
||||
if (bitDepth == -1) lbBitdepthValue.Text = "Error";
|
||||
else lbBitdepthValue.Text = bitDepth.ToString();
|
||||
|
||||
if (sampleRate == -1) lbSamplerateValue.Text = "Error";
|
||||
else lbSamplerateValue.Text = sampleRate.ToString();
|
||||
|
||||
if (dataFormat == -1) lbFormatValue.Text = "Error";
|
||||
else if (dataFormat == 1) lbFormatValue.Text = "1 (PCM)";
|
||||
else lbFormatValue.Text = dataFormat.ToString();
|
||||
|
||||
if (channelCount == -1) lbChannelCountValue.Text = "Error";
|
||||
else if (channelCount == 1) lbChannelCountValue.Text = "1 (Mono)";
|
||||
else if (channelCount == 2) lbChannelCountValue.Text = "2 (Stereo)";
|
||||
else lbChannelCountValue.Text = channelCount.ToString();
|
||||
|
||||
if (loopCount == -1) lbLoopCountValue.Text = "Error";
|
||||
else lbLoopCountValue.Text = loopCount.ToString();
|
||||
|
||||
if (loopCount == -1) lbLoopStartValue.Text = "Error";
|
||||
else if (loopCount == 1) { lbLoopStartValue.Text = loopStart == -1 ? "Error" : loopStart.ToString(); }
|
||||
else lbLoopStartValue.Text = "-";
|
||||
|
||||
|
||||
|
||||
if (lbBitdepthValue.Text == "Error" || bitDepth != 16)
|
||||
{
|
||||
lbBitdepthValue.ForeColor = System.Drawing.Color.Red;
|
||||
statusOk = false;
|
||||
}
|
||||
else lbBitdepthValue.ForeColor = System.Drawing.Color.Green;
|
||||
|
||||
if (lbSamplerateValue.Text == "Error")
|
||||
{
|
||||
lbSamplerateValue.ForeColor = System.Drawing.Color.Red;
|
||||
statusOk = false;
|
||||
}
|
||||
else lbSamplerateValue.ForeColor = System.Drawing.Color.Green;
|
||||
|
||||
if (lbFormatValue.Text == "Error" || dataFormat != 1)
|
||||
{
|
||||
lbFormatValue.ForeColor = System.Drawing.Color.Red;
|
||||
statusOk = false;
|
||||
}
|
||||
else lbFormatValue.ForeColor = System.Drawing.Color.Green;
|
||||
|
||||
if (lbChannelCountValue.Text == "Error" || (channelCount > 2 || channelCount < 1))
|
||||
{
|
||||
lbChannelCountValue.ForeColor = System.Drawing.Color.Red;
|
||||
statusOk = false;
|
||||
}
|
||||
else lbChannelCountValue.ForeColor = System.Drawing.Color.Green;
|
||||
|
||||
if (lbLoopCountValue.Text == "Error" || loopCount > 1)
|
||||
lbLoopCountValue.ForeColor = System.Drawing.Color.Orange;
|
||||
else lbLoopCountValue.ForeColor = System.Drawing.Color.Green;
|
||||
|
||||
if (lbLoopStartValue.Text == "Error" || lbLoopStartValue.Text == "-")
|
||||
lbLoopStartValue.ForeColor = System.Drawing.Color.Orange;
|
||||
else lbLoopStartValue.ForeColor = System.Drawing.Color.Green;
|
||||
|
||||
if (!statusOk)
|
||||
{
|
||||
lbStatusValue.Text = "Not OK!";
|
||||
lbStatusValue.ForeColor = System.Drawing.Color.Red;
|
||||
|
||||
btnConvert.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnConvert.Enabled = true;
|
||||
|
||||
if (lbLoopCountValue.ForeColor == System.Drawing.Color.Orange ||
|
||||
lbLoopStartValue.ForeColor == System.Drawing.Color.Orange)
|
||||
{
|
||||
lbStatusValue.Text = "No Loop!";
|
||||
lbStatusValue.ForeColor = System.Drawing.Color.Orange;
|
||||
|
||||
if (rbFromAudioFile.Checked) rbNone.Checked = true;
|
||||
rbFromAudioFile.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
rbFromAudioFile.Enabled = true;
|
||||
|
||||
lbStatusValue.Text = "OK!";
|
||||
lbStatusValue.ForeColor = System.Drawing.Color.Green;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
205
CustomizeMii/CustomizeMii_ComplexForwarder.Designer.cs
generated
205
CustomizeMii/CustomizeMii_ComplexForwarder.Designer.cs
generated
@ -1,205 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
partial class CustomizeMii_ComplexForwarder
|
||||
{
|
||||
/// <summary>
|
||||
/// Erforderliche Designervariable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Verwendete Ressourcen bereinigen.
|
||||
/// </summary>
|
||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Vom Windows Form-Designer generierter Code
|
||||
|
||||
/// <summary>
|
||||
/// Erforderliche Methode für die Designerunterstützung.
|
||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.lbAppFolder = new System.Windows.Forms.Label();
|
||||
this.tbAppFolder = new System.Windows.Forms.TextBox();
|
||||
this.cbImage43 = new System.Windows.Forms.CheckBox();
|
||||
this.cbImage169 = new System.Windows.Forms.CheckBox();
|
||||
this.tbImage43 = new System.Windows.Forms.TextBox();
|
||||
this.tbImage169 = new System.Windows.Forms.TextBox();
|
||||
this.btnBrowseImage43 = new System.Windows.Forms.Button();
|
||||
this.btnBrowseImage169 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnOK = new System.Windows.Forms.Button();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lbAppFolder
|
||||
//
|
||||
this.lbAppFolder.AutoSize = true;
|
||||
this.lbAppFolder.Location = new System.Drawing.Point(12, 17);
|
||||
this.lbAppFolder.Name = "lbAppFolder";
|
||||
this.lbAppFolder.Size = new System.Drawing.Size(107, 13);
|
||||
this.lbAppFolder.TabIndex = 0;
|
||||
this.lbAppFolder.Text = "Application Directory:";
|
||||
//
|
||||
// tbAppFolder
|
||||
//
|
||||
this.tbAppFolder.Location = new System.Drawing.Point(125, 14);
|
||||
this.tbAppFolder.Name = "tbAppFolder";
|
||||
this.tbAppFolder.Size = new System.Drawing.Size(221, 20);
|
||||
this.tbAppFolder.TabIndex = 1;
|
||||
//
|
||||
// cbImage43
|
||||
//
|
||||
this.cbImage43.AutoSize = true;
|
||||
this.cbImage43.Location = new System.Drawing.Point(15, 111);
|
||||
this.cbImage43.Name = "cbImage43";
|
||||
this.cbImage43.Size = new System.Drawing.Size(73, 17);
|
||||
this.cbImage43.TabIndex = 3;
|
||||
this.cbImage43.Text = "Image 4:3";
|
||||
this.cbImage43.UseVisualStyleBackColor = true;
|
||||
this.cbImage43.CheckedChanged += new System.EventHandler(this.cbImage43_CheckedChanged);
|
||||
//
|
||||
// cbImage169
|
||||
//
|
||||
this.cbImage169.AutoSize = true;
|
||||
this.cbImage169.Location = new System.Drawing.Point(15, 141);
|
||||
this.cbImage169.Name = "cbImage169";
|
||||
this.cbImage169.Size = new System.Drawing.Size(79, 17);
|
||||
this.cbImage169.TabIndex = 3;
|
||||
this.cbImage169.Text = "Image 16:9";
|
||||
this.cbImage169.UseVisualStyleBackColor = true;
|
||||
this.cbImage169.CheckedChanged += new System.EventHandler(this.cbImage169_CheckedChanged);
|
||||
//
|
||||
// tbImage43
|
||||
//
|
||||
this.tbImage43.Enabled = false;
|
||||
this.tbImage43.Location = new System.Drawing.Point(94, 109);
|
||||
this.tbImage43.Name = "tbImage43";
|
||||
this.tbImage43.Size = new System.Drawing.Size(171, 20);
|
||||
this.tbImage43.TabIndex = 4;
|
||||
//
|
||||
// tbImage169
|
||||
//
|
||||
this.tbImage169.Enabled = false;
|
||||
this.tbImage169.Location = new System.Drawing.Point(94, 138);
|
||||
this.tbImage169.Name = "tbImage169";
|
||||
this.tbImage169.Size = new System.Drawing.Size(171, 20);
|
||||
this.tbImage169.TabIndex = 5;
|
||||
//
|
||||
// btnBrowseImage43
|
||||
//
|
||||
this.btnBrowseImage43.Enabled = false;
|
||||
this.btnBrowseImage43.Location = new System.Drawing.Point(271, 109);
|
||||
this.btnBrowseImage43.Name = "btnBrowseImage43";
|
||||
this.btnBrowseImage43.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnBrowseImage43.TabIndex = 6;
|
||||
this.btnBrowseImage43.Text = "Browse...";
|
||||
this.btnBrowseImage43.UseVisualStyleBackColor = true;
|
||||
this.btnBrowseImage43.Click += new System.EventHandler(this.btnBrowse_Click);
|
||||
//
|
||||
// btnBrowseImage169
|
||||
//
|
||||
this.btnBrowseImage169.Enabled = false;
|
||||
this.btnBrowseImage169.Location = new System.Drawing.Point(271, 138);
|
||||
this.btnBrowseImage169.Name = "btnBrowseImage169";
|
||||
this.btnBrowseImage169.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnBrowseImage169.TabIndex = 6;
|
||||
this.btnBrowseImage169.Text = "Browse...";
|
||||
this.btnBrowseImage169.UseVisualStyleBackColor = true;
|
||||
this.btnBrowseImage169.Click += new System.EventHandler(this.btnBrowse_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(0, 55);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(358, 40);
|
||||
this.label1.TabIndex = 7;
|
||||
this.label1.Text = "The images must be 640 x 480, else they will be resized!\r\nThe 16:9 image should b" +
|
||||
"e made in 832 x 480 and resized\r\nto 640 x 480, it will be streched on the Wii!";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.Location = new System.Drawing.Point(15, 179);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(160, 23);
|
||||
this.btnOK.TabIndex = 8;
|
||||
this.btnOK.Text = "OK";
|
||||
this.btnOK.UseVisualStyleBackColor = true;
|
||||
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Location = new System.Drawing.Point(186, 179);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(160, 23);
|
||||
this.btnCancel.TabIndex = 8;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// CustomizeMii_ComplexForwarder
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(358, 220);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.btnBrowseImage169);
|
||||
this.Controls.Add(this.btnBrowseImage43);
|
||||
this.Controls.Add(this.tbImage169);
|
||||
this.Controls.Add(this.tbImage43);
|
||||
this.Controls.Add(this.cbImage169);
|
||||
this.Controls.Add(this.cbImage43);
|
||||
this.Controls.Add(this.tbAppFolder);
|
||||
this.Controls.Add(this.lbAppFolder);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "CustomizeMii_ComplexForwarder";
|
||||
this.Text = "CustomizeMii_ComplexForwarder";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label lbAppFolder;
|
||||
private System.Windows.Forms.Label label1;
|
||||
public System.Windows.Forms.TextBox tbAppFolder;
|
||||
public System.Windows.Forms.CheckBox cbImage43;
|
||||
public System.Windows.Forms.CheckBox cbImage169;
|
||||
public System.Windows.Forms.TextBox tbImage43;
|
||||
public System.Windows.Forms.TextBox tbImage169;
|
||||
public System.Windows.Forms.Button btnBrowseImage43;
|
||||
public System.Windows.Forms.Button btnBrowseImage169;
|
||||
private System.Windows.Forms.Button btnOK;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
}
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
public partial class CustomizeMii_ComplexForwarder : Form
|
||||
{
|
||||
public CustomizeMii_ComplexForwarder()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.CenterToParent();
|
||||
}
|
||||
|
||||
private void cbImage43_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
tbImage43.Enabled = cbImage43.Checked;
|
||||
btnBrowseImage43.Enabled = cbImage43.Checked;
|
||||
}
|
||||
|
||||
private void cbImage169_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
tbImage169.Enabled = cbImage169.Checked;
|
||||
btnBrowseImage169.Enabled = cbImage169.Checked;
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(tbAppFolder.Text))
|
||||
{
|
||||
tbAppFolder.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!File.Exists(tbImage43.Text)) tbImage43.Text = string.Empty;
|
||||
if (!File.Exists(tbImage169.Text)) tbImage169.Text = string.Empty;
|
||||
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
|
||||
private void btnBrowse_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog ofd = new OpenFileDialog();
|
||||
ofd.Filter = "PNG|*.png|JPG|*.jpg|GIF|*.gif|BMP|*.bmp|All|*.png;*.jpg;*.gif;*.bmp";
|
||||
ofd.FilterIndex = 5;
|
||||
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (sender == btnBrowseImage43) tbImage43.Text = ofd.FileName;
|
||||
else tbImage169.Text = ofd.FileName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
@ -1,85 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using ForwardMii;
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
namespace Forwarder
|
||||
{
|
||||
//Let's use this kind of wrapper, so CustomizeMii can still run, if the ForwardMii.dll is missing...
|
||||
|
||||
internal class Complex
|
||||
{
|
||||
private string thisAppFolder;
|
||||
private bool elfFirst = false;
|
||||
private bool usbFirst = false;
|
||||
private string image43;
|
||||
private string image169;
|
||||
public string AppFolder { get { return thisAppFolder; } set { thisAppFolder = value; } }
|
||||
public bool ElfFirst { get { return elfFirst; } set { elfFirst = value; } }
|
||||
public bool UsbFirst { get { return usbFirst; } set { usbFirst = value; } }
|
||||
public string Image43 { get { return image43; } set { image43 = value; } }
|
||||
public string Image169 { get { return image169; } set { image169 = value; } }
|
||||
|
||||
public Complex()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Save(string Destination)
|
||||
{
|
||||
GXForwarder Forwarder = new GXForwarder(thisAppFolder, usbFirst, elfFirst, image43, image169);
|
||||
Forwarder.Save(Destination, true);
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
thisAppFolder = string.Empty;
|
||||
elfFirst = false;
|
||||
usbFirst = false;
|
||||
image43 = string.Empty;
|
||||
image169 = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
internal class Simple
|
||||
{
|
||||
private string thisAppFolder;
|
||||
private bool toElf = false;
|
||||
public string AppFolder { get { return thisAppFolder; } set { thisAppFolder = value; } }
|
||||
public bool ForwardToElf { get { return toElf; } set { toElf = value; } }
|
||||
|
||||
public Simple()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Save(string Destination)
|
||||
{
|
||||
SDSDHC_Forwarder Forwarder = new SDSDHC_Forwarder(thisAppFolder, toElf);
|
||||
Forwarder.Save(Destination, true);
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
thisAppFolder = string.Empty;
|
||||
toElf = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
139
CustomizeMii/CustomizeMii_InputBox.Designer.cs
generated
139
CustomizeMii/CustomizeMii_InputBox.Designer.cs
generated
@ -1,139 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
partial class CustomizeMii_InputBox
|
||||
{
|
||||
/// <summary>
|
||||
/// Erforderliche Designervariable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Verwendete Ressourcen bereinigen.
|
||||
/// </summary>
|
||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Vom Windows Form-Designer generierter Code
|
||||
|
||||
/// <summary>
|
||||
/// Erforderliche Methode für die Designerunterstützung.
|
||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.tbInput = new System.Windows.Forms.TextBox();
|
||||
this.lbInfo = new System.Windows.Forms.Label();
|
||||
this.btnOK = new System.Windows.Forms.Button();
|
||||
this.btnExit = new System.Windows.Forms.Button();
|
||||
this.cbElf = new System.Windows.Forms.CheckBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tbInput
|
||||
//
|
||||
this.tbInput.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
||||
this.tbInput.Location = new System.Drawing.Point(7, 34);
|
||||
this.tbInput.MaxLength = 3;
|
||||
this.tbInput.Name = "tbInput";
|
||||
this.tbInput.Size = new System.Drawing.Size(222, 20);
|
||||
this.tbInput.TabIndex = 0;
|
||||
//
|
||||
// lbInfo
|
||||
//
|
||||
this.lbInfo.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||
this.lbInfo.Location = new System.Drawing.Point(4, 9);
|
||||
this.lbInfo.Name = "lbInfo";
|
||||
this.lbInfo.Size = new System.Drawing.Size(225, 32);
|
||||
this.lbInfo.TabIndex = 1;
|
||||
this.lbInfo.Text = "Please enter \"45e\" to create the Common-Key";
|
||||
this.lbInfo.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
||||
this.btnOK.Location = new System.Drawing.Point(7, 62);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(108, 23);
|
||||
this.btnOK.TabIndex = 2;
|
||||
this.btnOK.Text = "OK";
|
||||
this.btnOK.UseVisualStyleBackColor = true;
|
||||
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
||||
//
|
||||
// btnExit
|
||||
//
|
||||
this.btnExit.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
||||
this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnExit.Location = new System.Drawing.Point(121, 62);
|
||||
this.btnExit.Name = "btnExit";
|
||||
this.btnExit.Size = new System.Drawing.Size(108, 23);
|
||||
this.btnExit.TabIndex = 3;
|
||||
this.btnExit.Text = "Exit";
|
||||
this.btnExit.UseVisualStyleBackColor = true;
|
||||
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
|
||||
//
|
||||
// cbElf
|
||||
//
|
||||
this.cbElf.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
||||
this.cbElf.AutoSize = true;
|
||||
this.cbElf.Location = new System.Drawing.Point(61, 16);
|
||||
this.cbElf.Name = "cbElf";
|
||||
this.cbElf.Size = new System.Drawing.Size(114, 17);
|
||||
this.cbElf.TabIndex = 4;
|
||||
this.cbElf.Text = "Forward to boot.elf";
|
||||
this.cbElf.UseVisualStyleBackColor = true;
|
||||
this.cbElf.Visible = false;
|
||||
//
|
||||
// CustomizeMii_InputBox
|
||||
//
|
||||
this.AcceptButton = this.btnOK;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.btnExit;
|
||||
this.ClientSize = new System.Drawing.Size(238, 92);
|
||||
this.Controls.Add(this.cbElf);
|
||||
this.Controls.Add(this.btnExit);
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Controls.Add(this.tbInput);
|
||||
this.Controls.Add(this.lbInfo);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "CustomizeMii_InputBox";
|
||||
this.ShowInTaskbar = false;
|
||||
this.Text = "InputBox";
|
||||
this.Load += new System.EventHandler(this.CustomizeMii_InputBox_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnOK;
|
||||
public System.Windows.Forms.Label lbInfo;
|
||||
public System.Windows.Forms.TextBox tbInput;
|
||||
public System.Windows.Forms.Button btnExit;
|
||||
public System.Windows.Forms.CheckBox cbElf;
|
||||
}
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
public partial class CustomizeMii_InputBox : Form
|
||||
{
|
||||
public bool CommonKeyMode = true;
|
||||
public string Input
|
||||
{
|
||||
get { return tbInput.Text; }
|
||||
}
|
||||
|
||||
public CustomizeMii_InputBox()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public CustomizeMii_InputBox(bool CommonKeyMode)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.CommonKeyMode = CommonKeyMode;
|
||||
}
|
||||
|
||||
private void CustomizeMii_InputBox_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.CenterToScreen();
|
||||
}
|
||||
|
||||
private void btnExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonKeyMode == true)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
else this.Close();
|
||||
}
|
||||
|
||||
private void btnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.CommonKeyMode == true)
|
||||
{
|
||||
if (tbInput.Text == "45e")
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
tbInput.Focus();
|
||||
tbInput.SelectAll();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tbInput.Text.Length > 2)
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
tbInput.Focus();
|
||||
tbInput.SelectAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
1612
CustomizeMii/CustomizeMii_Main.Designer.cs
generated
1612
CustomizeMii/CustomizeMii_Main.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,148 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="lbCreditThanks.Text" xml:space="preserve">
|
||||
<value>Thanks:
|
||||
Xuzz for his idea and hard work
|
||||
Xuzz, SquidMan, megazig, Matt_P, Omega and The Lemon Man for Wii.py
|
||||
SquidMan for Zetsubou
|
||||
Andre Perrot for gbalzss
|
||||
comex and Waninkoko for both their NAND Loader
|
||||
djdynamite123 for the forwarder base files (ForwardMii-Plugin)
|
||||
The USB Loader GX Team for their forwarder source (ForwardMii-Plugin)</value>
|
||||
</data>
|
||||
<metadata name="ssMain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>16, 7</value>
|
||||
</metadata>
|
||||
<metadata name="cmForwarder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>105, 7</value>
|
||||
</metadata>
|
||||
<metadata name="cmOptionsExtract.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>228, 7</value>
|
||||
</metadata>
|
||||
<metadata name="cmSound.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>376, 7</value>
|
||||
</metadata>
|
||||
<metadata name="cmDol.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>479, 7</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>42</value>
|
||||
</metadata>
|
||||
</root>
|
83
CustomizeMii/CustomizeMii_Preview.Designer.cs
generated
83
CustomizeMii/CustomizeMii_Preview.Designer.cs
generated
@ -1,83 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
partial class CustomizeMii_Preview
|
||||
{
|
||||
/// <summary>
|
||||
/// Erforderliche Designervariable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Verwendete Ressourcen bereinigen.
|
||||
/// </summary>
|
||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Vom Windows Form-Designer generierter Code
|
||||
|
||||
/// <summary>
|
||||
/// Erforderliche Methode für die Designerunterstützung.
|
||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.pbImage = new System.Windows.Forms.PictureBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbImage)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pbImage
|
||||
//
|
||||
this.pbImage.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pbImage.Location = new System.Drawing.Point(0, 0);
|
||||
this.pbImage.Name = "pbImage";
|
||||
this.pbImage.Size = new System.Drawing.Size(194, 176);
|
||||
this.pbImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||
this.pbImage.TabIndex = 0;
|
||||
this.pbImage.TabStop = false;
|
||||
//
|
||||
// CustomizeMii_Preview
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(194, 176);
|
||||
this.Controls.Add(this.pbImage);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.MinimumSize = new System.Drawing.Size(200, 200);
|
||||
this.Name = "CustomizeMii_Preview";
|
||||
this.Text = "CustomizeMii - Preview";
|
||||
this.Load += new System.EventHandler(this.CustomizeMii_Preview_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbImage)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public System.Windows.Forms.PictureBox pbImage;
|
||||
|
||||
}
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
public partial class CustomizeMii_Preview : Form
|
||||
{
|
||||
public CustomizeMii_Preview()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void CustomizeMii_Preview_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.CenterToParent();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
@ -1,53 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
public struct BnsConversionInfo
|
||||
{
|
||||
public enum LoopType
|
||||
{
|
||||
None,
|
||||
FromWave,
|
||||
Manual
|
||||
}
|
||||
|
||||
public LoopType Loop;
|
||||
public int LoopStartSample;
|
||||
public string AudioFile;
|
||||
public bool StereoToMono;
|
||||
}
|
||||
|
||||
public struct WadCreationInfo
|
||||
{
|
||||
public enum NandLoader : int
|
||||
{
|
||||
comex = 0,
|
||||
Waninkoko = 1
|
||||
}
|
||||
|
||||
public string outFile;
|
||||
public NandLoader nandLoader;
|
||||
public bool sendToWii;
|
||||
}
|
||||
|
||||
public struct Progress
|
||||
{
|
||||
public int progressValue;
|
||||
public string progressState;
|
||||
}
|
||||
}
|
@ -1,134 +0,0 @@
|
||||
These are some basic instructions for CustomizeMii.
|
||||
|
||||
At the very beginning, let me say this again: Don't install any WADs without a proper brick protection!
|
||||
|
||||
Ok, so you want to create your own custom channels?
|
||||
First it is important to understand how the creation of a custom channel with CustomizeMii works.
|
||||
Skip this if you already know.
|
||||
|
||||
Basically, you can't create a channel from scratch. Well, you could, but not with this application.
|
||||
You need a base WAD which you can modify. You can either download one within this application or use
|
||||
any WAD (must be a channel of course) from anywhere.
|
||||
You can then edit the WAD file.
|
||||
The editing of animations is for advanced users, so if you're not familiar with brlyt's and brlan's
|
||||
(I guess you're not unless you created your own animations), get a static base WAD or one with the
|
||||
animation you want.
|
||||
|
||||
So, let's start to create a channel. Download a base WAD through the application or load one from your HDD.
|
||||
You can preview the downloadable WADs through the preview button.
|
||||
All options below are optional!
|
||||
|
||||
|
||||
|
||||
MIXING BANNER, ICON AND SOUND
|
||||
|
||||
The options below the downloadable base WADs are the "replace" options.
|
||||
Let's say you have loaded WAD A as a base, but you want the icon of WAD B and you have a 00000000.app that
|
||||
contains a sound that you want to use.
|
||||
No problem! Just use the dropdownbox which yet says "Banner" and choose "Icon". Click on the browse button
|
||||
next to it and choose WAD B. The icon of WAD B will replace the icon of WAD A.
|
||||
After that, choose "Sound" from the dropdownbox and browse for the 00000000.app, the sound.bin will be
|
||||
extracted and used instead of the one within WAD A.
|
||||
|
||||
Note: These features are non-destructive, i.e. you can always use the clear button to get back to the
|
||||
banner/icon/sound of WAD A!
|
||||
|
||||
|
||||
|
||||
CHANNEL INFORMATION
|
||||
|
||||
You may want to change the channel information, i.e. the title and ID.
|
||||
Let's change the channel title first. It's the text that will be displayed when you hold your cursor
|
||||
over the channel. Goto the "Title" tab and fill a title for all languages. If you want to change the
|
||||
title for a specific language, just use the language's textbox. If you want a different title for every
|
||||
language, you don't need to fill in a title for all languages.
|
||||
Now, the title ID. Open the "Options" tab and you'll see a textbox for the ID. The ID is 4 characters long
|
||||
and only contains letters and numerics. Lower case letters will automatically converted to upper case.
|
||||
Change it to a unique(!) ID, because channels will overwrite existing channles with the same ID!
|
||||
|
||||
I recommend not to use any title ID beginning with the following characters, because official channels
|
||||
use these and thus your channel may overwrite them:
|
||||
C, E, F, H, J, L, M, N, P, Q, W
|
||||
|
||||
|
||||
|
||||
INSERTING A NEW DOL
|
||||
|
||||
Let's bring some life into the channel. In the "Options" tab, use the browse button for a new DOL.
|
||||
Either load a forwarder, the DOL of any application or a WAD to use it's DOL. Note that some applications
|
||||
require more than just a DOL and thus may not work in a channel (e.g. MPlayer CE).
|
||||
Choose a NAND loader or just stick with the one selected (both will do fine).
|
||||
|
||||
You can also use the built-in forwarder creation by using the forwarder button right below the browse button
|
||||
for DOLs.
|
||||
You need the ForwardMii.dll in order to use the forwarder creation.
|
||||
|
||||
|
||||
|
||||
INSERTING A NEW SOUND
|
||||
|
||||
For the sound, you can either use a wave or mp3 (needs lame.exe) file or the sound replace function to use
|
||||
the sound of an existing sound.bin/00000000.app/WAD.
|
||||
If you want looped sound, open your wave file with wavosaur and add loop points before.
|
||||
|
||||
To save space, you can convert your wav or mp3 files to BNS. You can take the loop from a prelooped wave file
|
||||
or enter the loop start point manually. Wave files must be 16bit PCM.
|
||||
It is possible to directly convert stereo Wave files to mono BNS files, note that only the left channel of
|
||||
the Wave will be taken.
|
||||
|
||||
|
||||
|
||||
EDITING THE BANNER/ICON (If you're an advanced user and want to edit the brlyt/brlan, do that first!)
|
||||
|
||||
So, let's begin with the real customization. I will only talk about the banner here, the instructions
|
||||
are the same for the icon.
|
||||
Goto the "Banner" tab. You shouldn't touch the add and remove buttons, they're for advanced users that
|
||||
change the animation. (However, they can't really harm your channel, as CustomizeMii will check for missing
|
||||
and unneeded TPLs while creating a WAD).
|
||||
You will see a list with all TPLs inside the banner.bin. When you select a TPL,
|
||||
it's current format will be shown in the "Format" dropdownbox. Note that CustomizeMii can read 8 different
|
||||
TPL formats, but only write 3 (RGBA8, RGB565 and RGB5A3), that should be enough for your needs.
|
||||
You can use the preview button to preview a TPL (obvious, right?), but you get one more important info,
|
||||
the image size. It will be shown in the title of the preview window. If your images aren't the same size,
|
||||
they will be resized! So be sure to have at least the correct aspect ratio, so your images wont be
|
||||
squeezed or whatever.
|
||||
Before replacing the image, choose a format from the dropdownbox.
|
||||
(RGBA8 = High Quality, Big Size --- RGB565 = Moderate Quality, Small Size --- RGB5A3 = Bad Quality, Small Size)
|
||||
Now you can use the replace button to insert your image. Preview the TPL after replacing to check the
|
||||
image. Maybe you want to use another format though? No problem, just replace the TPL again.
|
||||
|
||||
Note: You can use the "Make Transparent" checkbox to make a TPL transparent, e.g. if you don't like
|
||||
one piece of an animation (It's non-destructive, i.e. you can always uncheck the box).
|
||||
|
||||
|
||||
|
||||
EDITING THE ANIMATION (Advanced users only!)
|
||||
|
||||
Skip this part, if you don't really know what brlyt and brlan files are and how they're structured.
|
||||
Goto the "Layout" tab. You will see the banner.brlyt and icon.brlyt there.
|
||||
Above the buttons is a text that will indicate whether you're doing actions on the "Banner" or
|
||||
the "Icon" (When you select the banner.brlyt, you're editing the "Banner" and vice versa).
|
||||
Now, just replace the banner.brlyt and icon.brlyt files as you want. You can use the list TPLs button
|
||||
afterwards to see all TPLs that are required by the banner.brlyt/icon.brlyt (Don't worry, CustomizeMii
|
||||
won't let you create a WAD, if you forgot a required TPL).
|
||||
Now, goto the "Animation" tab. It's similar to the "Layout" tab. You shouldn't touch the add or delete button
|
||||
unless your base WAD only has a banner.brlan and you want to use a banner_Start.brlan and banner_Loop.brlan.
|
||||
In this case, first add the two files and then delete the old banner.brlan.
|
||||
Else just replace the files with yours. Be absolutely sure the your brlan files only refer to panes that are
|
||||
indicated in your brlyt files!
|
||||
That's it, here's nothing left to do.
|
||||
|
||||
|
||||
|
||||
CREATING THE WAD
|
||||
|
||||
Well, your channel should be ready to be created.
|
||||
Goto the "Options" tab and check the Lz77 checkbox, if you want to compress your channel to safe some Wii memory.
|
||||
If your channel doesn't work, first try it again without compression.
|
||||
Now just click on the create WAD button (The big one with the different text each startup).
|
||||
CustomizeMii will do some failure checks and if all went fine, a save dialog will pop up.
|
||||
If you get an error or warning, read the message carefully. It should give you enough information to fix
|
||||
the problem yourself.
|
||||
|
||||
So, if you got down to here, you're done by now. Please, if you find any bugs or have suggestions, take some
|
||||
seconds to report them at the issue tracker: http://code.google.com/p/customizemii/issues/list
|
@ -1,674 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
@ -1,36 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CustomizeMii
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// Der Haupteinstiegspunkt für die Anwendung.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new CustomizeMii_Main());
|
||||
}
|
||||
}
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Resources;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die mit einer Assembly verknüpft sind.
|
||||
[assembly: AssemblyTitle("CustomizeMii")]
|
||||
[assembly: AssemblyDescription("CustomizeMii is a custom channel creator for the Wii")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("CustomizeMii")]
|
||||
[assembly: AssemblyCopyright("Copyright © Leathl 2009")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
|
||||
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
|
||||
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
[assembly: Guid("b8292272-5915-44f7-a7b1-a347bea3ecd5")]
|
||||
|
||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
//
|
||||
// Hauptversion
|
||||
// Nebenversion
|
||||
// Buildnummer
|
||||
// Revision
|
||||
//
|
||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.1.0.0")]
|
||||
[assembly: AssemblyFileVersion("2.1.0.0")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
93
CustomizeMii/Properties/Resources.Designer.cs
generated
93
CustomizeMii/Properties/Resources.Designer.cs
generated
@ -1,93 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
// Laufzeitversion:2.0.50727.4927
|
||||
//
|
||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
// der Code erneut generiert wird.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CustomizeMii.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
/// </summary>
|
||||
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
||||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CustomizeMii.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap btnCreateWad {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("btnCreateWad", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Icon CustomizeMii {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("CustomizeMii", resourceCulture);
|
||||
return ((System.Drawing.Icon)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die {\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}
|
||||
///{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}
|
||||
///{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sl276\slmult1\b\f0\fs17 These are some basic instructions for CustomizeMii.\b0\par
|
||||
///\par
|
||||
///\cf1 At the very beginning, let me say this again: Don't install any WADs without a proper brick protection!\cf0\par
|
||||
///\par
|
||||
///Ok, so you want to create your own custom channels?\par
|
||||
///First it is important to understand how [Rest der Zeichenfolge wurde abgeschnitten]"; ähnelt.
|
||||
/// </summary>
|
||||
internal static string Instructions {
|
||||
get {
|
||||
return ResourceManager.GetString("Instructions", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,130 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="btnCreateWad" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\btnCreateWad.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="CustomizeMii" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\CustomizeMii.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Instructions" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\instructions.rtf;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
</data>
|
||||
</root>
|
47
CustomizeMii/Properties/Settings.Designer.cs
generated
47
CustomizeMii/Properties/Settings.Designer.cs
generated
@ -1,47 +0,0 @@
|
||||
/* This file is part of CustomizeMii
|
||||
* Copyright (C) 2009 Leathl
|
||||
*
|
||||
* CustomizeMii is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CustomizeMii is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CustomizeMii.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
@ -1,90 +0,0 @@
|
||||
CustomizeMii is a custom channel creator for the Wii.
|
||||
The .NET Framework 2.0 is required to run this application!
|
||||
|
||||
For any further information, see: http://customizemii.googlecode.com
|
||||
Please use the Issue Tracker there to report any occuring bugs.
|
||||
|
||||
Thanks to icefire / Xuzz for the basic idea of this Application!
|
||||
|
||||
-----------------------------------------------------------------------------------------
|
||||
Changelog:
|
||||
|
||||
Version 2.1
|
||||
-
|
||||
|
||||
Version 2.0
|
||||
- Added BNS conversion (Mono and Stereo, with and without loop)
|
||||
- Fixed MP3 conversion (some files didn't convert)
|
||||
- Lz77 checkbox is now ticked by default
|
||||
- Removed Lz77 compression of sound.bin as most sounds will get bigger
|
||||
- Added ability to insert DOLs from any channel WAD
|
||||
- Added ability to re-add the interal DOL (To switch the NAND Loader)
|
||||
- Added ability to extract the contents, DOL, sound and all images
|
||||
- Added displaying of approx. blocks to the success-message
|
||||
- Deleted some functions of the complex forwarder as they weren't working properly
|
||||
- Some bugfixes and improvements
|
||||
|
||||
Version 1.2
|
||||
- Fixed writing/reading of channel titles, so japanese characters will work now
|
||||
- Added checkbox (Options tab) to turn security checks off
|
||||
- Added built-in forwarder creator (Needs the ForwardMii.dll which is separately avaiable)
|
||||
- You can choose MP3 files as channel sound (Needs lame.exe in application directory)
|
||||
- Bugfixes
|
||||
|
||||
Version 1.1
|
||||
- Note: License upgraded to GNU GPL v3!
|
||||
- Sound is working now
|
||||
- Added brlan and brlyt tabs (for advanced users)
|
||||
- Added displaying of image width and height in preview window
|
||||
- Added "Make Transparent" checkbox for TPLs
|
||||
- Fixed IA8 previewing / extracting
|
||||
- Improved bricksafety (hopefully!)
|
||||
- Added Tooltips
|
||||
- Added update check at startup
|
||||
- Wrote basic instructions (see Instructions.txt or help tab)
|
||||
|
||||
Version 1.0
|
||||
- Initial Release
|
||||
-----------------------------------------------------------------------------------------
|
||||
|
||||
-----------------------------------------------------------------------------------------
|
||||
Disclaimer:
|
||||
|
||||
Editing WAD files can result in a brick of your Wii.
|
||||
Only use this application if you have a bricksafe Wii, meaning either Preloader or
|
||||
BootMii/boot2 is installed, and if you know what you're doing.
|
||||
|
||||
This application comes without any express or implied warranty.
|
||||
The author can't be held responsible for any damages arising from the use of it.
|
||||
-----------------------------------------------------------------------------------------
|
||||
|
||||
-----------------------------------------------------------------------------------------
|
||||
Thanks:
|
||||
|
||||
Xuzz for his idea and hard work
|
||||
Xuzz, SquidMan, megazig, Matt_P, Omega and The Lemon Man for Wii.py
|
||||
SquidMan for Zetsubou
|
||||
Andre Perrot for gbalzss
|
||||
comex and Waninkoko for both their NAND Loader
|
||||
djdynamite123 for the forwarder base files (ForwardMii-Plugin)
|
||||
The USB Loader GX Team for their forwarder source (ForwardMii-Plugin)
|
||||
-----------------------------------------------------------------------------------------
|
||||
|
||||
-----------------------------------------------------------------------------------------
|
||||
License:
|
||||
|
||||
Copyright (C) 2009 Leathl
|
||||
|
||||
CustomizeMii is free software: you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
CustomizeMii is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-----------------------------------------------------------------------------------------
|
Binary file not shown.
Before Width: | Height: | Size: 87 KiB |
@ -1,138 +0,0 @@
|
||||
{\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}
|
||||
{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}
|
||||
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sl276\slmult1\b\f0\fs17 These are some basic instructions for CustomizeMii.\b0\par
|
||||
\par
|
||||
\cf1 At the very beginning, let me say this again: Don't install any WADs without a proper brick protection!\cf0\par
|
||||
\par
|
||||
Ok, so you want to create your own custom channels?\par
|
||||
First it is important to understand how the creation of a custom channel with CustomizeMii works.\par
|
||||
Skip this if you already know.\par
|
||||
\par
|
||||
Basically, you can't create a channel from scratch. Well, you could, but not with this application.\par
|
||||
You need a base WAD which you can modify. You can either download one within this application or use\par
|
||||
any WAD (must be a channel of course) from anywhere.\par
|
||||
You can then edit the WAD file.\par
|
||||
The editing of animations is for advanced users, so if you're not familiar with brlyt's and brlan's\par
|
||||
(I guess you're not unless you created your own animations), get a static base WAD or one with the\par
|
||||
animation you want.\par
|
||||
\par
|
||||
So, let's start to create a channel. Download a base WAD through the application or load one from your HDD.\par
|
||||
You can preview the downloadable WADs through the preview button.\par
|
||||
All options below are optional!\par
|
||||
\par
|
||||
\par
|
||||
\par
|
||||
\b MIXING BANNER, ICON AND SOUND\b0\par
|
||||
\par
|
||||
The options below the downloadable base WADs are the "replace" options.\par
|
||||
Let's say you have loaded WAD A as a base, but you want the icon of WAD B and you have a 00000000.app that\par
|
||||
contains a sound that you want to use.\par
|
||||
No problem! Just use the dropdownbox which yet says "Banner" and choose "Icon". Click on the browse button\par
|
||||
next to it and choose WAD B. The icon of WAD B will replace the icon of WAD A.\par
|
||||
After that, choose "Sound" from the dropdownbox and browse for the 00000000.app, the sound.bin will be\par
|
||||
extracted and used instead of the one within WAD A.\par
|
||||
\par
|
||||
Note: These features are non-destructive, i.e. you can always use the clear button to get back to the\par
|
||||
banner/icon/sound of WAD A!\par
|
||||
\par
|
||||
\par
|
||||
\par
|
||||
\b CHANNEL INFORMATION\b0\par
|
||||
\par
|
||||
You may want to change the channel information, i.e. the title and ID.\par
|
||||
Let's change the channel title first. It's the text that will be displayed when you hold your cursor\par
|
||||
over the channel. Goto the "Title" tab and fill a title for all languages. If you want to change the\par
|
||||
title for a specific language, just use the language's textbox. If you want a different title for every\par
|
||||
language, you don't need to fill in a title for all languages.\par
|
||||
Now, the title ID. Open the "Options" tab and you'll see a textbox for the ID. The ID is 4 characters long\par
|
||||
and only contains letters and numerics. Lower case letters will automatically converted to upper case.\par
|
||||
Change it to a unique(!) ID, because channels will overwrite existing channles with the same ID!\par
|
||||
\par
|
||||
I recommend not to use any title ID beginning with the following characters, because official channels\par
|
||||
use these and thus your channel may overwrite them:\par
|
||||
C, E, F, H, J, L, M, N, P, Q, W\par
|
||||
\par
|
||||
\par
|
||||
\par
|
||||
\b INSERTING A NEW DOL\b0\par
|
||||
\par
|
||||
Let's bring some life into the channel. In the "Options" tab, use the browse button for a new DOL.\par
|
||||
Either load a forwarder, the DOL of any application or a WAD to use it's DOL. Note that some applications\par
|
||||
require more than just a DOL and thus may not work in a channel (e.g. MPlayer CE).\par
|
||||
Choose a NAND loader or just stick with the one selected (both will do fine).\par
|
||||
\par
|
||||
You can also use the built-in forwarder creation by using the forwarder button right below the browse button\par
|
||||
for DOLs.\par
|
||||
You need the ForwardMii.dll in order to use the forwarder creation.\par
|
||||
\par
|
||||
\par
|
||||
\par
|
||||
\b INSERTING A NEW SOUND\b0\par
|
||||
\par
|
||||
For the sound, you can either use a wave or mp3 (needs lame.exe) file or the sound replace function to use\par
|
||||
the sound of an existing sound.bin/00000000.app/WAD.\par
|
||||
If you want looped sound, open your wave file with wavosaur and add loop points before.\par
|
||||
\par
|
||||
To save space, you can convert your wav or mp3 files to BNS. You can take the loop from a prelooped wave file\par
|
||||
or enter the loop start point manually. Wave files must be 16bit PCM.\par
|
||||
It is possible to directly convert stereo Wave files to mono BNS files, note that only the left channel of\par
|
||||
the Wave will be taken.\par
|
||||
\par
|
||||
\par
|
||||
\par
|
||||
\b EDITING THE BANNER/ICON (If you're an advanced user and want to edit the brlyt/brlan, do that first!)\b0\par
|
||||
\par
|
||||
So, let's begin with the real customization. I will only talk about the banner here, the instructions\par
|
||||
are the same for the icon.\par
|
||||
Goto the "Banner" tab. You shouldn't touch the add and remove buttons, they're for advanced users that\par
|
||||
change the animation. (However, they can't really harm your channel, as CustomizeMii will check for missing\par
|
||||
and unneeded TPLs while creating a WAD).\par
|
||||
You will see a list with all TPLs inside the banner.bin. When you select a TPL,\par
|
||||
it's current format will be shown in the "Format" dropdownbox. Note that CustomizeMii can read 8 different\par
|
||||
TPL formats, but only write 3 (RGBA8, RGB565 and RGB5A3), that should be enough for your needs.\par
|
||||
You can use the preview button to preview a TPL (obvious, right?), but you get one more important info,\par
|
||||
the image size. It will be shown in the title of the preview window. If your images aren't the same size,\par
|
||||
they will be resized! So be sure to have at least the correct aspect ratio, so your images wont be\par
|
||||
squeezed or whatever.\par
|
||||
Before replacing the image, choose a format from the dropdownbox.\par
|
||||
(RGBA8 = High Quality, Big Size --- RGB565 = Moderate Quality, Small Size --- RGB5A3 = Bad Quality, Small Size)\par
|
||||
Now you can use the replace button to insert your image. Preview the TPL after replacing to check the\par
|
||||
image. Maybe you want to use another format though? No problem, just replace the TPL again.\par
|
||||
\par
|
||||
Note: You can use the "Make Transparent" checkbox to make a TPL transparent, e.g. if you don't like\par
|
||||
one piece of an animation (It's non-destructive, i.e. you can always uncheck the box).\par
|
||||
\par
|
||||
\par
|
||||
\par
|
||||
\b EDITING THE ANIMATION (Advanced users only!)\b0\par
|
||||
\par
|
||||
Skip this part, if you don't really know what brlyt and brlan files are and how they're structured.\par
|
||||
Goto the "Layout" tab. You will see the banner.brlyt and icon.brlyt there.\par
|
||||
Above the buttons is a text that will indicate whether you're doing actions on the "Banner" or\par
|
||||
the "Icon" (When you select the banner.brlyt, you're editing the "Banner" and vice versa).\par
|
||||
Now, just replace the banner.brlyt and icon.brlyt files as you want. You can use the list TPLs button\par
|
||||
afterwards to see all TPLs that are required by the banner.brlyt/icon.brlyt (Don't worry, CustomizeMii\par
|
||||
won't let you create a WAD, if you forgot a required TPL).\par
|
||||
Now, goto the "Animation" tab. It's similar to the "Layout" tab. You shouldn't touch the add or delete button\par
|
||||
unless your base WAD only has a banner.brlan and you want to use a banner_Start.brlan and banner_Loop.brlan.\par
|
||||
In this case, first add the two files and then delete the old banner.brlan.\par
|
||||
Else just replace the files with yours. Be absolutely sure the your brlan files only refer to panes that are\par
|
||||
indicated in your brlyt files!\par
|
||||
That's it, here's nothing left to do.\par
|
||||
\par
|
||||
\par
|
||||
\par
|
||||
\b CREATING THE WAD\b0\par
|
||||
\par
|
||||
Well, your channel should be ready to be created.\par
|
||||
Goto the "Options" tab and check the Lz77 checkbox, if you want to compress your channel to safe some Wii memory.\par
|
||||
If your channel doesn't work, first try it again without compression.\par
|
||||
Now just click on the create WAD button (The big one with the different text each startup).\par
|
||||
CustomizeMii will do some failure checks and if all went fine, a save dialog will pop up.\par
|
||||
If you get an error or warning, read the message carefully. It should give you enough information to fix\par
|
||||
the problem yourself.\par
|
||||
\par
|
||||
So, if you got down to here, you're done by now. Please, if you find any bugs or have suggestions, take some\par
|
||||
seconds to report them at the issue tracker: {\field{\*\fldinst{HYPERLINK "http://code.google.com/p/customizemii/issues/list"}}{\fldrslt{\ul\cf2 http://code.google.com/p/customizemii/issues/list}}}\lang7\i\f0\fs17\par
|
||||
}
|
||||
|