Skip to content
This repository has been archived by the owner on Dec 4, 2021. It is now read-only.

Commit

Permalink
Show error message if unable to find .ldb files.
Browse files Browse the repository at this point in the history
  • Loading branch information
clean-sys committed May 1, 2021
1 parent 386fcd7 commit e556ebc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ public static string GetAuthToken()
string pathStr = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\discord\\Local Storage\\leveldb\\";

if (!FindLDB(ref pathStr))
return "";
{
if (MessageBox.Show("Make sure you are signed into the stable branch of the Discord App and try again.\n\nSearched in\n" + pathStr, "Failed to find .LDB files to obtain Auth Token.") == DialogResult.OK)
return "";
}

string tokenStr = GrabToken(pathStr);

Expand Down

0 comments on commit e556ebc

Please sign in to comment.