Description
Modding: Crash to Desktop via lfs.dir()
Windows
Steam
What is your game version?
228184
Please explain your issue is in as much detail as possible.
On Windows, the iterator function returned by lfs.dir() causes a crash to desktop on the second call.
On macOS, it works as expected.
(Use case: My console mod wants to find lua files in AppData/ so it can check syntax before calling ReloadLua().)
Can you replicate the issue?
x = lfs.dir(ConvertToOSPath("AppData/"))
x() -- returns "."
x() -- crashes game
Attachments
Modding: Crash to Desktop via lfs.dir()
Windows
Steam
What is your game version?
228184
Please explain your issue is in as much detail as possible.
On Windows, the iterator function returned by lfs.dir() causes a crash to desktop on the second call.
On macOS, it works as expected.
(Use case: My console mod wants to find lua files in AppData/ so it can check syntax before calling ReloadLua().)
Can you replicate the issue?
x = lfs.dir(ConvertToOSPath("AppData/"))
x() -- returns "."
x() -- crashes game
Attachments
Upvote
0