public static bool TryGetDefaultLogPath(out string LogPath) {
try {
var PoeProc = Main.GetPoeProcess();
string ExpectedPath;
if (PoeProc != null)
ExpectedPath = Path.Combine(Path.GetDirectoryName(PoeProc.MainModule.FileName), "logs", "Client.txt");
else
ExpectedPath = DEFAULT_LOG_PATH;
if (IsValidLogPath(ExpectedPath)) {
LogPath = ExpectedPath;
return true;
}
} catch {
// Ignore any failures as this is purely a convenience function and should not cause issues on failure.
}
LogPath = "";
return false;
}