mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 14:12:39 +00:00
Update shortcut_utils.cpp
This commit is contained in:
parent
a1d55e5a54
commit
37d2317b68
@ -222,14 +222,6 @@ namespace gui::utils
|
|||||||
return cleanup(true, {});
|
return cleanup(true, {});
|
||||||
|
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
|
|
||||||
const std::string app_bundle_path = fs::get_executable_path();
|
|
||||||
if (app_bundle_path.empty())
|
|
||||||
{
|
|
||||||
sys_log.error("Failed to create shortcut. App bundle path empty.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt::append(link_path, "/%s.app", simple_name);
|
fmt::append(link_path, "/%s.app", simple_name);
|
||||||
|
|
||||||
const std::string contents_dir = link_path + "/Contents/";
|
const std::string contents_dir = link_path + "/Contents/";
|
||||||
@ -246,7 +238,7 @@ namespace gui::utils
|
|||||||
const std::string launcher_path = macos_dir + "launcher";
|
const std::string launcher_path = macos_dir + "launcher";
|
||||||
|
|
||||||
std::string launcher_content;
|
std::string launcher_content;
|
||||||
fmt::append(launcher_content, "#!/bin/bash\nopen \"%s\" --args %s", app_bundle_path, target_cli_args);
|
fmt::append(launcher_content, "#!/bin/bash\nopen -b net.rpcs3.rpcs3 --args %s", target_cli_args);
|
||||||
|
|
||||||
fs::file launcher_file(launcher_path, fs::read + fs::rewrite);
|
fs::file launcher_file(launcher_path, fs::read + fs::rewrite);
|
||||||
if (!launcher_file)
|
if (!launcher_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user