Skip to content

Commit ed6fb1b

Browse files
committed
Add method to add a custom file to loaded listfile
1 parent 75a84fa commit ed6fb1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

TACTSharp/Listfile.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ public uint GetFDID(string name)
146146
return nameHashToFDID.TryGetValue(hasher.ComputeHash(name, true), out var fdid) ? fdid : 0;
147147
}
148148

149+
public void SetListfileEntry(uint fdid, string name)
150+
{
151+
nameHashToFDID[hasher.ComputeHash(name, true)] = fdid;
152+
fdidToName[fdid] = name;
153+
}
154+
149155
public string? GetFilename(uint fdid)
150156
{
151157
if (fdidToName.Count == 0)

0 commit comments

Comments
 (0)