fix: Fixes loading multi when client is missing (#996)

* Changes reading multi.mul/multi.idx so it is loaded entirely during bootup.
* Fixes finding files in Linux.
* Fixes handling HS format.
* Removes verdata support.

ModernUO will still have issues if there is a multi.mul that is pre-HS loaded when it detects a client that is 7.0.9+.
This commit is contained in:
Kamron Batman 2022-04-14 16:52:45 -07:00 committed by GitHub
parent 6c22bb2b97
commit 910549db84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 881 additions and 930 deletions

View file

@ -249,15 +249,13 @@ namespace Server
{
fullPath = Path.Combine(p, path);
if (IsLinux)
if (IsLinux && !File.Exists(fullPath))
{
var fi = new FileInfo(fullPath);
fullPath = fi.Directory!.EnumerateFiles(
fi.Name,
new EnumerationOptions { MatchCasing = MatchCasing.CaseInsensitive }
).FirstOrDefault()?.FullName;
break;
}
if (File.Exists(fullPath))