Disable crash reporters on patch
Bump to 1.2.7
This commit is contained in:
parent
ccb2d876fc
commit
2d6cff77c6
2
setup.py
2
setup.py
@ -9,7 +9,7 @@ README = (HERE / "README.md").read_text()
|
||||
|
||||
setup(
|
||||
name='worthless',
|
||||
version='1.2.6',
|
||||
version='1.2.7',
|
||||
packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'],
|
||||
url='https://git.froggi.es/tretrauit/worthless-launcher',
|
||||
license='MIT License',
|
||||
|
@ -160,12 +160,23 @@ class Patcher:
|
||||
:param crash_fix: Whether to patch xLua or not
|
||||
:return: None
|
||||
"""
|
||||
# Patch UnityPlayer.dll
|
||||
if fallback:
|
||||
asyncio.run(self._patch_unityplayer_fallback())
|
||||
else:
|
||||
self._patch_unityplayer()
|
||||
# Patch xLua.dll
|
||||
if crash_fix:
|
||||
self.apply_xlua_patch(fallback=fallback)
|
||||
# Disable crash reporters
|
||||
disable_files = [
|
||||
self._installer.get_game_data_name() + "upload_crash.exe",
|
||||
self._installer.get_game_data_name() + "Plugins/crashreport.exe",
|
||||
]
|
||||
for file in disable_files:
|
||||
file_path = Path(file).resolve()
|
||||
if file_path.exists():
|
||||
file_path.rename(str(file_path) + ".bak")
|
||||
|
||||
@staticmethod
|
||||
def _creation_date(file_path: Path):
|
||||
|
Loading…
Reference in New Issue
Block a user