mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 03:14:47 +08:00
Audio dat.rel to XML conversion
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user