mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-20 08:35:19 -05:00
Database sanity checking before opening
This commit is contained in:
@@ -3466,7 +3466,11 @@ private void B_JPEG_Click(object sender, EventArgs e)
|
||||
}
|
||||
private void B_OpenDB_Click(object sender, EventArgs e)
|
||||
{
|
||||
new SAV_Database(this).Show();
|
||||
if (Directory.Exists("db"))
|
||||
new SAV_Database(this).Show();
|
||||
else
|
||||
Util.Alert("PKHeX's database was not found",
|
||||
"Please dump all boxes from a save file, then ensure the 'db' folder exists.");
|
||||
}
|
||||
// Save Folder Related
|
||||
private void clickSaveFileName(object sender, EventArgs e)
|
||||
|
||||
@@ -95,8 +95,8 @@ public SAV_Database(Main f1)
|
||||
// Prepare Database
|
||||
prepareDBForSearch();
|
||||
}
|
||||
private string DatabasePath = Path.Combine(Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName), "db");
|
||||
private Main m_parent;
|
||||
private const string DatabasePath = "db";
|
||||
private List<DatabaseList> Database = new List<DatabaseList>();
|
||||
private List<PK6> Results;
|
||||
private List<PK6> RawDB;
|
||||
|
||||
Reference in New Issue
Block a user