refactor and fix some shit

This commit is contained in:
Stanley Dimant
2022-06-15 21:30:08 +02:00
parent 8143090033
commit 4f72daa0eb
10 changed files with 351 additions and 188 deletions

View File

@@ -31,7 +31,7 @@ namespace MareSynchronos.Factories
{
// try to resolve path with --filename instead?
string[] tempGamePath = gamePath.Split('/');
tempGamePath[tempGamePath.Length - 1] = "--" + tempGamePath[tempGamePath.Length - 1];
tempGamePath[^1] = "--" + tempGamePath[^1];
string newTempGamePath = string.Join('/', tempGamePath);
var resolvedPath = ipcManager.PenumbraResolvePath(newTempGamePath, playerName)!;
if (resolvedPath != newTempGamePath)