mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
WIP
This commit is contained in:
parent
c782b63c6c
commit
81b819009d
@ -103,6 +103,16 @@ namespace Wabbajack.Common
|
||||
{
|
||||
return BitConverter.GetBytes(_code);
|
||||
}
|
||||
|
||||
public static Hash Interpret(string input)
|
||||
{
|
||||
return input.Length switch
|
||||
{
|
||||
16 => FromHex(input),
|
||||
12 when input.EndsWith('=') => FromBase64(input),
|
||||
_ => FromLong(long.Parse(input))
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public static partial class Utils
|
||||
|
Loading…
Reference in New Issue
Block a user