Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

jakobhellermann
Copy link
Contributor

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
Copy link
Member

What if you use Path.GetFullPath?

@psyGamer psyGamer closed this in b1dc2fa Oct 22, 2024
@jakobhellermann jakobhellermann deleted the fix-save-crash branch November 6, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants