mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 17:05:10 +08:00
Fixed vehicle license plates rendering
This commit is contained in:
@@ -10,6 +10,8 @@ namespace CodeWalker.GameFiles
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class VehicleLayoutsFile : GameFile, PackedFile
|
||||
{
|
||||
public string Xml { get; set; }
|
||||
|
||||
public VehicleLayoutsFile() : base(null, GameFileType.VehicleLayouts)
|
||||
{ }
|
||||
public VehicleLayoutsFile(RpfFileEntry entry) : base(entry, GameFileType.VehicleLayouts)
|
||||
@@ -22,9 +24,11 @@ namespace CodeWalker.GameFiles
|
||||
Name = entry.Name;
|
||||
FilePath = Name;
|
||||
|
||||
//TODO
|
||||
|
||||
//always XML .meta
|
||||
Xml = Encoding.UTF8.GetString(data);
|
||||
|
||||
//TODO: parse CVehicleMetadataMgr XML
|
||||
|
||||
|
||||
Loaded = true;
|
||||
|
||||
@@ -1534,6 +1534,8 @@ namespace CodeWalker.GameFiles
|
||||
if (entry.NameLower.StartsWith("vehiclelayouts") && entry.NameLower.EndsWith(".meta"))
|
||||
{
|
||||
var lf = RpfMan.GetFile<VehicleLayoutsFile>(entry);
|
||||
if (lf.Xml != null)
|
||||
{ }
|
||||
allVehicleLayouts.Add(lf);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user