Added a WiiU plugin with support for BFLIM

It is possible that BFLIM files from the Wii U not work yet.
This commit is contained in:
Gericom 2015-01-21 18:07:58 +01:00
parent 8832d1eecc
commit ace5092ce5
26 changed files with 1199 additions and 27 deletions

View File

@ -181,6 +181,12 @@
<Compile Include="UI\ThemeViewer.Designer.cs">
<DependentUpon>ThemeViewer.cs</DependentUpon>
</Compile>
<Compile Include="UI\ThemeViewerNew.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\ThemeViewerNew.Designer.cs">
<DependentUpon>ThemeViewerNew.cs</DependentUpon>
</Compile>
<Compile Include="UI\TXOBViewer.cs">
<SubType>UserControl</SubType>
</Compile>
@ -242,6 +248,9 @@
<EmbeddedResource Include="UI\ThemeViewer.resx">
<DependentUpon>ThemeViewer.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\ThemeViewerNew.resx">
<DependentUpon>ThemeViewerNew.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\TXOBViewer.resx">
<DependentUpon>TXOBViewer.cs</DependentUpon>
</EmbeddedResource>

View File

@ -27,8 +27,9 @@ namespace _3DS.NintendoWare.LYT1
{
Header = new CLIMHeader(er);
Image = new imag(er);
DataLength = er.ReadUInt32();
er.BaseStream.Position = 0;
this.Data = er.ReadBytes((int)Image.DataLength);
this.Data = er.ReadBytes((int)DataLength);
}
finally
{
@ -53,6 +54,7 @@ namespace _3DS.NintendoWare.LYT1
er.Write(Data, 0, Data.Length);
Header.Write(er);
Image.Write(er);
er.Write(DataLength);
long curpos = er.BaseStream.Position;
er.BaseStream.Position = Data.Length + 0xC;
er.Write((uint)curpos);
@ -91,7 +93,7 @@ namespace _3DS.NintendoWare.LYT1
Image.Height = (ushort)b.Height;
Image.Format = 11;//10;//5;
Data = Textures.FromBitmap(b, Textures.ImageFormat.ETC1A4);//.RGB565);
Image.DataLength = (uint)Data.Length;
DataLength = (uint)Data.Length;
return true;
}
return false;
@ -153,7 +155,6 @@ namespace _3DS.NintendoWare.LYT1
Width = er.ReadUInt16();
Height = er.ReadUInt16();
Format = er.ReadUInt32();
DataLength = er.ReadUInt32();
}
public void Write(EndianBinaryWriter er)
{
@ -162,14 +163,12 @@ namespace _3DS.NintendoWare.LYT1
er.Write(Width);
er.Write(Height);
er.Write(Format);
er.Write(DataLength);
}
public String Signature;
public UInt32 SectionSize;//Without signature
public UInt32 SectionSize;
public UInt16 Width;
public UInt16 Height;
public UInt32 Format;
public UInt32 DataLength;
public Textures.ImageFormat GetGPUTextureFormat()
{
@ -194,6 +193,7 @@ namespace _3DS.NintendoWare.LYT1
throw new Exception("Unknown Image Format!");
}
}
public UInt32 DataLength;
public Bitmap ToBitmap()
{

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -86,7 +86,7 @@ namespace _3DS
[BinaryFixedSize(4)]
public String Signature;
public UInt16 HeaderSize;
[BinaryBOM(0xFEFF)]
//[BinaryBOM(0xFEFF)]
public UInt16 Endianness;
public UInt32 FileSize;
public UInt32 FileDataOffset;

217
3DS/UI/ThemeViewerNew.Designer.cs generated Normal file
View File

@ -0,0 +1,217 @@
namespace _3DS.UI
{
partial class ThemeViewerNew
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.tabPage8 = new System.Windows.Forms.TabPage();
this.tabPage9 = new System.Windows.Forms.TabPage();
this.tabPage10 = new System.Windows.Forms.TabPage();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.tabPage11 = new System.Windows.Forms.TabPage();
this.tabPage12 = new System.Windows.Forms.TabPage();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabControl1.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Controls.Add(this.tabPage5);
this.tabControl1.Controls.Add(this.tabPage6);
this.tabControl1.Controls.Add(this.tabPage8);
this.tabControl1.Controls.Add(this.tabPage9);
this.tabControl1.Controls.Add(this.tabPage10);
this.tabControl1.Controls.Add(this.tabPage7);
this.tabControl1.Controls.Add(this.tabPage11);
this.tabControl1.Controls.Add(this.tabPage12);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(727, 351);
this.tabControl1.TabIndex = 0;
//
// tabPage2
//
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(719, 325);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Bottom BG";
this.tabPage2.UseVisualStyleBackColor = true;
//
// tabPage3
//
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(719, 325);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Selector";
this.tabPage3.UseVisualStyleBackColor = true;
//
// tabPage4
//
this.tabPage4.Location = new System.Drawing.Point(4, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(719, 325);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "Folder";
this.tabPage4.UseVisualStyleBackColor = true;
//
// tabPage5
//
this.tabPage5.Location = new System.Drawing.Point(4, 22);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
this.tabPage5.Size = new System.Drawing.Size(719, 325);
this.tabPage5.TabIndex = 4;
this.tabPage5.Text = "Icon";
this.tabPage5.UseVisualStyleBackColor = true;
//
// tabPage8
//
this.tabPage8.Location = new System.Drawing.Point(4, 22);
this.tabPage8.Name = "tabPage8";
this.tabPage8.Padding = new System.Windows.Forms.Padding(3);
this.tabPage8.Size = new System.Drawing.Size(719, 325);
this.tabPage8.TabIndex = 7;
this.tabPage8.Text = "Title Balloon";
this.tabPage8.UseVisualStyleBackColor = true;
//
// tabPage9
//
this.tabPage9.Location = new System.Drawing.Point(4, 22);
this.tabPage9.Name = "tabPage9";
this.tabPage9.Padding = new System.Windows.Forms.Padding(3);
this.tabPage9.Size = new System.Drawing.Size(719, 325);
this.tabPage9.TabIndex = 8;
this.tabPage9.Text = "Icon Plate";
this.tabPage9.UseVisualStyleBackColor = true;
//
// tabPage10
//
this.tabPage10.Location = new System.Drawing.Point(4, 22);
this.tabPage10.Name = "tabPage10";
this.tabPage10.Padding = new System.Windows.Forms.Padding(3);
this.tabPage10.Size = new System.Drawing.Size(719, 325);
this.tabPage10.TabIndex = 9;
this.tabPage10.Text = "Folder Plate";
this.tabPage10.UseVisualStyleBackColor = true;
//
// tabPage6
//
this.tabPage6.Location = new System.Drawing.Point(4, 22);
this.tabPage6.Name = "tabPage6";
this.tabPage6.Padding = new System.Windows.Forms.Padding(3);
this.tabPage6.Size = new System.Drawing.Size(719, 325);
this.tabPage6.TabIndex = 10;
this.tabPage6.Text = "Buttons";
this.tabPage6.UseVisualStyleBackColor = true;
//
// tabPage7
//
this.tabPage7.Location = new System.Drawing.Point(4, 22);
this.tabPage7.Name = "tabPage7";
this.tabPage7.Padding = new System.Windows.Forms.Padding(3);
this.tabPage7.Size = new System.Drawing.Size(719, 325);
this.tabPage7.TabIndex = 11;
this.tabPage7.Text = "Top Screen Text";
this.tabPage7.UseVisualStyleBackColor = true;
//
// tabPage11
//
this.tabPage11.Location = new System.Drawing.Point(4, 22);
this.tabPage11.Name = "tabPage11";
this.tabPage11.Padding = new System.Windows.Forms.Padding(3);
this.tabPage11.Size = new System.Drawing.Size(719, 325);
this.tabPage11.TabIndex = 12;
this.tabPage11.Text = "Sound Effects";
this.tabPage11.UseVisualStyleBackColor = true;
//
// tabPage12
//
this.tabPage12.Location = new System.Drawing.Point(4, 22);
this.tabPage12.Name = "tabPage12";
this.tabPage12.Padding = new System.Windows.Forms.Padding(3);
this.tabPage12.Size = new System.Drawing.Size(719, 325);
this.tabPage12.TabIndex = 13;
this.tabPage12.Text = "Settings";
this.tabPage12.UseVisualStyleBackColor = true;
//
// tabPage1
//
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(719, 325);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Top BG";
this.tabPage1.UseVisualStyleBackColor = true;
//
// ThemeViewerNew
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(727, 351);
this.Controls.Add(this.tabControl1);
this.Name = "ThemeViewerNew";
this.Text = "ThemeViewerNew";
this.tabControl1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.TabPage tabPage5;
private System.Windows.Forms.TabPage tabPage8;
private System.Windows.Forms.TabPage tabPage9;
private System.Windows.Forms.TabPage tabPage10;
private System.Windows.Forms.TabPage tabPage6;
private System.Windows.Forms.TabPage tabPage7;
private System.Windows.Forms.TabPage tabPage11;
private System.Windows.Forms.TabPage tabPage12;
private System.Windows.Forms.TabPage tabPage1;
}
}

19
3DS/UI/ThemeViewerNew.cs Normal file
View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace _3DS.UI
{
public partial class ThemeViewerNew : Form
{
public ThemeViewerNew()
{
InitializeComponent();
}
}
}

120
3DS/UI/ThemeViewerNew.resx Normal file
View File

@ -0,0 +1,120 @@
<?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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -25,6 +25,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LegoPirates", "LegoPirates\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GCNWii", "GCNWii\GCNWii.csproj", "{E71F0C2A-4D4D-4C6D-9CA2-C6DD2F91C649}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WiiU", "WiiU\WiiU.csproj", "{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -125,6 +127,16 @@ Global
{E71F0C2A-4D4D-4C6D-9CA2-C6DD2F91C649}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{E71F0C2A-4D4D-4C6D-9CA2-C6DD2F91C649}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{E71F0C2A-4D4D-4C6D-9CA2-C6DD2F91C649}.Release|x86.ActiveCfg = Release|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Debug|x86.ActiveCfg = Debug|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Release|Any CPU.Build.0 = Release|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("Devbuild")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -48,6 +48,7 @@ namespace LibEveryFileExplorer.IO
if (f.MemberType == MemberTypes.Property) FieldType = ((PropertyInfo)f).PropertyType;
else FieldType = ((FieldInfo)f).FieldType;
if (GetAttributeValue<bool>(f, typeof(BinaryIgnoreAttribute), false)) continue;
if (f.GetCustomAttributes(typeof(BinaryBOMAttribute), true).Length != 0) Endianness = IO.Endianness.BigEndian;
object Result;
if (FieldType.IsArray)
{
@ -57,21 +58,34 @@ namespace LibEveryFileExplorer.IO
{
switch (FieldType.GetElementType().Name)
{
/*case "Boolean":
case "Boolean":
{
SizeType Size = SizeType.Byte;
object[] att = t.GetCustomAttributes(typeof(BinarySizeAttribute), true);
if (att.Length > 0) Size = ((BinarySizeAttribute)att[0]).FieldSize;
switch (Size)
BooleanSize b = GetAttributeValue<BooleanSize>(f, typeof(BinaryBooleanSizeAttribute), BooleanSize.U32);
Result = new Boolean[ArraySize];
switch (b)
{
case SizeType.Byte: o = er.ReadByte() != 0; break;
case SizeType.Short: o = er.ReadUInt16() != 0; break;
case SizeType.Tri: o = er.ReadUInt24() != 0; break;
case SizeType.Int: o = er.ReadUInt32() != 0; break;
case SizeType.Long: o = er.ReadUInt64() != 0; break;
case BooleanSize.U8:
for (int i = 0; i < ArraySize; i++)
{
((Boolean[])Result)[i] = ReadByte() == 1;
}
break;
case BooleanSize.U16:
for (int i = 0; i < ArraySize; i++)
{
((Boolean[])Result)[i] = ReadUInt16() == 1;
}
break;
case BooleanSize.U32:
for (int i = 0; i < ArraySize; i++)
{
((Boolean[])Result)[i] = ReadUInt32() == 1;
}
break;
default: throw new Exception("Invalid BooleanSize Value!");
}
break;
}*/
}
case "Byte": Result = ReadBytes(ArraySize); break;
case "SByte": Result = ReadSBytes(ArraySize); break;
case "Int16": Result = ReadInt16s(ArraySize); break;
@ -233,6 +247,12 @@ namespace LibEveryFileExplorer.IO
if (!ssig.Equals(Result)) throw new SignatureNotCorrectException((string)Result, ssig, BaseStream.Position - ssig.Length);
}
}
if (f.GetCustomAttributes(typeof(BinaryBOMAttribute), true).Length != 0)
{
uint LittleEndian = GetAttributeValue<uint>(f, typeof(BinaryBOMAttribute), 0);
if (Convert.ToUInt32(Result).Equals(LittleEndian)) Endianness = IO.Endianness.LittleEndian;
else Endianness = IO.Endianness.BigEndian;
}
}
}

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -0,0 +1,179 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LibEveryFileExplorer.Files;
using System.Drawing;
using System.IO;
using LibEveryFileExplorer.IO;
using System.Windows.Forms;
using WiiU.UI;
using System.Drawing.Imaging;
using LibEveryFileExplorer.IO.Serialization;
namespace WiiU.NintendoWare.LYT2
{
public class FLIM : FileFormat<FLIM.FLIMIdentifier>, IConvertable, IViewable
{
public FLIM(byte[] Data)
{
EndianBinaryReaderEx er = new EndianBinaryReaderEx(new MemoryStream(Data), Endianness.LittleEndian);
er.BaseStream.Position = Data.Length - 0x28;
try
{
Header = new FLIMHeader(er);
Image = new imag(er);
DataLength = er.ReadUInt32();
er.BaseStream.Position = 0;
this.Data = er.ReadBytes((int)DataLength);
}
finally
{
er.Close();
}
}
public Form GetDialog()
{
return new FLIMViewer(this);
}
//public string GetSaveDefaultFileFilter()
//{
// return "Cafe Layout Images (*.bflim)|*.bflim";
//}
public string GetConversionFileFilters()
{
return "Portable Network Graphics (*.png)|*.png";
}
public bool Convert(int FilterIndex, string Path)
{
switch (FilterIndex)
{
case 0:
File.Create(Path).Close();
ToBitmap().Save(Path, ImageFormat.Png);
return true;
}
return false;
}
public byte[] Data;
public FLIMHeader Header;
public class FLIMHeader
{
public FLIMHeader(EndianBinaryReaderEx er)
{
er.ReadObject(this);
}
/*public void Write(EndianBinaryWriter er)
{
er.Write(Signature, Encoding.ASCII, false);
er.Write(Endianness);
er.Write(HeaderSize);
er.Write(Version);
er.Write((uint)0);
er.Write(NrBlocks);
}*/
[BinaryStringSignature("FLIM")]
[BinaryFixedSize(4)]
public String Signature;
[BinaryBOM(0xFFFE)]
public UInt16 Endianness;
public UInt16 HeaderSize;
public UInt32 Version;
public UInt32 FileSize;
public UInt32 NrBlocks;
}
public imag Image;
public class imag
{
public imag(EndianBinaryReaderEx er)
{
er.ReadObject(this);
}
/*public void Write(EndianBinaryWriter er)
{
er.Write(Signature, Encoding.ASCII, false);
er.Write(SectionSize);
er.Write(Width);
er.Write(Height);
er.Write(Format);
er.Write(DataLength);
}*/
[BinaryStringSignature("imag")]
[BinaryFixedSize(4)]
public String Signature;
public UInt32 SectionSize;
public UInt16 Width;
public UInt16 Height;
public UInt16 Alignment;
public Byte Format;
public Byte Unknown;
//Tempoarly use 3ds stuff!
public _3DS.GPU.Textures.ImageFormat GetGPUTextureFormat()
{
switch (Format)
{
case 0: return _3DS.GPU.Textures.ImageFormat.L8;
case 1: return _3DS.GPU.Textures.ImageFormat.A8;
case 2: return _3DS.GPU.Textures.ImageFormat.LA4;
case 3: return _3DS.GPU.Textures.ImageFormat.LA8;
case 4: return _3DS.GPU.Textures.ImageFormat.HILO8;
case 5: return _3DS.GPU.Textures.ImageFormat.RGB565;
case 6: return _3DS.GPU.Textures.ImageFormat.RGB8;
case 7: return _3DS.GPU.Textures.ImageFormat.RGBA5551;
case 8: return _3DS.GPU.Textures.ImageFormat.RGBA4;
case 9: return _3DS.GPU.Textures.ImageFormat.RGBA8;
case 10: return _3DS.GPU.Textures.ImageFormat.ETC1;
case 11: return _3DS.GPU.Textures.ImageFormat.ETC1A4;
case 0x12: return _3DS.GPU.Textures.ImageFormat.L4;
case 0x13: return _3DS.GPU.Textures.ImageFormat.A4;
}
throw new Exception("Unknown Image Format!");
}
}
public UInt32 DataLength;
//Tempoarly use 3ds stuff!
public Bitmap ToBitmap()
{
if (Image.Unknown == 0) return _3DS.GPU.Textures.ToBitmap(Data, Image.Width, Image.Height, Image.GetGPUTextureFormat());
return _3DS.GPU.Textures.ToBitmap(Data, Image.Height, Image.Width, Image.GetGPUTextureFormat());
}
public class FLIMIdentifier : FileFormatIdentifier
{
public override string GetCategory()
{
return Category_Graphics;
}
public override string GetFileDescription()
{
return "Cafe Layout Images (FLIM)";
}
public override string GetFileFilter()
{
return "Cafe Layout Images (*.bflim)|*.bflim";
}
public override Bitmap GetIcon()
{
return Resource.image;
}
public override FormatMatch IsFormat(EFEFile File)
{
if (File.Data.Length > 0x28 && File.Data[File.Data.Length - 0x28] == 'F' && File.Data[File.Data.Length - 0x27] == 'L' && File.Data[File.Data.Length - 0x26] == 'I' && File.Data[File.Data.Length - 0x25] == 'M' && (IOUtil.ReadU32LE(File.Data, File.Data.Length - 0x4) == (File.Data.Length - 0x28) || IOUtil.ReadU32BE(File.Data, File.Data.Length - 0x4) == (File.Data.Length - 0x28))) return FormatMatch.Content;
return FormatMatch.No;
}
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Wii U Plugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Every File Explorer")]
[assembly: AssemblyCopyright("Copyright © Florian Nouwt 2014-2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("5be0e6c0-4011-448c-9c62-4e91d82a4508")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

73
WiiU/Resource.Designer.cs generated Normal file
View File

@ -0,0 +1,73 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WiiU {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resource {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resource() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </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("WiiU.Resource", typeof(Resource).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap image {
get {
object obj = ResourceManager.GetObject("image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

124
WiiU/Resource.resx Normal file
View File

@ -0,0 +1,124 @@
<?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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="image" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

BIN
WiiU/Resources/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

66
WiiU/UI/FLIMViewer.Designer.cs generated Normal file
View File

@ -0,0 +1,66 @@
namespace WiiU.UI
{
partial class FLIMViewer
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FLIMViewer));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.White;
this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(565, 386);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// FLIMViewer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(565, 386);
this.Controls.Add(this.pictureBox1);
this.Name = "FLIMViewer";
this.Text = "FLIMViewer";
this.Load += new System.EventHandler(this.FLIMViewer_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
}
}

27
WiiU/UI/FLIMViewer.cs Normal file
View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WiiU.NintendoWare.LYT2;
namespace WiiU.UI
{
public partial class FLIMViewer : Form
{
FLIM Image;
public FLIMViewer(FLIM Image)
{
this.Image = Image;
InitializeComponent();
}
private void FLIMViewer_Load(object sender, EventArgs e)
{
pictureBox1.Image = Image.ToBitmap();
}
}
}

173
WiiU/UI/FLIMViewer.resx Normal file
View File

@ -0,0 +1,173 @@
<?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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
DwAAjA8AAP1SAACBQAAAfXkAAOmL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9CxEXbvUG9g5c9Ll4+ZL7pQt9Tn1nL9tdPnXF5srJq4yrndcsr3X0W/S3/2TxU/uA5UDHdavr
XTesb3QPLh88M+QwdP6m681Lt7xuXbu94vbgcOjwnZHokdE77DtTd1PuvriXeW/h/sYH6AdFD6UeVjxS
fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+
tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/
6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALEgAACxIB0t1+/AAAAERJREFUOE/tzLENADAM
w7D8f1t+clchENK96MDNciVZdXc2GpFFpBFZRBqRRaQRWUQakUWkEVlEGpFFdB3Mw+kfPHCQOn42MC4n
CVKmAAAAAElFTkSuQmCC
</value>
</data>
</root>

97
WiiU/WiiU.csproj Normal file
View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{85AFDAA0-C794-46F2-8FB9-DE80206B7DC6}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WiiU</RootNamespace>
<AssemblyName>WiiU</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</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="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="NintendoWare\LYT2\FLIM.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resource.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
<Compile Include="UI\FLIMViewer.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\FLIMViewer.Designer.cs">
<DependentUpon>FLIMViewer.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="NintendoWare\FONT\" />
<Folder Include="NintendoWare\GFX\" />
<Folder Include="NintendoWare\SND\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\3DS\3DS.csproj">
<Project>{F28E77C4-BB68-4513-9468-8EABDE8DC9CB}</Project>
<Name>3DS</Name>
</ProjectReference>
<ProjectReference Include="..\LibEveryFileExplorer\LibEveryFileExplorer.csproj">
<Project>{39DBD12F-F7E3-4E9A-97A2-0722A4BA2A26}</Project>
<Name>LibEveryFileExplorer</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resource.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resource.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="UI\FLIMViewer.resx">
<DependentUpon>FLIMViewer.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Resources\image.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "$(SolutionDir)\EveryFileExplorer\bin\Debug\Plugins\$(TargetFileName)"</PostBuildEvent>
</PropertyGroup>
<!-- 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>