def save_disabled_animations_save_data(save_file_path_override=None): if save_file_path_override is None: save_file_path = ''.join( (get_save_dir(), get_save_id('disabled_animations'), '.json')) else: save_file_path = save_file_path_override save_json_file(save_file_path, DISABLED_ANIMATIONS_SAVE_DATA)
def save_basic_save_data(save_file_path_override=None): if save_file_path_override is None: save_file_path = ''.join( (get_save_dir(), get_save_id('general'), '.json')) else: save_file_path = save_file_path_override save_json_file(save_file_path, BASIC_SAVE_DATA)
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()
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()
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_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()
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()
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()
def save_game_events_save_data(): save_id = get_save_id('game_events') save_file_path = get_save_dir() + save_id + '.json' save_json_file(save_file_path, GAME_EVENTS_DATA)
def save_sex_handlers_save_data(): save_id = get_save_id('sex_handlers') save_file_path = get_save_dir() + save_id + '.json' save_json_file(save_file_path, SEX_HANDLERS_SAVE_DATA)
def save_version_save_data(): save_id = get_save_id('version') save_file_path = get_save_dir() + save_id + '.json' save_json_file(save_file_path, VERSION_SAVE_DATA)
def save_statistics_save_data(): save_id = get_save_id('statistics') save_file_path = get_save_dir() + save_id + '.json' save_json_file(save_file_path, STATISTICS_SAVE_DATA)
def save_sims_save_data(): save_id = get_save_id('sim') save_file_path = get_save_dir() + save_id + '.json' save_json_file(save_file_path, SIMS_SAVE_DATA)
def save_disabled_locations_save_data(): save_id = get_save_id('disabled_locations') save_file_path = get_save_dir() + save_id + '.json' save_json_file(save_file_path, DISABLED_LOCATIONS_SAVE_DATA)