mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2025-10-30 08:02:29 +00:00
Add auto enabled.
This commit is contained in:
parent
5b21f108cd
commit
b9660c127e
2 changed files with 6 additions and 0 deletions
|
|
@ -461,6 +461,7 @@ namespace recomp {
|
|||
void scan_mods();
|
||||
void enable_mod(const std::string& mod_id, bool enabled);
|
||||
bool is_mod_enabled(const std::string& mod_id);
|
||||
bool is_mod_auto_enabled(const std::string& mod_id);
|
||||
ModContentTypeId register_mod_content_type(const ModContentType& type);
|
||||
bool register_mod_container_type(const std::string& extension, const std::vector<ModContentTypeId>& content_types, bool requires_manifest);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -510,6 +510,11 @@ bool recomp::mods::is_mod_enabled(const std::string& mod_id) {
|
|||
return mod_context->is_mod_enabled(mod_id);
|
||||
}
|
||||
|
||||
bool recomp::mods::is_mod_auto_enabled(const std::string& mod_id) {
|
||||
std::lock_guard lock{ mod_context_mutex };
|
||||
return false; // TODO
|
||||
}
|
||||
|
||||
std::vector<recomp::mods::ModDetails> recomp::mods::get_mod_details(const std::string& mod_game_id) {
|
||||
std::lock_guard lock { mod_context_mutex };
|
||||
return mod_context->get_mod_details(mod_game_id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue