Skip to content

Commit

Permalink
Add a popup in case we can't find Nier;Automata's save folder location
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Jun 30, 2017
1 parent cf16653 commit a4a8d07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions N_A_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Note: I am not responsible for you fucking your save game up with this.

import tkinter as tk
from tkinter import messagebox
from tkinter import messagebox, filedialog
import struct
import os
from os import path
Expand Down Expand Up @@ -179,7 +179,8 @@ def main():
user_folder = os.getenv("USERPROFILE")
nier_automata_folder = path.join(user_folder, "Documents", "My Games", "NieR_Automata")
if not path.isdir(nier_automata_folder):
raise Exception("Could not find NieR;Automata's save folder location")
messagebox.showerror("Error", "Could not find Nier;Automata's save folder location. Please select the save folder location")
nier_automata_folder = filedialog.askdirectory()

gamedata_path = path.join(nier_automata_folder, "GameData.dat")
if not path.isfile(gamedata_path):
Expand Down

0 comments on commit a4a8d07

Please sign in to comment.