Skip to content

Commit 1361080

Browse files
author
spamtoaster
committed
feat: imagefetcher net worker + CurlHttp + logviewer reverse order; docs
1 parent 989ee28 commit 1361080

12 files changed

Lines changed: 326 additions & 684 deletions

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
- Fixed input hold-repeat broken by over-aggressive button state zeroing (`.down` is now preserved across overlay open/close).
2929
- Fixed Log Viewer not closing with Esc in simulator mode.
3030
- Fixed Config Editor and Log Viewer invisible in simulator (over-aggressive `#ifndef PKGI_SIMULATOR` guards removed).
31-
- Fixed `has_imgui_overlay` not including the Config Editor in simulator mode.
32-
- Fixed Log Viewer navigation to use `input.active` (same repeat rate as the main game list).
31+
- Fixed `has_imgui_overlay` not including the Config Editor in simulator mode.- Fixed race / deadlock during rapid GameView open/close by refactoring `ImageFetcher` to share a single global worker slot (`WorkerSlot::image_worker()`), avoid per-instance blocking joins, and prevent duplicate concurrent downloads.- Fixed Log Viewer navigation to use `input.active` (same repeat rate as the main game list).
3332

3433

3534
## 0.59-beta1

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ set(CMAKE_CXX_STANDARD 17)
1515

1616
set(VITA_APP_NAME "PKGj+" CACHE STRING "Vita application display name")
1717
set(VITA_TITLEID "PKGJ00001" CACHE STRING "Vita Title ID (4 letters + 5 digits)")
18-
set(VITA_VERSION "0.59" CACHE STRING "Vita application version (XX.XX format for param.sfo)")
19-
set(PKGI_DISPLAY_VERSION "0.59-beta1" CACHE STRING "Version string shown in the app header")
18+
set(VITA_VERSION "0.60" CACHE STRING "Vita application version (XX.XX format for param.sfo)")
19+
set(PKGI_DISPLAY_VERSION "0.60-beta1" CACHE STRING "Version string shown in the app header")
2020

2121
option(PKGI_ENABLE_LOGGING "enables debug logging over udp multicast" OFF)
2222

COMPILACAO_EXPLICADA.md

Lines changed: 0 additions & 354 deletions
This file was deleted.

DEVELOPMENT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,5 +305,8 @@ PSVITAIP=192.168.1.x cmake --build . --target send
305305
| `src/gameview.hpp` | **Modified** | Added `AnnotationDatabase*` to constructor; added private members `_annotationDb`, `_annotation`, `_comment_buf[512]`, `_annotation_dirty` |
306306
| `src/gameview.cpp` | **Modified** | Constructor loads saved annotation into working copy; new **Personal Notes** UI section in `render()` |
307307
| `src/pkgi.cpp` | **Modified** | Added `annotation_db` global; `pkgi_apply_annotations()` called after every `configure_db()`; flag symbol prefix in list draw loop; `annotation_db` passed to `GameView` constructor; forward declaration of `pkgi_apply_annotations()` added for strict compiler compatibility |
308+
| `src/workerpool.hpp` | **New** | Added single global worker slot abstraction; `try_submit(task_id, fn)` avoids duplicate/parallel fetch tasks |
309+
| `src/imagefetcher.hpp` | **Modified** | Reworked to use `WorkerSlot::image_worker()`, state machine via `_submitted`, `_result`, and `ImageFetchResult` instead of per-instance thread + mutex/abort |
310+
| `src/imagefetcher.cpp` | **Modified** | `ImageFetcher::_try_submit()` submits network+disk work to worker slot; `get_status()` and `get_texture()` process result asynchronously and safely on main thread |
308311
| `cross.cmake` | **Modified** | Added `src/annotationdb.cpp` to the Vita executable source list |
309312
| `host.cmake` | **Modified** | Added `src/annotationdb.cpp` to the `pkgj_cli` source list |

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,3 @@ puff.h and puff.c files are under [zlib][] license.
155155
[img_downloads]: https://img.shields.io/github/downloads/blastrock/pkgj/total.svg?maxAge=3600
156156
[img_latest]: https://img.shields.io/github/release/blastrock/pkgj.svg?maxAge=3600
157157
[img_license]: https://img.shields.io/github/license/blastrock/pkgj.svg?maxAge=2592000
158-
159-
# Donating
160-
161-
Bitcoin: 128vikqd3AyNEXEiU5uSJvCrRq1e3kRX6n
162-
163-
Monero: 45sCwEFcPD9ZfwD2UKt6gcG3vChFrMmJHUmVVBUWwPFoPsjmkzvN7i9DKn4pUkyif5axgbnYNqU3NCqugudjTWqdFv5uKQV

THUMBNAILS.md

Lines changed: 0 additions & 106 deletions
This file was deleted.

ci/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ The main loop in `pkgi.cpp` runs a state machine (StateMain, StateRefreshing, St
9999

100100
- **`patchinfo.cpp` / `patchinfo.hpp` / `patchinfofetcher.cpp` / `patchinfofetcher.hpp`**: Patch information fetching. `PatchInfo` struct, `PatchInfoFetcher` class.
101101

102-
- **`imagefetcher.cpp` / `imagefetcher.hpp`**: Image downloading/caching, likely for game icons.
102+
- **`imagefetcher.cpp` / `imagefetcher.hpp`**: Image downloading/caching (game cover).
103103

104104
- **`filedownload.cpp` / `filedownload.hpp`**: File download utilities.
105105

106-
- **`cli.cpp`**: Command-line interface? Possibly unused or for debugging.
106+
- **`cli.cpp`**: Command-line interface for debugging.
107107

108108
- **`simulator.cpp`**: Simulator mode, perhaps for PC testing.
109109

@@ -133,7 +133,7 @@ Built with CMake and Conan for VitaSDK. Dependencies include Vita2D, ImGui, SQLi
133133

134134
## Differences from Original blastrock/pkgj
135135

136-
This fork (toaster-code/pkgj) may include enhancements like improved UI, additional modes, or bug fixes. Specific changes not detailed here; refer to commit history for modifications.
136+
This fork include enhancements like improved UI, additional modes, some bug fixes and probably new bugs. refer to commit history for modifications.
137137

138138
## Usage
139139

host.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ if(BUILD_SIM)
6161
src/filehttp.cpp
6262
src/gameview.cpp
6363
src/imagefetcher.cpp
64+
src/curlhttp.cpp
6465
src/thumbnailfetcher.cpp
6566
src/logbuffer.cpp
6667
src/logviewer.cpp

0 commit comments

Comments
 (0)