mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 17:05:10 +08:00
RPF Explorer import/export .rel XML options
This commit is contained in:
@@ -46,6 +46,11 @@ namespace CodeWalker.GameFiles
|
||||
CutFile cut = RpfFile.GetFile<CutFile>(e, data);
|
||||
return GetXml(cut, out filename);
|
||||
}
|
||||
else if (fnl.EndsWith(".rel"))
|
||||
{
|
||||
RelFile rel = RpfFile.GetFile<RelFile>(e, data);
|
||||
return GetXml(rel, out filename);
|
||||
}
|
||||
filename = fn;
|
||||
return string.Empty;
|
||||
}
|
||||
@@ -99,6 +104,12 @@ namespace CodeWalker.GameFiles
|
||||
filename = string.Empty;
|
||||
return string.Empty;
|
||||
}
|
||||
public static string GetXml(RelFile rel, out string filename)
|
||||
{
|
||||
var fn = (rel?.RpfFileEntry?.Name) ?? "";
|
||||
filename = fn + ".xml";
|
||||
return RelXml.GetXml(rel);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user