mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 21:09:34 -10:00
core_load_check.c checks a core before it is opened: the quick check on the main thread, else a task hashes it in slices of the shared I/O window and keeps the result for the load, bound to the file it checked. A refusal tells whether it only waits for the first run's seed. Built with HAVE_CORE_LOAD_CHECK; nothing calls it yet. Its unit harness runs in the samples-tasks job, under ASan and UBSan, TSan and mingw-w64. On Windows the check reads the file LoadLibraryW will load: a name with no '.' is read as <name>.dll, and a \\?\ path ending in '.' is refused, since CreateFileW opens that name as written while LoadLibraryW may drop the dot and map another file.