Fix problem with -psn argument on macOS
This commit is contained in:
parent
67d7b894ae
commit
2b277bb502
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue