mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2025-10-30 08:02:29 +00:00
Add export to get mod folder path (#109)
Some checks failed
validate / ubuntu (arm64, Debug) (push) Has been cancelled
validate / ubuntu (arm64, Release) (push) Has been cancelled
validate / ubuntu (x64, Debug) (push) Has been cancelled
validate / ubuntu (x64, Release) (push) Has been cancelled
validate / windows (x64, Debug) (push) Has been cancelled
validate / windows (x64, Release) (push) Has been cancelled
validate / macos (arm64, Debug) (push) Has been cancelled
validate / macos (arm64, Release) (push) Has been cancelled
validate / macos (x64, Debug) (push) Has been cancelled
validate / macos (x64, Release) (push) Has been cancelled
Some checks failed
validate / ubuntu (arm64, Debug) (push) Has been cancelled
validate / ubuntu (arm64, Release) (push) Has been cancelled
validate / ubuntu (x64, Debug) (push) Has been cancelled
validate / ubuntu (x64, Release) (push) Has been cancelled
validate / windows (x64, Debug) (push) Has been cancelled
validate / windows (x64, Release) (push) Has been cancelled
validate / macos (arm64, Debug) (push) Has been cancelled
validate / macos (arm64, Release) (push) Has been cancelled
validate / macos (x64, Debug) (push) Has been cancelled
validate / macos (x64, Release) (push) Has been cancelled
This commit is contained in:
parent
02d797aedc
commit
0aa75b98ba
1 changed files with 7 additions and 0 deletions
|
|
@ -90,6 +90,12 @@ void recomp_get_save_file_path(uint8_t* rdram, recomp_context* ctx) {
|
|||
return_string(rdram, ctx, std::filesystem::absolute(save_file_path).u8string());
|
||||
}
|
||||
|
||||
void recomp_get_mod_folder_path(uint8_t* rdram, recomp_context* ctx) {
|
||||
std::filesystem::path mod_folder_path = recomp::mods::get_mods_directory();
|
||||
|
||||
return_string(rdram, ctx, std::filesystem::absolute(mod_folder_path).u8string());
|
||||
}
|
||||
|
||||
void recomp::mods::register_config_exports() {
|
||||
recomp::overlays::register_ext_base_export("recomp_get_config_u32", recomp_get_config_u32);
|
||||
recomp::overlays::register_ext_base_export("recomp_get_config_double", recomp_get_config_double);
|
||||
|
|
@ -98,4 +104,5 @@ void recomp::mods::register_config_exports() {
|
|||
recomp::overlays::register_ext_base_export("recomp_get_mod_version", recomp_get_mod_version);
|
||||
recomp::overlays::register_ext_base_export("recomp_change_save_file", recomp_change_save_file);
|
||||
recomp::overlays::register_base_export("recomp_get_save_file_path", recomp_get_save_file_path);
|
||||
recomp::overlays::register_base_export("recomp_get_mod_folder_path", recomp_get_mod_folder_path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue