Mod support does not work if the game is running from a parent directory that ends in Data. When it finds something in Data under a mod folder, it appears to be trying to create that path relative to Data/ but it stops at the first instance of Data/.
When running debug builds out of the Xcode debugger, apps are compiled by default into a folder called DerivedData/ so this makes debugging with mods installed not really feasible. Fix the problem by finding the last instance of the Data/ token instead of the first one.
I don't know if this fix will break anything else so please consider the implications.
Mod support does not work if the game is running from a parent directory that ends in Data. When it finds something in Data under a mod folder, it appears to be trying to create that path relative to Data/ but it stops at the first instance of Data/.
When running debug builds out of the Xcode debugger, apps are compiled by default into a folder called DerivedData/ so this makes debugging with mods installed not really feasible. Fix the problem by finding the last instance of the Data/ token instead of the first one.
I don't know if this fix will break anything else so please consider the implications.