add support to encrypt database

This commit is contained in:
2022-01-26 18:30:11 +08:00
parent 84f2cb1fea
commit ccb61741ee
6 changed files with 96 additions and 10 deletions

View File

@@ -6,8 +6,11 @@ from shutil import copy2
from game_backuper.filetype import FileType
from platform import system
if system() == "Windows":
from game_backuper.cfapi import hydrate_file
have_cfapi = True
try:
from game_backuper.cfapi import hydrate_file
have_cfapi = True
except Exception:
have_cfapi = False
else:
have_cfapi = False