Audio dat.rel to XML conversion

This commit is contained in:
dexy
2019-01-16 00:51:53 +11:00
Unverified
parent 2c5a907a8e
commit 179afd5794
13 changed files with 2008 additions and 242 deletions
File diff suppressed because it is too large Load Diff
+12 -11
View File
@@ -2413,13 +2413,14 @@ namespace CodeWalker.GameFiles
}
}
int ctot = Dat151RelData.TotCount;
StringBuilder sbp = new StringBuilder();
foreach (string s in Dat151RelData.FoundCoords)
{
sbp.AppendLine(s);
}
string posz = sbp.ToString();
//int ctot = Dat151RelData.TotCount;
//StringBuilder sbp = new StringBuilder();
//foreach (string s in Dat151RelData.FoundCoords)
//{
// sbp.AppendLine(s);
//}
//string posz = sbp.ToString();
string relstrs = sb.ToString();
string hashstrs = sbh.ToString();
@@ -2638,8 +2639,8 @@ namespace CodeWalker.GameFiles
}
if (entry.NameLower == "clip_sets.ymt")
{ }
//if (entry.NameLower == "clip_sets.ymt")
//{ }
//if (entry.NameLower == "vfxinteriorinfo.ymt")
//{ }
//if (entry.NameLower == "vfxvehicleinfo.ymt")
@@ -2650,8 +2651,8 @@ namespace CodeWalker.GameFiles
//{ }
//if (entry.NameLower == "vfxweaponinfo.ymt")
//{ }
if (entry.NameLower == "physicstasks.ymt")
{ }
//if (entry.NameLower == "physicstasks.ymt")
//{ }
}
}
@@ -1726,6 +1726,10 @@ namespace CodeWalker.GameFiles
{
return FloatUtil.GetVector4String(v);
}
public static string FormatHexByte(byte b)
{
return Convert.ToString(b, 16).ToUpperInvariant().PadLeft(2, '0'); //hex byte array
}
public static string FormatHashSwap(MetaHash h) //for use with WriteItemArray, swaps endianness
{
@@ -194,6 +194,10 @@ namespace CodeWalker.GameFiles
{
return new FlagsByte(v);
}
public static implicit operator byte(FlagsByte v)
{
return v.Value; //implicit conversion
}
}
[TypeConverter(typeof(ExpandableObjectConverter))] public struct FlagsUshort
@@ -234,6 +238,11 @@ namespace CodeWalker.GameFiles
{
return new FlagsUshort(v);
}
public static implicit operator ushort(FlagsUshort v)
{
return v.Value; //implicit conversion
}
}
[TypeConverter(typeof(ExpandableObjectConverter))] public struct FlagsUint
@@ -274,6 +283,11 @@ namespace CodeWalker.GameFiles
{
return new FlagsUint(v);
}
public static implicit operator uint(FlagsUint v)
{
return v.Value; //implicit conversion
}
}