#pragma once #include "plugin_host.h" #include #include #include #include // Which mods are plugins: the mods mods.json leaves on (Engine/Vfs/mod_list.h) that have a // reskate-plugin.json. Reads the disk; run it off the game thread. namespace dingosdk::plugins { // What check_package_files said about a package, by its fingerprint, so an unchanged package is // not read again. using FileChecks = std::map>; std::vector discover(const std::filesystem::path& data_root, FileChecks& checks); // Why a package may not load, from its files alone, or empty. A plugin never ships a program: no // Windows executable (by its first bytes, whatever its name) and no script Windows runs. std::string check_package_files(const std::filesystem::path& directory); }