From fb09c05017dfa72bc4f401b934251b4f84843049 Mon Sep 17 00:00:00 2001 From: AmazingAmpharos Date: Sat, 6 Jan 2018 21:06:34 -0600 Subject: [PATCH] Better file output names The adjuster now appends _adjusted to the pre-existing file name (before the extension) instead of a static output name. --- AdjusterMain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdjusterMain.py b/AdjusterMain.py index c7835251..b6c128fa 100644 --- a/AdjusterMain.py +++ b/AdjusterMain.py @@ -19,7 +19,7 @@ def adjust(args): else: sprite = None - outfilebase = 'ER_adjusted' + outfilebase = os.path.basename(args.rom)[:-4] + '_adjusted' if os.stat(args.rom).st_size == 2097152 and os.path.splitext(args.rom)[-1].lower() == '.sfc': rom = LocalRom(args.rom, False)