mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 22:38:54 -06:00
refactor: split the campaign class
Probe runs, check state and findings move verbatim into a CheckRuns base class in probes.checkruns, with the records they share. Cores and ContentStore name CheckRuns, the class holding everything they read.
This commit is contained in:
1 parent
209dbf38d8
commit
7ca304a5dd
7 files changed
+408
-393
No files matched your search
@@ -21,7 +21,7 @@ from core.statefile import now_iso
|
||||
from probes.host import NETWORK_DELAYS, Unavailable, child_env, main_cache, run_group
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from probes.campaign import Campaign
|
||||
from probes.checkruns import CheckRuns
|
||||
|
||||
|
||||
ROMFETCH_ENV = "RETROBIOS_ROMFETCH"
|
||||
@@ -167,7 +167,7 @@ class ContentStore:
|
||||
past the cap. Only what the campaign fetched is ever deleted, and never
|
||||
a pinned entry."""
|
||||
|
||||
def __init__(self, campaign: Campaign) -> None:
|
||||
def __init__(self, campaign: CheckRuns) -> None:
|
||||
self.c = campaign
|
||||
self.state: dict = campaign.state["content"]
|
||||
self.refs: dict[str, set[str]] = {}
|
||||
|
||||
Reference in new issue
Block a user