From 87c03a47b43d57874bd64faa4ffb6940b0bc737d Mon Sep 17 00:00:00 2001 From: Skeli Date: Thu, 23 May 2019 22:28:18 -0400 Subject: [PATCH] Generate extracted directory --- scripts/data_extractor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/data_extractor.py b/scripts/data_extractor.py index edf3b63..bbcf8f3 100644 --- a/scripts/data_extractor.py +++ b/scripts/data_extractor.py @@ -173,6 +173,11 @@ def GetLengthOfLongestValue(dicty): return len(maxim) #Code Execution Begins Here +try: + os.makedirs(OutputFolder) +except FileExistsError: + pass + SpeciesDict = DefinesDictMaker(SpeciesDefines) GeneralStructTableExtractor(0x128, SpeciesDict, OutputFolder + "Front_Pic_Table.c", "const struct CompressedSpriteSheet", "gMonFrontPicTable", "NUM_SPECIES", NumberOfPokemon, 8, [], [4, 2, 2], [False, False, SpeciesDict], False, True, 0)