Commit Graph

59 Commits

Author SHA1 Message Date
Louis van Liefland b31d5c286a chore(downloads): Progress on write speeds & added debug statements 2024-11-23 23:32:56 +11:00
quexeky e074011ca8 feat(downloads): Download cancelling
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-21 16:46:05 +11:00
quexeky 639a1f5270 style(downloads): Made all errors type-based
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-18 13:21:20 +11:00
quexeky b24e106420 feat(downloads): Added AgentInterfaceData to get information about all downloads in queue
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-16 17:03:37 +11:00
quexeky f508391b6d refactor(downloads): Ran cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-13 21:28:24 +11:00
quexeky cee86b43ed refactor(downloads): Ran cargo clippy & moved DownloadManagerInterface
Created file "download_manager_interface.rs" to contain the DownloadManagerInterface

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-13 21:05:25 +11:00
quexeky 928b60483a feat(downloads): Added Download Manager
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-13 20:38:00 +11:00
DecDuck 86f77daa01 chore(downloads): partial download manager 2024-11-12 09:06:28 +11:00
quexeky 628898ec23 feat(downloads): Convert DownloadThreadControlFlag to AtomicBool
Also ran cargo fmt & cargo clipy

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 09:39:25 +11:00
quexeky 1443d7f605 refactor: Created file settings.rs
Add constant values here to have a central management point for any relevant constants

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 09:11:46 +11:00
DecDuck bc6aabc58d feat(downloads): reduce scope of download agent
due to a miscommunication, the scope of the download agent has grown too
much. this commit reduces that scopes, and intends for a lot of the
heavy lifting to be done by the soon-to-be-implemented download manager.
2024-11-10 22:25:54 +11:00
quexeky 3258a3d709 feat(library): Added option to change root directory
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-10 13:18:28 +11:00
quexeky 2f506a2068 refactor(database): Convert DATA_ROOT_DIR to Mutex
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 22:44:44 +11:00
quexeky 4aadb77e87 feat(downloads): Added function to take and set any game state
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 21:26:44 +11:00
quexeky f80bbe1b0e feat(downloads): Generic function to set download state
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 20:15:04 +11:00
quexeky e7169dd1b1 style(downloads): Added GAME_PAUSE_CHECK_INTERVAL value
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 20:00:05 +11:00
quexeky e288f2472b refactor: Cleaning up downloads playing and pausing
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 19:57:53 +11:00
quexeky da1f39c061 feat(downloads): Pausing and resuming game downloads
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 19:55:36 +11:00
quexeky f6f8186d5a chore(p2p): Starting p2p progress
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-06 16:40:19 +11:00
quexeky 1ec2370477 Merge branch 'downloads' (again)
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-04 18:57:54 +11:00
quexeky 56ce939788 Ran cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-04 18:50:25 +11:00
DecDuck 9a76fe0202 fixes and patches for merged changes 2024-11-04 18:13:03 +11:00
DecDuck 3c693849b7 Merge branch 'error-handling'
Makes the Drop app more resistent to errors during start-up
2024-11-04 18:06:51 +11:00
quexeky 6dfc2d7393 Allowing some dead code features because they are there for future use (potentially)
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-04 18:03:18 +11:00
quexeky edc64ba6d2 Ran cargo clippy and cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-04 17:48:44 +11:00
quexeky afd07bb379 Functioning download progress updates
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-04 17:11:37 +11:00
DecDuck 1abcc3d3e5 drop no longer freaks out if server is unavailable on startup 2024-11-03 16:16:26 +11:00
quexeky a1fed18d00 Removed gxhash and ran cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-01 07:51:56 +11:00
DecDuck f3df6ee687 remove unpacker mod statement 2024-10-31 23:42:16 +11:00
quexeky 1daba5334a Adding checks for the stopper callback
Signed-off-by: quexeky <git@quexeky.dev>
2024-10-29 22:15:44 +11:00
quexeky 7bfaf99aaf I think that download queuing is working 2024-10-28 19:23:41 +11:00
DecDuck 59ef4645c4 restructing and renaming 2024-10-25 17:41:03 +11:00
DecDuck 959cf6ab1f my own take on some BASED design decisions 2024-10-24 22:05:58 +11:00
quexeky 45e2efb18f Game downloads from the client are working (multithreaded) by parsing in gameID, GameVersion, and maxThreads from FE (#1) 2024-10-24 12:26:40 +11:00
quexeky 90e41c6522 Clippy changes 2024-10-24 09:41:04 +11:00
quexeky 2e0b37ae19 Just debugging tauri's damn Sync command features 2024-10-24 09:38:02 +11:00
quexeky eb37b2464a SLowly integrating game_download into the FE. Started with using the manifest minimal example in the server (#1) 2024-10-19 22:17:43 +11:00
quexeky 34d2b978e5 More fleshing out on how specifically game downloads will work (#1) 2024-10-19 17:36:09 +11:00
quexeky f5b5d164ab Included in AppStatus (Also trying to link to Issue #1) 2024-10-19 14:54:29 +11:00
quexeky f8b96d06e7 Progress checker works 2024-10-18 20:42:26 +11:00
quexeky 31e794f637 Progress on downloads. Currently working on parsing functions to be run asynchronously 2024-10-18 07:45:09 +11:00
DecDuck 1ff74a1bcf beginnings of game state management 2024-10-17 21:05:25 +11:00
quexeky 30ff908abc Converting DB access to a trait 2024-10-17 19:03:00 +11:00
quexeky 6aee5e3686 Accidentally serialized AppStatus and broke everything :/ 2024-10-17 18:13:27 +11:00
quexeky 9f544eccb0 Semantic naming changes 2024-10-17 17:17:19 +11:00
quexeky a316b8f5e6 Ensured everything is serializing/deserializing to camelCase 2024-10-17 17:07:47 +11:00
quexeky 8b67dc2a7b Re-enabled closing the window and some more renaming 2024-10-16 09:23:00 +11:00
quexeky d329efaefb More refactoring and renaming camelCase struct definitions to snake_case 2024-10-16 09:09:46 +11:00
DecDuck 0cb6bfb8bf cleanup and game UI beginnings 2024-10-15 20:05:13 +11:00
quexeky ccaa0ed23c Updated logging 2024-10-15 11:04:50 +11:00