hrszpuk / rectx

The powerful little project manager for the ReCT programming language!
GNU General Public License v3.0
6 stars 1 forks source link

Cross-platform support for Windows #17

Closed hrszpuk closed 2 years ago

hrszpuk commented 2 years ago

Issue

The original issue was outlined by Mauro in #14. To put it simply, many of the paths used in the code were for Unix platforms only (using / between items in the path).

Solution

Instead of using format! to create paths with /, I've used std::path::Path. This should relieve any cross-platform issues related to paths. In some instances where std::path::Path was not viable, I have used std::env::const::OS and format! to create the correct path.