mirror of
https://github.com/fallout2-ce/fallout2-ce.git
synced 2026-07-27 16:47:11 -07:00
* Fix global script loading on non-Windows Previously, global scripts in .dats and in local FS didn't work due to path separator confusion. Now: * Hardcode global script path to "scripts\gl*.int" (windows separator) * Use Windows fpattern matching inside of dFile (.dats, which always use windows separators) * Use \-paths when listing found global scripts The awkward part is having to vendor a copy of fpattern to force it to use "windows mode". It's possible that we could use this everywhere since windows allows / as separator, but that could cause bugs where we're using fpattern on the native FS. For now keeping the dFile implementation separate makes sense.