mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-21 12:29:43 -10:00
With the load check built in, the first run with a store that was never seeded hashes every core in the platform's built-in cores folder, a read or a folder entry at a time within the per-frame I/O window, and trusts each one, up to the store's 256 trusted hashes. Only what lstat() calls a regular file is seeded, so a symlink in the folder can't bring in a file that lives elsewhere; a hardlink's bytes are the folder's own. On Android the seed walks <ApplicationInfo.dataDir>/cores, which no intent extra moves, rather than the default core folder, which follows the DATADIR extra; when ApplicationInfo can't be read the seed doesn't run that launch. The store is marked seeded once the walk finishes or the folder doesn't exist. A seed cut short at quit, or a folder that is there but can't be opened, is seeded at a later start. If trust was recorded for at least one core, a notice says once that cores are now checked.