Fix problem with -psn argument on macOS

This commit is contained in:
Francesco Abbate 2021-09-07 06:44:15 -07:00
parent 67d7b894ae
commit 2b277bb502
1 changed files with 4 additions and 1 deletions

View File

@ -461,9 +461,12 @@ function core.init()
project_dir = arg_filename project_dir = arg_filename
project_dir_explicit = true project_dir_explicit = true
else else
-- on macOS we can get an argument like "-psn_0_52353" that we just ignore.
if not ARGS[i]:match("^-psn") then
delayed_error = string.format("error: invalid file or directory %q", ARGS[i]) delayed_error = string.format("error: invalid file or directory %q", ARGS[i])
end end
end end
end
core.frame_start = 0 core.frame_start = 0
core.clip_rect_stack = {{ 0,0,0,0 }} core.clip_rect_stack = {{ 0,0,0,0 }}