Depressurizer.DlgProfile.GetSteamIds C# (CSharp) Method

GetSteamIds() private method

Gets a list of located account ids. Uses settings for the steam path.
private GetSteamIds ( ) : string[]
return string[]
        private string[] GetSteamIds()
        {
            try {
                DirectoryInfo dir = new DirectoryInfo( Settings.Instance.SteamPath + "\\userdata" );
                if( dir.Exists ) {
                    DirectoryInfo[] userDirs = dir.GetDirectories();
                    string[] result = new string[userDirs.Length];
                    for( int i = 0; i < userDirs.Length; i++ ) {
                        result[i] = userDirs[i].Name;
                    }
                    return result;
                }
                return new string[0];
            } catch {
                return new string[0];
            }
        }