Commit Graph
7 Commits
Author SHA1 Message Date
Mike Klaas b97c9864aa Fix global script loading on non-Windows (#347)
* 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.
2026-04-01 20:20:57 -07:00
Alexander Batalov f6ba9d38fd Use FetchContent_MakeAvailable (#438) 2025-02-09 13:10:54 +03:00
Alexander Batalov d586e81827 Migrate fpattern (#442) 2025-01-14 08:45:02 +03:00
Alexander Batalov d39276fe3a Update fpattern config 2022-09-01 06:24:01 +03:00
Alexander Batalov 6ae1afc57c Make file find utils cross-platform
See #17
2022-05-28 14:01:52 +03:00
Alexander Batalov 7174cc703d Reorganize fpattern config 2022-05-28 08:35:23 +03:00
Alexander Batalov 55661742a2 Initial commit 2022-05-19 11:51:26 +03:00