• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

damny

Private
82 Badges
Jul 25, 2013
11
0
  • Cities in Motion 2
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Pillars of Eternity
  • Europa Universalis IV: Pre-order
  • Cities: Skylines Deluxe Edition
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Cities in Motion
  • Europa Universalis IV
  • Crusader Kings II
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron IV: Field Marshal
  • Europa Universalis IV: Mandate of Heaven
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Warlock 2: The Exiled
  • Crusader Kings III
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
 
Upvote 0