From d11f468addae87bc3bf165a21e28d289a476a8e7 Mon Sep 17 00:00:00 2001 From: MikeMaximus Date: Sat, 1 Jul 2017 12:23:28 -0600 Subject: [PATCH] Some final v102 changes --- GBM/Managers/mgrProcesses.vb | 11 +++++------ GBM/readme.txt | 2 ++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/GBM/Managers/mgrProcesses.vb b/GBM/Managers/mgrProcesses.vb index 04efb92..0cc5f4c 100644 --- a/GBM/Managers/mgrProcesses.vb +++ b/GBM/Managers/mgrProcesses.vb @@ -145,19 +145,18 @@ Public Class mgrProcesses 'This function will only work correctly on Unix Private Function GetUnixSymLinkDirectory(ByVal prs As Process) As String Dim prsls As Process - Dim slsinfo As String() + Dim slsinfo As String - 'This is the best way I can think of to determine the end point of a symlink without doing even more crazy shit Try prsls = New Process - prsls.StartInfo.FileName = "/bin/bash" - prsls.StartInfo.Arguments = "-c ""ls -l /proc/" & prs.Id.ToString & " | grep cwd""" + prsls.StartInfo.FileName = "/bin/readlink" + prsls.StartInfo.Arguments = "-f /proc/" & prs.Id.ToString & "/cwd" prsls.StartInfo.UseShellExecute = False prsls.StartInfo.RedirectStandardOutput = True prsls.StartInfo.CreateNoWindow = True prsls.Start() - slsinfo = prsls.StandardOutput.ReadToEnd().Split(">") - Return slsinfo(slsinfo.Length - 1).Trim + slsinfo = prsls.StandardOutput.ReadToEnd() + Return slsinfo.Trim() Catch ex As Exception Return String.Empty End Try diff --git a/GBM/readme.txt b/GBM/readme.txt index 6d7cd23..018258c 100644 --- a/GBM/readme.txt +++ b/GBM/readme.txt @@ -21,5 +21,7 @@ New in 1.02 - (Linux) Using the keyboard to navigate the game list in the Game Manager now works correctly. - (All) Tags can now be added to a new game configuration before saving on the Game Manager. - (All) Fixed various issues when adding new game configurations while using filters on the Game Manager. +- (All) Added better handling of 7-Zip warnings and errors. +- (Linux) GBM now requires the "readlink" utility to properly handle Wine games. However bash, ls and grep are no longer required. The entire version history of GBM releases is available at http://mikemaximus.github.io/gbm-web/versionhistory.html \ No newline at end of file