Skip to content

Commit

Permalink
Version 0.0.1 release!
Browse files Browse the repository at this point in the history
  • Loading branch information
maxton committed Mar 26, 2018
1 parent 3987e9b commit 91e18a7
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 20 deletions.
11 changes: 11 additions & 0 deletions LibForge/ForgeTool/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.IO;
using LibForge.Midi;

Expand Down Expand Up @@ -40,6 +41,14 @@ static void Main(string[] args)
}
}
break;
case "version":
var assembly = System.Reflection.Assembly.GetExecutingAssembly();
var version = FileVersionInfo.GetVersionInfo(assembly.Location).FileVersion;
var libAssembly = System.Reflection.Assembly.GetAssembly(typeof(RBMid));
var libVersion = FileVersionInfo.GetVersionInfo(libAssembly.Location).FileVersion;
Console.WriteLine($"ForgeTool v{version}");
Console.WriteLine($"LibForge v{libVersion}");
break;
case "test":
{
var dir = args[1];
Expand Down Expand Up @@ -89,6 +98,8 @@ static void Usage()
{
Console.WriteLine("Usage: ForgeTool.exe <verb> [options]");
Console.WriteLine("Verbs: ");
Console.WriteLine(" version");
Console.WriteLine(" - Prints the version number and exits");
Console.WriteLine(" rbmid2mid <input.rbmid> <output.mid>");
Console.WriteLine(" - converts a Forge midi to a Standard Midi File");
Console.WriteLine(" reprocess <input.rbmid> <output.rbmid>");
Expand Down
4 changes: 2 additions & 2 deletions LibForge/ForgeTool/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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")]
[assembly: AssemblyVersion("0.0.1.*")]
[assembly: AssemblyFileVersion("0.0.1.0")]
5 changes: 3 additions & 2 deletions LibForge/LibForge/Midi/RBMid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@ public struct BEAT
public float Unknown3;
public UNKSTRUCT1[] Unknown4;
public UNKSTRUCT2[] Unknown5;
public int Unknown10;
public int NumPlayableTracks;
// Takes values 90, 92, 125, 130, 170, 250
public int Unknown6;
public uint NumPlayableTracks;
public int Unknown12;
public byte Unknown13;
public float PreviewStartMillis;
Expand Down
27 changes: 14 additions & 13 deletions LibForge/LibForge/Midi/RBMidReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,30 @@ private RBMid Read()
var r = new RBMid();
r.Format = Check(Int(), 16);
r.Lyrics = Arr(ReadLyrics, MaxInstTracks);
r.DrumFills = Arr(ReadDrumFills, MaxInstTracks);
r.Anims = Arr(ReadAnims, MaxKeysAnimTracks);
r.ProMarkers = Arr(ReadMarkers, MaxInstTracks);
r.LaneMarkers = Arr(ReadUnktrack, MaxInstTracks);
r.TrillMarkers = Arr(ReadUnktrack2, MaxInstTracks);
r.DrumMixes = Arr(ReadDrumMixes, MaxInstTracks);
r.GemTracks = Arr(ReadGemTracks, MaxInstTracks);
r.OverdriveSoloSections = Arr(ReadOverdrives, MaxInstTracks);
var numTracks = (uint)r.Lyrics.Length;
r.DrumFills = Arr(ReadDrumFills, numTracks);
r.Anims = Arr(ReadAnims, numTracks);
r.ProMarkers = Arr(ReadMarkers, numTracks);
r.LaneMarkers = Arr(ReadUnktrack, numTracks);
r.TrillMarkers = Arr(ReadUnktrack2, numTracks);
r.DrumMixes = Arr(ReadDrumMixes, numTracks);
r.GemTracks = Arr(ReadGemTracks, numTracks);
r.OverdriveSoloSections = Arr(ReadOverdrives, numTracks);
r.VocalTracks = Arr(ReadVocalTrack, MaxVocalTracks);
r.Unknown1 = Int();
r.Unknown2 = Int();
r.Unknown3 = Float();
r.Unknown4 = Arr(ReadUnkstruct1);
r.Unknown5 = Arr(ReadUnkstruct2);
r.Unknown10 = Int();
r.NumPlayableTracks = Int();
r.Unknown6 = Int();
r.NumPlayableTracks = Check(UInt(), numTracks);
r.Unknown12 = Int();
r.Unknown13 = Byte();
r.PreviewStartMillis = Float();
r.PreviewEndMillis = Float();
r.GuitarHandmap = Arr(ReadHandMap, MaxInstTracks);
r.GuitarLeftHandPos = Arr(ReadHandPos, MaxInstTracks);
r.Unktrack = Arr(ReadUnkTrack, MaxInstTracks);
r.GuitarHandmap = Arr(ReadHandMap, numTracks);
r.GuitarLeftHandPos = Arr(ReadHandPos, numTracks);
r.Unktrack = Arr(ReadUnkTrack, numTracks);

r.MarkupSoloNotes1 = Arr(ReadMarkupSoloNotes);
r.TwoTicks1 = Arr(ReadTwoTicks);
Expand Down
2 changes: 1 addition & 1 deletion LibForge/LibForge/Midi/RBMidWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private void WriteStream(RBMid r)
Write(r.Unknown3);
Write(r.Unknown4, WriteUnkstruct1);
Write(r.Unknown5, WriteUnkstruct2);
Write(r.Unknown10);
Write(r.Unknown6);
Write(r.NumPlayableTracks);
Write(r.Unknown12);
Write(r.Unknown13);
Expand Down
4 changes: 2 additions & 2 deletions LibForge/LibForge/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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")]
[assembly: AssemblyVersion("0.0.1.*")]
[assembly: AssemblyFileVersion("0.0.1.0")]

0 comments on commit 91e18a7

Please sign in to comment.