Removed GENH creator source
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@857 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
@ -1,38 +0,0 @@
|
||||
Type=Exe
|
||||
Form=Form1.frm
|
||||
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINDOWS\system32\stdole2.tlb#OLE Automation
|
||||
Object={49CBE90A-5F9F-4127-919C-0B74E18CB87E}#1.0#0; CK-Tools.ocx
|
||||
Form=frmABOUT.frm
|
||||
IconForm="Form1"
|
||||
Startup="Form1"
|
||||
HelpFile=""
|
||||
ExeName32="GENeric Header Creator 3.exe"
|
||||
Path32="C:\Dokumente und Einstellungen\manakoAT\Desktop\Suikoden (E) [SLES-00527]"
|
||||
Command32=""
|
||||
Name="Projekt1"
|
||||
HelpContextID="0"
|
||||
CompatibleMode="0"
|
||||
MajorVer=1
|
||||
MinorVer=0
|
||||
RevisionVer=0
|
||||
AutoIncrementVer=0
|
||||
ServerSupportFiles=0
|
||||
VersionCompanyName="PC"
|
||||
CompilationType=0
|
||||
OptimizationType=0
|
||||
FavorPentiumPro(tm)=0
|
||||
CodeViewDebugInfo=0
|
||||
NoAliasing=0
|
||||
BoundsCheck=0
|
||||
OverflowCheck=0
|
||||
FlPointCheck=0
|
||||
FDIVCheck=0
|
||||
UnroundedFP=0
|
||||
StartMode=0
|
||||
Unattended=0
|
||||
Retained=0
|
||||
ThreadPerObject=0
|
||||
MaxNumberOfThreads=1
|
||||
|
||||
[MS Transaction Server]
|
||||
AutoRefresh=1
|
@ -1,2 +0,0 @@
|
||||
Form1 = 0, 0, 601, 456, Z, 22, 29, 623, 485, C
|
||||
frmABOUT = 0, 0, 0, 0, C, 132, 174, 733, 630, C
|
@ -1,19 +0,0 @@
|
||||
VERSION 5.00
|
||||
Begin VB.Form frmABOUT
|
||||
Caption = "Form2"
|
||||
ClientHeight = 3090
|
||||
ClientLeft = 60
|
||||
ClientTop = 450
|
||||
ClientWidth = 4680
|
||||
LinkTopic = "Form2"
|
||||
ScaleHeight = 3090
|
||||
ScaleWidth = 4680
|
||||
StartUpPosition = 3 'Windows-Standard
|
||||
End
|
||||
Attribute VB_Name = "frmABOUT"
|
||||
Attribute VB_GlobalNameSpace = False
|
||||
Attribute VB_Creatable = False
|
||||
Attribute VB_PredeclaredId = True
|
||||
Attribute VB_Exposed = False
|
||||
Option Explicit
|
||||
|
@ -1,20 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C# Express 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Generic Header Creator 4", "Generic Header Creator 4\Generic Header Creator 4.csproj", "{9AAD37A7-C0AB-463F-A8A4-23568C405AD6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9AAD37A7-C0AB-463F-A8A4-23568C405AD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9AAD37A7-C0AB-463F-A8A4-23568C405AD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9AAD37A7-C0AB-463F-A8A4-23568C405AD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9AAD37A7-C0AB-463F-A8A4-23568C405AD6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@ -1,333 +0,0 @@
|
||||
namespace Generic_Header_Creator_4
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <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.listBox1 = new System.Windows.Forms.ListBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtInputFileCreator = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtGENHOutputNameCreator = new System.Windows.Forms.TextBox();
|
||||
this.cmdCreateGENH = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.txtHeaderSkipCreator = new System.Windows.Forms.TextBox();
|
||||
this.txtFrequencyCreator = new System.Windows.Forms.TextBox();
|
||||
this.txtChannelsCreator = new System.Windows.Forms.TextBox();
|
||||
this.txtInterleaveCreator = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.comboFileFomat = new System.Windows.Forms.ComboBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.txtLoopStartCreator = new System.Windows.Forms.TextBox();
|
||||
this.txtLoopEndCreator = new System.Windows.Forms.TextBox();
|
||||
this.cmdUseFileEnd = new System.Windows.Forms.Button();
|
||||
this.txtInputFileLen = new System.Windows.Forms.TextBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// listBox1
|
||||
//
|
||||
this.listBox1.FormattingEnabled = true;
|
||||
this.listBox1.Location = new System.Drawing.Point(12, 90);
|
||||
this.listBox1.Name = "listBox1";
|
||||
this.listBox1.Size = new System.Drawing.Size(320, 212);
|
||||
this.listBox1.TabIndex = 0;
|
||||
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(9, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(57, 13);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "File Name:";
|
||||
//
|
||||
// txtInputFileCreator
|
||||
//
|
||||
this.txtInputFileCreator.Enabled = false;
|
||||
this.txtInputFileCreator.Location = new System.Drawing.Point(12, 25);
|
||||
this.txtInputFileCreator.Name = "txtInputFileCreator";
|
||||
this.txtInputFileCreator.Size = new System.Drawing.Size(228, 20);
|
||||
this.txtInputFileCreator.TabIndex = 2;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 48);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(73, 13);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "Output Name:";
|
||||
//
|
||||
// txtGENHOutputNameCreator
|
||||
//
|
||||
this.txtGENHOutputNameCreator.Location = new System.Drawing.Point(12, 64);
|
||||
this.txtGENHOutputNameCreator.Name = "txtGENHOutputNameCreator";
|
||||
this.txtGENHOutputNameCreator.Size = new System.Drawing.Size(320, 20);
|
||||
this.txtGENHOutputNameCreator.TabIndex = 4;
|
||||
//
|
||||
// cmdCreateGENH
|
||||
//
|
||||
this.cmdCreateGENH.Location = new System.Drawing.Point(12, 308);
|
||||
this.cmdCreateGENH.Name = "cmdCreateGENH";
|
||||
this.cmdCreateGENH.Size = new System.Drawing.Size(320, 24);
|
||||
this.cmdCreateGENH.TabIndex = 5;
|
||||
this.cmdCreateGENH.Text = "Create GENeric Header";
|
||||
this.cmdCreateGENH.UseVisualStyleBackColor = true;
|
||||
this.cmdCreateGENH.Click += new System.EventHandler(this.cmdCreateGENH_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(366, 97);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(54, 13);
|
||||
this.label3.TabIndex = 6;
|
||||
this.label3.Text = "Channels:";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(366, 48);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(69, 13);
|
||||
this.label4.TabIndex = 7;
|
||||
this.label4.Text = "Header Skip:";
|
||||
//
|
||||
// txtHeaderSkipCreator
|
||||
//
|
||||
this.txtHeaderSkipCreator.Location = new System.Drawing.Point(369, 64);
|
||||
this.txtHeaderSkipCreator.Name = "txtHeaderSkipCreator";
|
||||
this.txtHeaderSkipCreator.Size = new System.Drawing.Size(100, 20);
|
||||
this.txtHeaderSkipCreator.TabIndex = 8;
|
||||
//
|
||||
// txtFrequencyCreator
|
||||
//
|
||||
this.txtFrequencyCreator.Location = new System.Drawing.Point(480, 113);
|
||||
this.txtFrequencyCreator.Name = "txtFrequencyCreator";
|
||||
this.txtFrequencyCreator.Size = new System.Drawing.Size(100, 20);
|
||||
this.txtFrequencyCreator.TabIndex = 9;
|
||||
//
|
||||
// txtChannelsCreator
|
||||
//
|
||||
this.txtChannelsCreator.Location = new System.Drawing.Point(369, 113);
|
||||
this.txtChannelsCreator.Name = "txtChannelsCreator";
|
||||
this.txtChannelsCreator.Size = new System.Drawing.Size(100, 20);
|
||||
this.txtChannelsCreator.TabIndex = 10;
|
||||
//
|
||||
// txtInterleaveCreator
|
||||
//
|
||||
this.txtInterleaveCreator.Location = new System.Drawing.Point(480, 64);
|
||||
this.txtInterleaveCreator.Name = "txtInterleaveCreator";
|
||||
this.txtInterleaveCreator.Size = new System.Drawing.Size(100, 20);
|
||||
this.txtInterleaveCreator.TabIndex = 11;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(477, 97);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(60, 13);
|
||||
this.label5.TabIndex = 12;
|
||||
this.label5.Text = "Frequency:";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(477, 48);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(57, 13);
|
||||
this.label6.TabIndex = 13;
|
||||
this.label6.Text = "Interleave:";
|
||||
//
|
||||
// comboFileFomat
|
||||
//
|
||||
this.comboFileFomat.FormattingEnabled = true;
|
||||
this.comboFileFomat.Items.AddRange(new object[] {
|
||||
"0x00 - PlayStation 4-bit ADPCM",
|
||||
"0x01 - XBOX 4-bit IMA ADPCM",
|
||||
"0x02 - GameCube ADP/DTK 4-bit ADPCM",
|
||||
"0x03 - PCM RAW (Big Endian)",
|
||||
"0x04 - PCM RAW (Little Endian)",
|
||||
"0x05 - PCM RAW (8-Bit)",
|
||||
"0x06 - Squareroot-delta-exact 8-bit DPCM",
|
||||
"0x07 - Interleaved DVI 4-Bit IMA ADPCM",
|
||||
"0x08 - MPEG Layer Audio File (MP1/2/3)",
|
||||
"0x09 - 4-bit IMA ADPCM",
|
||||
"0x0A - Yamaha AICA 4-bit ADPCM",
|
||||
"0x0B - Microsoft 4-bit IMA ADPCM",
|
||||
"0x0C - Nintendo GameCube DSP 4-bit ADPCM",
|
||||
"0x0D - PCM RAW (8-Bit Unsigned)",
|
||||
"0x0E - PlayStation 4-bit ADPCM (with bad flags)"});
|
||||
this.comboFileFomat.Location = new System.Drawing.Point(338, 24);
|
||||
this.comboFileFomat.Name = "comboFileFomat";
|
||||
this.comboFileFomat.Size = new System.Drawing.Size(302, 21);
|
||||
this.comboFileFomat.TabIndex = 15;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(338, 5);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(61, 13);
|
||||
this.label7.TabIndex = 16;
|
||||
this.label7.Text = "File Format:";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(366, 151);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(108, 13);
|
||||
this.label8.TabIndex = 17;
|
||||
this.label8.Text = "Loop Start (Samples):";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(477, 151);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(105, 13);
|
||||
this.label9.TabIndex = 18;
|
||||
this.label9.Text = "Loop End (Samples):";
|
||||
//
|
||||
// txtLoopStartCreator
|
||||
//
|
||||
this.txtLoopStartCreator.Location = new System.Drawing.Point(369, 167);
|
||||
this.txtLoopStartCreator.Name = "txtLoopStartCreator";
|
||||
this.txtLoopStartCreator.Size = new System.Drawing.Size(100, 20);
|
||||
this.txtLoopStartCreator.TabIndex = 19;
|
||||
//
|
||||
// txtLoopEndCreator
|
||||
//
|
||||
this.txtLoopEndCreator.Location = new System.Drawing.Point(480, 167);
|
||||
this.txtLoopEndCreator.Name = "txtLoopEndCreator";
|
||||
this.txtLoopEndCreator.Size = new System.Drawing.Size(100, 20);
|
||||
this.txtLoopEndCreator.TabIndex = 20;
|
||||
//
|
||||
// cmdUseFileEnd
|
||||
//
|
||||
this.cmdUseFileEnd.Location = new System.Drawing.Point(369, 200);
|
||||
this.cmdUseFileEnd.Name = "cmdUseFileEnd";
|
||||
this.cmdUseFileEnd.Size = new System.Drawing.Size(210, 23);
|
||||
this.cmdUseFileEnd.TabIndex = 21;
|
||||
this.cmdUseFileEnd.Text = "Use File End";
|
||||
this.cmdUseFileEnd.UseVisualStyleBackColor = true;
|
||||
this.cmdUseFileEnd.Click += new System.EventHandler(this.cmdUseFileEnd_Click);
|
||||
//
|
||||
// txtInputFileLen
|
||||
//
|
||||
this.txtInputFileLen.Location = new System.Drawing.Point(246, 24);
|
||||
this.txtInputFileLen.Name = "txtInputFileLen";
|
||||
this.txtInputFileLen.Size = new System.Drawing.Size(85, 20);
|
||||
this.txtInputFileLen.TabIndex = 22;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(243, 9);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(47, 13);
|
||||
this.label10.TabIndex = 23;
|
||||
this.label10.Text = "Fie Size:";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(652, 355);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.txtInputFileLen);
|
||||
this.Controls.Add(this.cmdUseFileEnd);
|
||||
this.Controls.Add(this.txtLoopEndCreator);
|
||||
this.Controls.Add(this.txtLoopStartCreator);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.comboFileFomat);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.txtInterleaveCreator);
|
||||
this.Controls.Add(this.txtChannelsCreator);
|
||||
this.Controls.Add(this.txtFrequencyCreator);
|
||||
this.Controls.Add(this.txtHeaderSkipCreator);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.cmdCreateGENH);
|
||||
this.Controls.Add(this.txtGENHOutputNameCreator);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.txtInputFileCreator);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.listBox1);
|
||||
this.Name = "Form1";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListBox listBox1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox txtInputFileCreator;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox txtGENHOutputNameCreator;
|
||||
private System.Windows.Forms.Button cmdCreateGENH;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox txtHeaderSkipCreator;
|
||||
private System.Windows.Forms.TextBox txtFrequencyCreator;
|
||||
private System.Windows.Forms.TextBox txtChannelsCreator;
|
||||
private System.Windows.Forms.TextBox txtInterleaveCreator;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.ComboBox comboFileFomat;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.TextBox txtLoopStartCreator;
|
||||
private System.Windows.Forms.TextBox txtLoopEndCreator;
|
||||
private System.Windows.Forms.Button cmdUseFileEnd;
|
||||
private System.Windows.Forms.TextBox txtInputFileLen;
|
||||
private System.Windows.Forms.Label label10;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,159 +0,0 @@
|
||||
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 Generic_Header_Creator_4
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
// Form Load, we will get every filename in the folder and
|
||||
// give it to the ListBox
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
string[] filenames = Directory.GetFiles(Path.GetDirectoryName(Application.ExecutablePath), "*.*");
|
||||
foreach (string f in filenames)
|
||||
this.listBox1.Items.Add(Path.GetFileName(f));
|
||||
}
|
||||
|
||||
|
||||
// Select a file by clicking the ListBox
|
||||
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{ // Give the selected name to the "Input File" TextBox
|
||||
this.txtInputFileCreator.Text = this.listBox1.Text;
|
||||
// Set up the Output Name into a TextBox, which can be changed
|
||||
this.txtGENHOutputNameCreator.Text = (Path.GetFileNameWithoutExtension(this.txtInputFileCreator.Text) + ".GENH");
|
||||
// Open the Input File as "FileStream" from the previous first TextBox
|
||||
// FileStream strInputFileCreator = new FileStream(Path.GetFullPath(this.txtInputFileCreator.Text), FileMode.Open, FileAccess.Read);
|
||||
|
||||
FileInfo fi = new FileInfo(Path.GetFullPath(this.txtInputFileCreator.Text));
|
||||
string InputFileLen = fi.Length.ToString();
|
||||
this.txtInputFileLen.Text = InputFileLen;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void cmdCreateGENH_Click(object sender, EventArgs e)
|
||||
{
|
||||
FileStream strInputFileCreator = new FileStream(Path.GetFullPath(this.txtInputFileCreator.Text), FileMode.Open, FileAccess.Read);
|
||||
|
||||
|
||||
|
||||
// Place checks for values and all needed stuff here
|
||||
int GENHToken = 0x484E4547; //HNEG (GENH)
|
||||
int GENHChannels = int.Parse(this.txtChannelsCreator.Text);
|
||||
int GENHInterleave = int.Parse(this.txtInterleaveCreator.Text);
|
||||
int GENHFrequency = int.Parse(this.txtFrequencyCreator.Text);
|
||||
|
||||
int GENHLoopStart = int.Parse(this.txtLoopStartCreator.Text);
|
||||
int GENHLoopEnd = int.Parse(this.txtLoopEndCreator.Text);
|
||||
int GENHIdentiferByte = (this.comboFileFomat.SelectedIndex);
|
||||
int GENHHeaderSkip = int.Parse(this.txtHeaderSkipCreator.Text);
|
||||
//int GENHFileStartOffset;
|
||||
|
||||
|
||||
// Call the Export Routine with given Values
|
||||
// Name_Of_The_Function(Input_File,Start_Offset,Export_Length,File_To_Write_To)
|
||||
ExtractChunkToFile(strInputFileCreator, 0, (int)strInputFileCreator.Length, this.txtGENHOutputNameCreator.Text);
|
||||
|
||||
FileStream strOutputFileCreator = new FileStream(Path.GetFullPath(this.txtGENHOutputNameCreator.Text), FileMode.Open, FileAccess.Write);
|
||||
BinaryWriter bw = new BinaryWriter(strOutputFileCreator);
|
||||
|
||||
bw.Write(GENHToken); // 0x00
|
||||
bw.Write(GENHChannels); // 0x04
|
||||
bw.Write(GENHInterleave); // 0x08
|
||||
bw.Write(GENHFrequency); // 0x0C
|
||||
bw.Write(GENHLoopStart); // 0x10
|
||||
bw.Write(GENHLoopEnd); // 0x14
|
||||
bw.Write(GENHIdentiferByte); // 0x18
|
||||
|
||||
// flush and close
|
||||
bw.Flush();
|
||||
bw.Close();
|
||||
|
||||
|
||||
// Close the Input File after processing
|
||||
strInputFileCreator.Close();
|
||||
strInputFileCreator.Dispose();
|
||||
|
||||
strOutputFileCreator.Close();
|
||||
strOutputFileCreator.Dispose();
|
||||
}
|
||||
|
||||
|
||||
// This is the "Export Routine", all needed values were calculated earlier
|
||||
private void ExtractChunkToFile(Stream strInputFileCreator, long pOffset, int pLength, string strOutputFileCreator)
|
||||
{
|
||||
BinaryWriter bw = null;
|
||||
|
||||
try
|
||||
{ // Open the Output File
|
||||
bw = new BinaryWriter(File.Open(strOutputFileCreator, FileMode.Create, FileAccess.Write));
|
||||
bw.BaseStream.Position = 0x1000;
|
||||
int read = 0;
|
||||
int totalBytes = 0;
|
||||
byte[] bytes = new byte[2048];
|
||||
strInputFileCreator.Seek((long)pOffset, SeekOrigin.Begin);
|
||||
|
||||
// write empty vals
|
||||
//bw.Write(new byte[headerSkip], 0, headerSkip);
|
||||
|
||||
int maxread = pLength > bytes.Length ? bytes.Length : pLength;
|
||||
|
||||
while ((read = strInputFileCreator.Read(bytes, 0, maxread)) > 0)
|
||||
{
|
||||
bw.Write(bytes, 0, read);
|
||||
totalBytes += read;
|
||||
|
||||
maxread = (pLength - totalBytes) > bytes.Length ? bytes.Length : (pLength - totalBytes);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (bw != null)
|
||||
{
|
||||
bw.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void cmdUseFileEnd_Click(object sender, EventArgs e)
|
||||
{
|
||||
int GENHIdentiferByte = (this.comboFileFomat.SelectedIndex);
|
||||
int GENHChannels = int.Parse(this.txtChannelsCreator.Text);
|
||||
|
||||
|
||||
FileStream strInputFileCreator = new FileStream(Path.GetFullPath(this.txtInputFileCreator.Text), FileMode.Open, FileAccess.Read);
|
||||
|
||||
|
||||
|
||||
switch (GENHIdentiferByte) {
|
||||
case 0:
|
||||
|
||||
break;
|
||||
case 1:
|
||||
|
||||
break;
|
||||
default:
|
||||
// alles andere interessiert uns nicht
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -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,89 +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>{9AAD37A7-C0AB-463F-A8A4-23568C405AD6}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Generic_Header_Creator_4</RootNamespace>
|
||||
<AssemblyName>Generic Header Creator 4</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</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">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.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>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</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 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
@ -1,21 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace Generic_Header_Creator_4
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// Der Haupteinstiegspunkt für die Anwendung.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 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("Generic Header Creator 4")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Private")]
|
||||
[assembly: AssemblyProduct("Generic Header Creator 4")]
|
||||
[assembly: AssemblyCopyright("Copyright © Private 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("d8ee2448-da6f-40eb-b626-7ce3e7c21ee2")]
|
||||
|
||||
// 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("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
@ -1,71 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
// Laufzeitversion:2.0.50727.3053
|
||||
//
|
||||
// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
|
||||
// der Code neu generiert wird.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Generic_Header_Creator_4.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
/// </summary>
|
||||
// Diese Klasse wurde von der StronglyTypedResourceBuilder-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 Option /str erneut aus, oder erstellen Sie 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 ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Generic_Header_Creator_4.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
/// Ressourcenlookups, 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,117 +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.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: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" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</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" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</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,30 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Generic_Header_Creator_4.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,16 +0,0 @@
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\bin\Debug\Generic Header Creator 4.exe
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\bin\Debug\Generic Header Creator 4.pdb
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\ResolveAssemblyReference.cache
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic_Header_Creator_4.Form1.resources
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic_Header_Creator_4.Properties.Resources.resources
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic Header Creator 4.csproj.GenerateResource.Cache
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic Header Creator 4.exe
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic Header Creator 4.pdb
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\ResolveAssemblyReference.cache
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic_Header_Creator_4.Form1.resources
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic_Header_Creator_4.Properties.Resources.resources
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic Header Creator 4.csproj.GenerateResource.Cache
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic Header Creator 4.exe
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\bin\Debug\Generic Header Creator 4.exe
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\bin\Debug\Generic Header Creator 4.pdb
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Debug\Generic Header Creator 4.pdb
|
@ -1,16 +0,0 @@
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\bin\Release\Generic Header Creator 4.exe
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\bin\Release\Generic Header Creator 4.pdb
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Release\ResolveAssemblyReference.cache
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic_Header_Creator_4.Properties.Resources.resources
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic Header Creator 4.csproj.GenerateResource.Cache
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic Header Creator 4.exe
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic Header Creator 4.pdb
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual C#\Generic Header Creator 4\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic_Header_Creator_4.Form1.resources
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic Header Creator 4.exe
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic Header Creator 4.pdb
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\bin\Release\Generic Header Creator 4.exe
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\bin\Release\Generic Header Creator 4.pdb
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Release\ResolveAssemblyReference.cache
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic_Header_Creator_4.Form1.resources
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic_Header_Creator_4.Properties.Resources.resources
|
||||
E:\_ARCHIV\#Tools - Programmieren\Visual CPP\_PROJECTS\VGMSTREAM\Generic Header Creator 4\Generic Header Creator 4\obj\Release\Generic Header Creator 4.csproj.GenerateResource.Cache
|
@ -12,15 +12,14 @@ VGMSTREAM * init_vgmstream_ps3_msf(STREAMFILE *streamFile) {
|
||||
int channel_count;
|
||||
int codec_id;
|
||||
|
||||
// int32_t (*read_32bit)(off_t,STREAMFILE*) = NULL;
|
||||
// int16_t (*read_16bit)(off_t,STREAMFILE*) = NULL;
|
||||
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("msf",filename_extension(filename))) goto fail;
|
||||
|
||||
/* MSFC */
|
||||
if (read_32bitBE(0x0,streamFile) != 0x4D534643) goto fail;
|
||||
|
||||
if (read_8bit(0x0,streamFile) != 0x4D) goto fail; /* M */
|
||||
if (read_8bit(0x1,streamFile) != 0x53) goto fail; /* S */
|
||||
if (read_8bit(0x2,streamFile) != 0x46) goto fail; /* F */
|
||||
|
||||
loop_flag = (read_32bitBE(0x18,streamFile) != 0xFFFFFFFF);
|
||||
if (loop_flag)
|
||||
@ -39,16 +38,17 @@ VGMSTREAM * init_vgmstream_ps3_msf(STREAMFILE *streamFile) {
|
||||
/* fill in the vital statistics */
|
||||
vgmstream->channels = channel_count;
|
||||
vgmstream->sample_rate = read_32bitBE(0x10,streamFile);
|
||||
|
||||
start_offset = 0x40;
|
||||
|
||||
switch (codec_id) {
|
||||
case 0x3:
|
||||
case 0x0: /* PCM (Big Endian) */
|
||||
{
|
||||
vgmstream->coding_type = coding_PSX;
|
||||
vgmstream->num_samples = read_32bitBE(0x0C,streamFile)/16/channel_count*28;
|
||||
vgmstream->coding_type = coding_PCM16BE;
|
||||
vgmstream->num_samples = read_32bitBE(0x0C,streamFile)/2/channel_count;
|
||||
if (loop_flag) {
|
||||
vgmstream->loop_start_sample = read_32bitBE(0x18,streamFile)/16/channel_count*28;
|
||||
vgmstream->loop_end_sample = read_32bitBE(0x0C,streamFile)/16/channel_count*28;
|
||||
vgmstream->loop_start_sample = loop_start/2/channel_count;
|
||||
vgmstream->loop_end_sample = loop_end/2/channel_count;
|
||||
}
|
||||
|
||||
if (channel_count == 1)
|
||||
@ -58,13 +58,32 @@ VGMSTREAM * init_vgmstream_ps3_msf(STREAMFILE *streamFile) {
|
||||
else if (channel_count > 1)
|
||||
{
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
vgmstream->interleave_block_size = read_32bitBE(0x14,streamFile); // Not sure
|
||||
vgmstream->interleave_block_size = 2;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0x3: /* PSx ADPCM */
|
||||
{
|
||||
vgmstream->coding_type = coding_PSX;
|
||||
vgmstream->num_samples = read_32bitBE(0x0C,streamFile)*28/16/channel_count;
|
||||
if (loop_flag) {
|
||||
vgmstream->loop_start_sample = loop_start*28/16/channel_count;
|
||||
vgmstream->loop_end_sample = loop_end*28/16/channel_count;
|
||||
}
|
||||
|
||||
if (channel_count == 1)
|
||||
{
|
||||
vgmstream->layout_type = layout_none;
|
||||
}
|
||||
else if (channel_count > 1)
|
||||
{
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
vgmstream->interleave_block_size = 0x10; // read_32bitBE(0x14,streamFile);
|
||||
}
|
||||
}
|
||||
break;
|
||||
#ifdef VGM_USE_MPEG
|
||||
case 0x7:
|
||||
/* MPEG */
|
||||
case 0x7: /* MPEG */
|
||||
{
|
||||
mpeg_codec_data *mpeg_data = NULL;
|
||||
struct mpg123_frameinfo mi;
|
||||
|