def modify_ini_file(file_path):
    with open(file_path, 'r') as file:
        lines = file.readlines()

    with open(file_path, 'w') as file:
        for line in lines:
            if 'someSetting' in line:
                line = 'someSetting=newValue\n'
            file.write(line)

def modify_sav_file(file_path):
    with open(file_path, 'r+b') as file:
        file.seek(0)
        data = file.read(4)
        file.seek(0)
        file.write(b'\x01\x02\x03\x04')

if __name__ == "__main__":
    ini_file_path = 'path/to/your/file.ini'
    sav_file_path = 'path/to/your/file.sav'

    modify_ini_file(ini_file_path)
    modify_sav_file(sav_file_path)