-
Notifications
You must be signed in to change notification settings - Fork 17
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
Downloads handled by bridge instead of mod #107
base: master
Are you sure you want to change the base?
Conversation
6499fb8
to
216a38e
Compare
1c96e38
to
5ce5edc
Compare
@AsciiJakob aka Verb reports the following numbers for a 233MB download on a 1Gbps connection. Game has the default limit framerate option (30FPS) when unfocused
|
5ce5edc
to
4c4ab4d
Compare
Fixed build issue; I had some changes that I'll wait for another PR for and selectively staged but kept back too much. |
4c7b87a
to
cca0c0e
Compare
This will fix #102 as an aside. |
May have forgotten to account for mods that updated. Additionally might need to change how mods are saved to avoid two mods of the same name from two servers clashing together (sha256 sum?) |
The bridge will be what handles downloading the mods instead of relying on the mod-side to write the files itself. The bridge communicates the progress of the file, however. Also introduces a basic state sharing framework but at the moment is used to share where mods should be downloaded to and a to-be-implemented switch to enable unix compatibility should the bridge not need to fix the given path download path. State is initially given by the mod on connect. Additionally a couple of miscellaneous things were changed that didn't age too well or were changed to be reused.
Felt like we should not delete files until we decide how much the bridge should do to manage mods and how it should be done.
1cc8741
to
a4b4c38
Compare
Instead of having the mod receive the bytes directly, have the bridge place the files itself for the mod to find and move around into place as needed.
Also miscellaneous refactors.
Security considerations: The mod can tell the bridge to place the files anywhere, but the bridge will not overwrite files nor try to delete file paths it didn't create.