mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2026-02-05 05:06:31 +00:00
Mods directory.
This commit is contained in:
parent
40df967a5c
commit
653a82816e
2 changed files with 5 additions and 0 deletions
|
|
@ -547,6 +547,7 @@ namespace recomp {
|
|||
|
||||
void initialize_mods();
|
||||
void scan_mods();
|
||||
std::filesystem::path get_mods_directory();
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -103,6 +103,10 @@ void recomp::mods::scan_mods() {
|
|||
mod_context->load_mods_config();
|
||||
}
|
||||
|
||||
std::filesystem::path recomp::mods::get_mods_directory() {
|
||||
return config_path / mods_directory;
|
||||
}
|
||||
|
||||
recomp::mods::ModContentTypeId recomp::mods::register_mod_content_type(const ModContentType& type) {
|
||||
std::lock_guard mod_lock{ mod_context_mutex };
|
||||
return mod_context->register_content_type(type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue