RandyGaul / cute_framework

The *cutest* framework out there for creating 2D games in C++!
https://randygaul.github.io/cute_framework/#/
Other
546 stars 31 forks source link

cf_path_top_directory returns incorrect value on Windows. #234

Open waldnercharles opened 2 months ago

waldnercharles commented 2 months ago

Passing C:/Users/waldnercharles to cf_path_top_directory appears to return C:/Use. I believe this is because we should be calling char* s = sdup(path + at); instead of char* s = sdup(path);, but haven't had time to look at the unit tests.