def METHOD_NAME():
    global __dcs_saved_game_directory
    global __dcs_installation_directory
    global __last_save_file
    global __ignore_empty_install_directory
    pref_data = {
        "saved_game_dir": __dcs_saved_game_directory,
        "dcs_install_dir": __dcs_installation_directory,
        "last_save_file": __last_save_file,
        "ignore_empty_install_directory": __ignore_empty_install_directory,
    }
    PREFERENCES_PATH.parent.mkdir(exist_ok=True, parents=True)
    with PREFERENCES_PATH.open("w") as prefs:
        json.dump(pref_data, prefs, indent="  ")