(I'm assuming this is targetted at me!)leezer3 wrote: Sat May 01, 2021 3:36 pm A suggestion:
You're spending a lot of time messing around with casing in filenames, and this can only get worse if other authors start pushing personalities.
It might be easier to just write a path insensitive combining function and use that instead.
https://github.com/leezer3/OpenBVE/blob ... em/Path.cs
Feel free to hijack these (they're C# but should be trivial to port to Java)
I don't know how much time you think I've spent patching scripts to resolve case sensitive issues with filenames, but it's really not that much. Most of the media cross referencing was related to finding unused media and incorrect paths to media, and there were only a handful of case problems.
I do appreciate the suggestion for a generic solution within TAJ, it's something I've considered before. The actual implementation could be quite a significant change to TAJ and the APIs that bridge between JavaScript and Java. As (I believe) there are only a handful of Linux/iOS users, in the short term I just want to help them in the short term by spending a couple of hours patching scripts. I think the generic solution is more likely to take in excess of 40 hours; the implementation is fairly trivial but I anticipate the testing time to be significant. Perhaps you've got a better idea than me that'll be quicker/easier to implement.



