EverestAPI / CelesteTAS-EverestInterop

Everest interop for DevilSquirrel's CelesteTAS
https://github.com/EuniverseCat/CelesteTAS
MIT License
67 stars 28 forks source link

fix: choose 'Documents/TAS Files' as fallback directory to prevent `new Uri` crash #88

Open jakobhellermann opened 3 days ago

jakobhellermann commented 3 days ago

new Uri("TAS Files") crashes since it cannot figure out the protocol or something.

System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
   at System.Uri..ctor(String uriString)
   at CelesteStudio.Studio.OnSaveFileAs() in C:\Users\Jakob\Documents\dev\celeste\StudioV3\Studio\CelesteStudio\Studio.cs:line 514
psyGamer commented 5 hours ago

What if you use Path.GetFullPath?