Esempio n. 1
0
def _get_settings_export_dict():
    try:
        return load_json_file(''.join(
            (_get_settings_import_export_dir(),
             'exported_settings_list.json'))) or dict()
    except:
        return dict()
Esempio n. 2
0
def load_game_events_save_data(slot_id=-1):
    global GAME_EVENTS_DATA
    save_id = get_save_id('game_events', slot_id=slot_id)
    load_file_path = get_save_dir() + save_id + '.json'
    try:
        GAME_EVENTS_DATA = load_json_file(load_file_path) or dict()
    except:
        set_has_save_loading_error()
        GAME_EVENTS_DATA = dict()
def load_sex_handlers_save_data(slot_id=-1):
    global SEX_HANDLERS_SAVE_DATA
    save_id = get_save_id('sex_handlers', slot_id=slot_id)
    load_file_path = get_save_dir() + save_id + '.json'
    try:
        SEX_HANDLERS_SAVE_DATA = load_json_file(load_file_path) or dict()
    except:
        set_has_save_loading_error()
        SEX_HANDLERS_SAVE_DATA = dict()
Esempio n. 4
0
def load_version_save_data():
    global VERSION_SAVE_DATA
    save_id = get_save_id('version')
    load_file_path = get_save_dir() + save_id + '.json'
    try:
        VERSION_SAVE_DATA = load_json_file(load_file_path) or dict()
    except:
        set_has_save_loading_error()
        VERSION_SAVE_DATA = dict()
def load_statistics_save_data(slot_id=-1):
    global STATISTICS_SAVE_DATA
    save_id = get_save_id('statistics', slot_id=slot_id)
    load_file_path = get_save_dir() + save_id + '.json'
    try:
        STATISTICS_SAVE_DATA = load_json_file(load_file_path) or dict()
    except:
        set_has_save_loading_error()
        STATISTICS_SAVE_DATA = dict()
Esempio n. 6
0
def load_sims_save_data(slot_id=-1):
    global SIMS_SAVE_DATA
    save_id = get_save_id('sim', slot_id=slot_id)
    load_file_path = get_save_dir() + save_id + '.json'
    try:
        SIMS_SAVE_DATA = load_json_file(load_file_path) or dict()
    except:
        set_has_save_loading_error()
        SIMS_SAVE_DATA = dict()
Esempio n. 7
0
def load_disabled_locations_save_data(slot_id=-1):
    global DISABLED_LOCATIONS_SAVE_DATA
    save_id = get_save_id('disabled_locations', slot_id=slot_id)
    load_file_path = get_save_dir() + save_id + '.json'
    try:
        DISABLED_LOCATIONS_SAVE_DATA = load_json_file(load_file_path) or dict()
    except:
        set_has_save_loading_error()
        DISABLED_LOCATIONS_SAVE_DATA = dict()
Esempio n. 8
0
def load_basic_save_data(slot_id=-1, load_file_path_override=None):
    global BASIC_SAVE_DATA
    if load_file_path_override is None:
        load_file_path = ''.join(
            (get_save_dir(), get_save_id('general', slot_id=slot_id), '.json'))
    else:
        load_file_path = load_file_path_override
    try:
        BASIC_SAVE_DATA = load_json_file(load_file_path) or dict()
    except:
        set_has_save_loading_error()
        BASIC_SAVE_DATA = dict()
def load_disabled_animations_save_data(slot_id=-1,
                                       load_file_path_override=None):
    global DISABLED_ANIMATIONS_SAVE_DATA
    if load_file_path_override is None:
        load_file_path = ''.join(
            (get_save_dir(), get_save_id('disabled_animations',
                                         slot_id=slot_id), '.json'))
    else:
        load_file_path = load_file_path_override
    try:
        DISABLED_ANIMATIONS_SAVE_DATA = load_json_file(
            load_file_path) or dict()
    except:
        set_has_save_loading_error()
        DISABLED_ANIMATIONS_SAVE_DATA = dict()