Idiotproofing

This commit is contained in:
Kurt
2015-01-25 21:03:13 -08:00
parent 3858812c3f
commit 523853cc0a
2 changed files with 10 additions and 3 deletions

View File

@@ -285,9 +285,11 @@ private void mainMenuSave(object sender, EventArgs e)
if (result == DialogResult.OK) // Test result.
{
string path = SavePKX.FileName;
// Injection Dummy Override
if (path.Contains("pokemon.ekx")) path = Path.GetDirectoryName(path) + Path.DirectorySeparatorChar + "pokemon.ekx";
string ext = Path.GetExtension(path);
if (File.Exists(path))
if (File.Exists(path) && !path.Contains("pokemon.ekx"))
{
// File already exists, save a .bak
byte[] backupfile = File.ReadAllBytes(path);

View File

@@ -452,6 +452,11 @@ http://projectpokemon.org/forums/showthread.php?36986
- Fixed: Boxes are now always initialized with encrypted empty slots (for those without loaded saves).
- Changed: Export Box descriptive text to be more obvious on what it was exporting. Access by clicking on the Save Manipulation label above Export SAV.
1/26/15 - New Update: (6200+)
1/26/15 - New Update: (14000)
- Added: injectiondebug.bin loading, by popular request.
- Changed: Improved injectiondebug checking.
- Update (b): Improved injectiondebug.bin loading to load all variants.
- Update (c): Implemented box/pc import/export completely (future).
1/27/15 - New Update:
- Fixed: Scatterbug / Spewpa form selection.
- Changed: Saving "pokemon.ekx" will always export extracted and won't tack on extra extensions if you don't have the correct filter.