削除するデータを追加できるように

This commit is contained in:
suti7yk5032 2024-10-05 10:45:01 +09:00
parent c8d6517c3c
commit af18cae3ff
2 changed files with 14 additions and 0 deletions

View file

@ -42,6 +42,12 @@ if not os.path.isfile(client_config_path):
"master_password_hash": "", "master_password_hash": "",
"testing": False, "testing": False,
"eraser": True, "eraser": True,
"erase_data": {
"example": {
"process_name": "example.exe",
"dir_path": "C:\\Users\\example\\AppData\\Local\\example"
}
},
"pc_uuid": "", "pc_uuid": "",
"pc_token": "", "pc_token": "",
"hard_lock": False "hard_lock": False

View file

@ -134,6 +134,14 @@ class App(tkinter.Tk):
steam_del = self.delete_appdata(process_name="steam.exe", dir_path=f"{appdata_local}\\Steam") steam_del = self.delete_appdata(process_name="steam.exe", dir_path=f"{appdata_local}\\Steam")
ea_del = self.delete_appdata(process_name="EADesktop.exe", dir_path=f"{appdata_local}\\Electronic Arts") ea_del = self.delete_appdata(process_name="EADesktop.exe", dir_path=f"{appdata_local}\\Electronic Arts")
riot_del = self.delete_appdata(process_name="RiotClientServices.exe", dir_path=f"{appdata_local}\\Riot Games\\Riot Client") riot_del = self.delete_appdata(process_name="RiotClientServices.exe", dir_path=f"{appdata_local}\\Riot Games\\Riot Client")
for i in client_config['erase_data'].keys():
if i == 'example':
pass
else:
erase_process_name = client_config['erase_data'][i]['process_name']
erase_dir_path = client_config['erase_data'][i]['dir_path']
erase_del = self.delete_appdata(process_name=erase_process_name, dir_path=erase_dir_path)
else: else:
print("削除処理をスキップ。") print("削除処理をスキップ。")
except: except: