Commit Graph

24 Commits

Author SHA1 Message Date
3dbf5ab573 chore(downloads): partial download manager 2024-11-12 09:06:28 +11:00
5e3d26b3ca refactor(downloads): ran cargo clippy & cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 18:27:39 +11:00
17244496ec refactor: Removed unnecessary dependencies
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 18:25:26 +11:00
7d3c6011df feat(downloads): Separated chunk updates into individual counters
Also added a From<bool> for DownloadThreadControlFlag because I accidentally was calling the wrong one before and had meant to add it anyway

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 18:07:45 +11:00
5e05e6873d feat(downloads): Added DownloadThreadControl struct
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 10:05:49 +11:00
f25bfed336 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
b47b7ea935 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
4fc13a1c8f refactor(downloads): Convert DOWNLOAD_MAX_THREADS to const
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 07:58:49 +11:00
6a38ea306b 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
4983b25702 refactor: Ran cargo clippy & cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-10 13:21:37 +11:00
00b7179743 refactor(database): Convert DATA_ROOT_DIR to Mutex
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 22:44:44 +11:00
2c7b5fb47d refactor: Cleaning up downloads playing and pausing
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 19:57:53 +11:00
55b7921ee6 feat(downloads): Pausing and resuming game downloads
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 19:55:36 +11:00
201c8a4e7b Ran cargo clippy and cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-04 17:48:44 +11:00
0528c78092 Functioning download progress updates
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-04 17:11:37 +11:00
bd39f1fd72 Removed gxhash and ran cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-01 07:51:56 +11:00
86363327a3 Clippy cleanup
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-01 07:49:42 +11:00
13df631cc6 Lesson learned: Wrappers are the bane of my existence. Also here's the download cancelling logic.
Signed-off-by: quexeky <git@quexeky.dev>
2024-10-31 20:56:10 +11:00
99beca4dbe Some progress on thread terminations 2024-10-28 22:06:44 +11:00
5564d23536 Queue is running game downloads sequentially now 2024-10-28 20:57:42 +11:00
1ab61c86b1 I think that download queuing is working 2024-10-28 19:23:41 +11:00
d39e7cbdf1 Mostly finished with checksums. Just merging main in at the same time 2024-10-26 10:58:04 +11:00
6ef444ed12 Encoding game IDs and versions 2024-10-25 17:55:45 +11:00
7049673596 restructing and renaming 2024-10-25 17:41:03 +11:00