Skip to content

Commit

Permalink
fixed patcher on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixFire6934 committed Jan 13, 2021
1 parent 936b178 commit d1c198d
Show file tree
Hide file tree
Showing 24 changed files with 3 additions and 69,145 deletions.
3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/ar.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/cn.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/cnt.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/de.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/es.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/fi.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/fr.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/he.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/id.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/it.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/jp.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/kr.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/ms.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/nl.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/pl.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/pt.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/ru.csv

This file was deleted.

3,299 changes: 0 additions & 3,299 deletions GameAssets/localization/texts.csv

This file was deleted.

41 changes: 0 additions & 41 deletions GameAssets/localization/texts_patch.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/th.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/tr.csv

This file was deleted.

3,290 changes: 0 additions & 3,290 deletions GameAssets/localization/vi.csv

This file was deleted.

2 changes: 0 additions & 2 deletions Patcher/Lib/ATPatchmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ def iterate_over(path: str) -> list: # get all subfiles and files
return r

def shash(inp) -> str: # get hash sha1
print(inp)
hash_object = hashlib.sha1(inp)
pbHash = hash_object.hexdigest()
print(pbHash)
return pbHash

def MasterHasher():
Expand Down
6 changes: 3 additions & 3 deletions Patcher/Patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def all_subdirs_of(b='.') -> list:

current_path = os.getcwd() # backing this up for later use

os.chdir(current_path + "\\Patch")
os.chdir(current_path + "/Patch")

print("Please wait until the patcher finishes running")
pm.Make()
Expand All @@ -34,11 +34,11 @@ def all_subdirs_of(b='.') -> list:
# Copy the output to the correct folder
patch_folder = max(all_subdirs_of(os.getcwd() + "/Patch/Patchs"), key=os.path.getctime) # select the newest created folder

latest_finger = patch_folder + "\\fingerprint.json"
latest_finger = patch_folder + "/fingerprint.json"

parent = os.path.dirname(current_path) # classic brawl parent dir

shutil.copy(latest_finger, parent + "\\GameAssets")
shutil.copy(latest_finger, parent + "/GameAssets")


os.chdir(current_path + "/Patch/Patchs") # get back to the original folder/patch
Expand Down

0 comments on commit d1c198d

Please sign in to comment.