Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperHackio committed Feb 10, 2021
1 parent 22a6488 commit bb44261
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
21 changes: 5 additions & 16 deletions LaunchCamPlus/Formats/BCAM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,10 @@ public void Save(Stream BCSV)
#region Collect the strings
List<string> Strings = new List<string>();// { "930" };
for (int i = 0; i < EntryCount; i++)
{
for (int j = 0; j < Entries[i].Data.Count; j++)
{
if (Fields.ContainsKey(Entries[i].Data.ElementAt(j).Key) && Fields[Entries[i].Data.ElementAt(j).Key].DataType == DataTypes.STRING)
{
if (!Strings.Any(O => O.Equals((string)Entries[i].Data.ElementAt(j).Value)))
Strings.Add((string)Entries[i].Data.ElementAt(j).Value);
}
}
}
foreach (KeyValuePair<uint, BCAMField> item in Fields)
if (item.Value.DataType == DataTypes.STRING)
if (!Strings.Contains(Entries[i].Data[item.Key]))
Strings.Add((string)Entries[i].Data[item.Key]);
#endregion

BCSV.WriteReverse(BitConverter.GetBytes(Fields.Count), 0, 4);
Expand Down Expand Up @@ -504,7 +498,6 @@ public static uint FieldNameToHash(string field)

public static readonly DataTypes[] HashDataTypes = new DataTypes[]
{
DataTypes.INT32,
DataTypes.INT32,
DataTypes.STRING,
DataTypes.STRING,
Expand Down Expand Up @@ -795,13 +788,9 @@ public string ToClipboard()
}

/// <summary>
/// USELESS
/// USELESS?
/// </summary>
public int Version { get; set; }
/// <summary>
/// USELESS
/// </summary>
public int Num { get; set; }

public string Identification
{
Expand Down
1 change: 0 additions & 1 deletion LaunchCamPlus/Formats/LCPP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ public void LoadCompressedLegacyFile(Stream FS)
{
Version = (int)FindNumber(FS, Offset),
Identification = FindString(FS, Offset),
Num = (int)FindNumber(FS, Offset),
Type = FindString(FS, Offset),
RotationX = FindNumber(FS, Offset),
RotationY = FindNumber(FS, Offset),
Expand Down
4 changes: 2 additions & 2 deletions LaunchCamPlus/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("2.3.9.2")]
[assembly: AssemblyFileVersion("2.3.9.2")]
[assembly: AssemblyVersion("2.3.9.3")]
[assembly: AssemblyFileVersion("2.3.9.3")]
2 changes: 1 addition & 1 deletion LaunchCamPlus/UpdateAlert.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.9.2
2.3.9.3

0 comments on commit bb44261

Please sign in to comment.