-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launcher: handle apworld installation #3472
Conversation
It might be useful to detect if an apworld is frozen. The amount of frozen worlds released now is relatively low, but probably worth checking for. Absolutely not worth delaying for, but I think discussions on what metadata an apworld should contain should probably restart, if nothing for the use case of "is this apworld a newer version to the one currently installed, and if so, prompt the user if they want to update instead of throwing an exception". |
This will deny frozen apworlds as they have an |
Co-authored-by: black-sliver <[email protected]>
Co-authored-by: black-sliver <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One sad part is that Launcher doesn't reload the worlds after installation (i.e. drag&drop it in and no new buttons appear)
if worlds.user_folder is None: | ||
raise Exception("Custom Worlds directory appears to not be writable.") | ||
for world_source in worlds.world_sources: | ||
if apworld_path.samefile(world_source.resolved_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing - do you want to compare file content, or just make sure it doesn't try to have the same path in src and dst of copyfile? (because this doesn't compare content)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intention was preventing users from double clicking already installed apworlds and that mucking something up.
What is this fixing or adding?
Running Launcher with an APWorld will now install that APWorld. On Windows this can be triggered by double click an .apworld file.
How was this tested?
On Win10.
If this makes graphical changes, please attach screenshots.
Before:
After: