Cockatrice/cockatrice/src/interface/card_picture_loader
BruebachL cca4af0ec7
[PictureLoader] Add local override storage and resolution with matcher tests (#7311)
* [PictureLoader] Add local override storage and resolution with matcher tests

* [PictureLoader] Address review comments

- Make deleteAllLocalOverrides static; it does not touch instance state
- Drop the now-unused hasCustomArt dead code
- Rename the override install methods to installPrintingOverride /
  installPrintingOverrideOnLoad

* [Tests] Give loader matcher tests a writable HOME in CI

Under GitHub's docker runner the process uid has no passwd entry, so HOME
resolves to '/' and the test-mode qttest data dir cannot be created.
SettingsCache's QSettings then drops every write, getPicsPath() comes back
empty, and the loader searches a blank path. Point HOME at a QTemporaryDir
for the duration of the run.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-09-18 15:03:08 +02:00
..
card_picture_loader.cpp [PictureLoader] Add local override storage and resolution with matcher tests (#7311) 2026-09-18 15:03:08 +02:00
card_picture_loader.h [PictureLoader] Add local override storage and resolution with matcher tests (#7311) 2026-09-18 15:03:08 +02:00
card_picture_loader_cache_method.h [PictureLoader] Allow saving downloaded images to local storage and not just the QNetworkManager cache (#6620) 2026-05-16 20:15:10 +02:00
card_picture_loader_local.cpp [PictureLoader] Add local override storage and resolution with matcher tests (#7311) 2026-09-18 15:03:08 +02:00
card_picture_loader_local.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
card_picture_loader_local_schemes.h Run formatter on all our files (#6942) 2026-05-26 15:11:38 -07:00
card_picture_loader_request_status_display_widget.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
card_picture_loader_request_status_display_widget.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
card_picture_loader_status_bar.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
card_picture_loader_status_bar.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
card_picture_loader_worker.cpp [PictureLoader] Serve cached pictures from the disk cache instead of re-fetching them (#7284) 2026-09-13 03:36:29 +02:00
card_picture_loader_worker.h [PictureLoader] Schedule exponential backoff on 429 - Too many request handler and call failed on fail (#7053) 2026-08-08 22:55:27 +02:00
card_picture_loader_worker_work.cpp [PictureLoader] Schedule exponential backoff on 429 - Too many request handler and call failed on fail (#7053) 2026-08-08 22:55:27 +02:00
card_picture_loader_worker_work.h [PictureLoader] Schedule exponential backoff on 429 - Too many request handler and call failed on fail (#7053) 2026-08-08 22:55:27 +02:00
card_picture_to_load.cpp [Client] Show localized card names, texts and pictures (#7294) 2026-09-18 12:03:07 +02:00
card_picture_to_load.h [PictureLoader] Schedule exponential backoff on 429 - Too many request handler and call failed on fail (#7053) 2026-08-08 22:55:27 +02:00