Skip to content

Commit

Permalink
remove check if noita is running
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgillij committed Aug 10, 2021
1 parent ea21435 commit a222718
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/noita_save_manager/save_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
print = sg.Print


def is_noita_running():
for process in psutil.process_iter():
try:
if "noita.exe".lower() in process.name().lower():
return True
except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):
pass
return False
# def is_noita_running():
# for process in psutil.process_iter():
# try:
# if "noita.exe".lower() in process.name().lower():
# return True
# except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):
# pass
# return False


def find_save_zips(dir_path):
Expand Down Expand Up @@ -122,10 +122,10 @@ def refresh_save_list():
if event in (sg.WIN_CLOSED, "Exit"): # if user closes window or clicks Exit
# exit
break
if is_noita_running():
# Noita must not be running during backup
print("please close noita before using this")
continue
# if is_noita_running():
# # Noita must not be running during backup
# print("please close noita before using this")
# continue
if event == "Select":
# restore backup
if values["-listbox-"]:
Expand Down

0 comments on commit a222718

Please sign in to comment.