AssetObjectProperty != SoftObjectProperty

This commit is contained in:
iAmAsval
2021-02-10 20:25:46 +01:00
parent 9194d2bd1d
commit 2331b2de71
6 changed files with 341 additions and 338 deletions

View File

@@ -12,11 +12,7 @@ namespace FModel.PakReader.Parsers.Objects
internal FSoftObjectPath(PackageReader reader)
{
AssetPathName = reader.ReadFName();
SubPathString = string.Empty;
if (FModel.Globals.Game.Version >= EPakVersion.RELATIVE_CHUNK_OFFSETS)
{
SubPathString = reader.ReadFString();
}
SubPathString = reader.ReadFString();
}
public Dictionary<string, string> GetValue()

View File

@@ -0,0 +1,17 @@
namespace FModel.PakReader.Parsers.PropertyTagData
{
public sealed class AssetObjectProperty : BaseProperty<string>
{
internal AssetObjectProperty()
{
Value = string.Empty;
}
internal AssetObjectProperty(PackageReader reader)
{
Position = reader.Position;
Value = reader.ReadFString();
}
public string GetValue() => Value;
}
}

View File

@@ -25,7 +25,7 @@ namespace FModel.PakReader.Parsers.PropertyTagData
//"MulticastDelegateProperty" => new MulticastDelegateProperty(reader, tag),
//"LazyObjectProperty" => new LazyObjectProperty(reader, tag),
"SoftObjectProperty" => new SoftObjectProperty(),
"AssetObjectProperty" => new SoftObjectProperty(),
"AssetObjectProperty" => new AssetObjectProperty(),
"UInt64Property" => new UInt64Property(),
"UInt32Property" => new UInt32Property(),
"UInt16Property" => new UInt16Property(),
@@ -60,7 +60,7 @@ namespace FModel.PakReader.Parsers.PropertyTagData
//"MulticastDelegateProperty" => new MulticastDelegateProperty(reader, tag),
//"LazyObjectProperty" => new LazyObjectProperty(reader, tag),
"SoftObjectProperty" => new SoftObjectProperty(reader, readType),
"AssetObjectProperty" => new SoftObjectProperty(reader, readType),
"AssetObjectProperty" => new AssetObjectProperty(reader),
"UInt64Property" => new UInt64Property(reader),
"UInt32Property" => new UInt32Property(reader),
"UInt16Property" => new UInt16Property(reader),

File diff suppressed because it is too large Load Diff

View File

@@ -271,10 +271,9 @@ It's now the most used free software to leak on Fortnite.</value>
<data name="ContributorsFDetails" xml:space="preserve">
<value>• Waddlesworth • Maiky
• FunGames • Officer
• PsychoPast • TSG
GMatrixGames • Jackson
XTigerHyperX • FireMonkey
• Mang0e</value>
• PsychoPast • GMatrixGames
Jackson • XTigerHyperX
FireMonkey • Mang0e</value>
<comment>Do not translate</comment>
</data>
<data name="CopySuccess" xml:space="preserve">

View File

@@ -105,14 +105,6 @@ To use FModel, you need to have [.NET Core 3.1](https://dotnet.microsoft.com/dow
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/AyeTSG">
<img src="https://avatars1.githubusercontent.com/u/49595354?s=200&v=4" width="100px;" alt="TSG"/><br>
<sub><b>TSG</b></sub>
</a><br>
<a href="https://github.com/AyeTSG" title="Github">🔧</a>
<a href="https://twitter.com/AyeTSG" title="Twitter">🐦</a>
</td>
<td align="center">
<a href="https://github.com/JacksonPlayz">
<img src="https://avatars2.githubusercontent.com/u/18062275?s=200&v=4" width="100px;" alt="Jackson"/><br/>