mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-08 10:35:22 -05:00
Check for missing ExeFS or main executable in SWSH shiny editor (#216)
* Fix Shiny Rate Editor This fixes the broken shiny rate editor that hasn't been re-implemented. * Check for missing ExeFS or `main` executable in SWSH shiny editor
This commit is contained in:
@@ -112,7 +112,17 @@ public void NotWorking_EditMoves()
|
||||
|
||||
public void EditShinyRate()
|
||||
{
|
||||
if (ROM.PathExeFS == null) {
|
||||
WinFormsUtil.Alert("ExeFS not detected.");
|
||||
return;
|
||||
}
|
||||
|
||||
var path = Path.Combine(ROM.PathExeFS, "main");
|
||||
if (!File.Exists(path)) {
|
||||
WinFormsUtil.Alert("Not able to find `main` file in ExeFS.");
|
||||
return;
|
||||
}
|
||||
|
||||
var data = FileMitm.ReadAllBytes(path);
|
||||
var nso = new NSO(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user