mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
pm: save ~0x3000 in binary
This commit is contained in:
parent
40400aee1f
commit
c0f7cd95b9
1 changed files with 2 additions and 2 deletions
|
@ -196,6 +196,7 @@ namespace ams::pm::impl {
|
||||||
os::SystemEvent g_boot_finished_event;
|
os::SystemEvent g_boot_finished_event;
|
||||||
|
|
||||||
/* Process Launch synchronization globals. */
|
/* Process Launch synchronization globals. */
|
||||||
|
os::Mutex g_launch_program_lock;
|
||||||
os::Event g_process_launch_start_event;
|
os::Event g_process_launch_start_event;
|
||||||
os::Event g_process_launch_finish_event;
|
os::Event g_process_launch_finish_event;
|
||||||
Result g_process_launch_result = ResultSuccess();
|
Result g_process_launch_result = ResultSuccess();
|
||||||
|
@ -469,8 +470,7 @@ namespace ams::pm::impl {
|
||||||
/* Process Management. */
|
/* Process Management. */
|
||||||
Result LaunchProgram(os::ProcessId *out_process_id, const ncm::ProgramLocation &loc, u32 flags) {
|
Result LaunchProgram(os::ProcessId *out_process_id, const ncm::ProgramLocation &loc, u32 flags) {
|
||||||
/* Ensure we only try to launch one program at a time. */
|
/* Ensure we only try to launch one program at a time. */
|
||||||
static os::Mutex s_lock;
|
std::scoped_lock lk(g_launch_program_lock);
|
||||||
std::scoped_lock lk(s_lock);
|
|
||||||
|
|
||||||
/* Set global arguments, signal, wait. */
|
/* Set global arguments, signal, wait. */
|
||||||
g_process_launch_args = {
|
g_process_launch_args = {
|
||||||
|
|
Loading…
Reference in a new issue