Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions mbf-agent-wrapper/mbf-agent-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def auto_game_version(self, args):
args.game_version = supported_versions[-1]

def patch(self, args):
self.get_mod_status(args);

if not self.mod_status['core_mods']:
self.log(' \033[33m Core Mod data not found! Is your headset connected to the internet?', level=WARN)
return
Expand Down Expand Up @@ -216,6 +218,8 @@ def patch(self, args):
if args.override_core_mod_url:
payload_args['override_core_mod_url'] = args.override_core_mod_url

payload_args['device_pre_v51'] = args.device_pre_v51

self.send_payload('Patch', **payload_args)

def fix_player_data(self, args):
Expand Down Expand Up @@ -514,6 +518,7 @@ def initialize_parsers(self):
patch_parser.add_argument('-a', '--allow_no_core_mods', action='store_true', help='Allows installing versions that do not have core mods')
patch_parser.add_argument('-o', '--override_core_mod_url', help='Use a custom URL for core mods')
patch_parser.add_argument('-n', '--no_downgrade', action='store_true', help='Use the existing beatsaber version. Do not downgrade')
patch_parser.add_argument('-p', '--device_pre_v51', action='store_true', help='Set this flag if your headset is using an OS version older than v51')
patch_parser.add_argument('-r', '--remodding', action='store_true', help='Informs the agent that it should be remodding the game')
patch_parser.add_argument('-m', '--manifest', help='Specifies a custom .xml file to use as the app manifest')
patch_parser.set_defaults(func=self.patch)
Expand Down