mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 13:57:14 -05:00
Add some error messages
Can get annoying if multiple folders contain 'rom'
This commit is contained in:
@@ -303,12 +303,14 @@ private bool checkIfRomFS(string path)
|
||||
// Check to see if the folder is romfs
|
||||
if (fi.Name == "a")
|
||||
{
|
||||
var cfg = checkGameType(Directory.GetFiles(path, "*", SearchOption.AllDirectories));
|
||||
string[] files = Directory.GetFiles(path, "*", SearchOption.AllDirectories);
|
||||
var cfg = checkGameType(files);
|
||||
|
||||
if (cfg == null)
|
||||
{
|
||||
RomFSPath = null;
|
||||
Config = null;
|
||||
Util.Error("File count does not match expected game count.", "Files: " + files.Length);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -318,6 +320,7 @@ private bool checkIfRomFS(string path)
|
||||
Randomizer.MaxSpeciesID = cfg.MaxSpeciesID;
|
||||
return true;
|
||||
}
|
||||
Util.Error("Folder does not contain an 'a' folder in the top level.");
|
||||
RomFSPath = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user