Skip to content
Merged
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
8 changes: 5 additions & 3 deletions worlds/sims4/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ def _cmd_set_path(self, sims_4_mods_path: str = ''):
"""Set the file path to the Sims 4 mods folder manually (if automatic detection fails)"""
p = sims_4_mods_path
global mod_data_path
if p == '':
self.output('no path inputed')
if not p:
self.output("No path provided")
elif os.path.exists(os.path.join(p, 'mod_data', 's4ap')):
self.output('Sims 4 mods folder found')
mod_data_path = os.path.join(p, 'mod_data', 's4ap')
elif not os.path.isabs(p):
self.output("Please enter the full path to the Sims 4 mods folder.\nFor example: C:\\Users\\Username\\Documents\\Electronic Arts\\The Sims 4\\Mods")
else:
self.ctx.gui_error(title='Sims 4 mods folder not found',
text=f'Make sure the file path you inputed is correct.')
Expand Down Expand Up @@ -252,7 +254,7 @@ async def game_watcher(ctx: SimsContext):
await asyncio.sleep(0.5)


def main(args):
def main(args: list[str] | None = None) -> None:
async def _main():
parser = get_base_parser(description="The Sims 4 Client, for text interfacing.")
_args, _rest = parser.parse_known_args(args)
Expand Down
Loading