def load_progress_gdTSSTransmitter(): gdTSSTransmitter = 1 mkdirs_exists_ok(os.path.dirname(PROGRESS_GDTSSTRANSMITTER_FILE)) if os.path.exists(PROGRESS_GDTSSTRANSMITTER_FILE): with open(PROGRESS3_FILE, 'r') as f: y = yaml.load(f) if 'gdTSSTransmitter' in y: gdTSSTransmitter = y['gdTSSTransmitter'] return gdTSSTransmitter
def load_progress(): progress = 0 mkdirs_exists_ok(os.path.dirname(PROGRESS_FILE)) if os.path.exists(PROGRESS_FILE): with open(PROGRESS_FILE, 'r') as f: y = yaml.load(f) if 'progress' in y: progress = y['progress'] return progress
def load_progress_gdActionPointOffset(): gdActionPointOffset = 1 mkdirs_exists_ok(os.path.dirname(PROGRESS_GDACTIONPOINTOFFSET_FILE)) if os.path.exists(PROGRESS_GDTSSTRANSMITTER_FILE): with open(PROGRESS_GDACTIONPOINTOFFSET_FILE, 'r') as f: y = yaml.load(f) if 'gdActionPointOffset' in y: gdActionPointOffset = y['gdActionPointOffset'] return gdActionPointOffset
def load_progress_3(): gdStaticSlot = 40 mkdirs_exists_ok(os.path.dirname(PROGRESS3_FILE)) if os.path.exists(PROGRESS3_FILE): with open(PROGRESS3_FILE, 'r') as f: y = yaml.load(f) if 'gdStaticSlot' in y: gdStaticSlot = y['gdStaticSlot'] return gdStaticSlot
def load_progress(): gdNIT = 2 mkdirs_exists_ok(os.path.dirname(PROGRESS_FILE)) if os.path.exists(PROGRESS_FILE): with open(PROGRESS_FILE, 'r') as f: y = yaml.load(f) if 'gdNIT' in y: gdNIT = y['gdNIT'] return gdNIT
def save_progress(progress): mkdirs_exists_ok(os.path.dirname(PROGRESS_FILE)) with open(PROGRESS_FILE, 'w') as outfile: yaml.dump({'progress': progress}, outfile)
def save_progress_gdActionPointOffset(gdActionPointOffset): mkdirs_exists_ok(os.path.dirname(PROGRESS_GDACTIONPOINTOFFSET_FILE)) with open(PROGRESS_GDACTIONPOINTOFFSET_FILE, 'w') as outfile: yaml.dump({'gdActionPointOffset': gdActionPointOffset}, outfile)
def save_progress_gdTSSTransmitter(gdTSSTransmitter): mkdirs_exists_ok(os.path.dirname(PROGRESS_GDTSSTRANSMITTER_FILE)) with open(PROGRESS_GDTSSTRANSMITTER_FILE, 'w') as outfile: yaml.dump({'gdTSSTransmitter': gdTSSTransmitter}, outfile)
def save_progress(gdNIT): mkdirs_exists_ok(os.path.dirname(PROGRESS_FILE)) with open(PROGRESS_FILE, 'w') as outfile: yaml.dump({'gdNIT': gdNIT}, outfile)
def save_progress3(gdStaticSlot): mkdirs_exists_ok(os.path.dirname(PROGRESS3_FILE)) with open(PROGRESS3_FILE, 'w') as outfile: yaml.dump({'gdStaticSlot': gdStaticSlot}, outfile)