示例#1
0
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
示例#2
0
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
示例#3
0
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
示例#4
0
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
示例#5
0
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
示例#6
0
def save_progress(progress):
    mkdirs_exists_ok(os.path.dirname(PROGRESS_FILE))
    with open(PROGRESS_FILE, 'w') as outfile:
        yaml.dump({'progress': progress}, outfile)
示例#7
0
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)
示例#8
0
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)
示例#9
0
def save_progress(gdNIT):
    mkdirs_exists_ok(os.path.dirname(PROGRESS_FILE))
    with open(PROGRESS_FILE, 'w') as outfile:
        yaml.dump({'gdNIT': gdNIT}, outfile)
示例#10
0
def save_progress3(gdStaticSlot):
    mkdirs_exists_ok(os.path.dirname(PROGRESS3_FILE))
    with open(PROGRESS3_FILE, 'w') as outfile:
        yaml.dump({'gdStaticSlot': gdStaticSlot}, outfile)