soulsmods / DSMapStudio

A standalone map/level editor for Demon's Souls, Dark Souls 1/2/3, Bloodborne, Sekiro, and Elden Ring.
MIT License
477 stars 60 forks source link

Don't use stackalloc for large buf sizes #859

Closed Philiquaz closed 4 months ago

Philiquaz commented 6 months ago

Most relevant to multiline, prevents stackoverflow on super-large allocs. The threshhold is set way below that just on a matter of principle, and only functionally affects csv import windows etc. Does ugly up those lines of code a little, unfortunately.