mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-06-08 04:17:34 -04:00
Fixes for macOS
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "ui_mod_menu.h"
|
||||
#include "recomp_ui.h"
|
||||
#include "zelda_support.h"
|
||||
|
||||
#include "librecomp/mods.hpp"
|
||||
|
||||
@@ -223,6 +224,9 @@ void ModMenu::open_mods_folder() {
|
||||
#elif defined(__linux__)
|
||||
std::string command = "xdg-open " + mods_directory.string() + " &";
|
||||
std::system(command.c_str());
|
||||
#elif defined(__APPLE__)
|
||||
std::string command = "open " + mods_directory.string();
|
||||
std::system(command.c_str());
|
||||
#else
|
||||
static_assert(false, "Not implemented for this platform.");
|
||||
#endif
|
||||
@@ -540,7 +544,7 @@ ModMenu::ModMenu(Element *parent) : Element(parent) {
|
||||
|
||||
context.close();
|
||||
|
||||
sub_menu_context = recompui::create_context("assets/config_sub_menu.rml");
|
||||
sub_menu_context = recompui::create_context(zelda64::get_asset_path("config_sub_menu.rml"));
|
||||
sub_menu_context.open();
|
||||
Rml::ElementDocument* sub_menu_doc = sub_menu_context.get_document();
|
||||
Rml::Element* config_sub_menu_generic = sub_menu_doc->GetElementById("config_sub_menu");
|
||||
|
||||
Reference in New Issue
Block a user