Skip to content

Normalise paths to generic format#14

Merged
nextgeniuspro merged 1 commit into
nextgeniuspro:masterfrom
Finn-Else-McCormick-Abertay:normalise-paths
Oct 28, 2024
Merged

Normalise paths to generic format#14
nextgeniuspro merged 1 commit into
nextgeniuspro:masterfrom
Finn-Else-McCormick-Abertay:normalise-paths

Conversation

@Finn-Else-McCormick-Abertay

Copy link
Copy Markdown
Contributor

Resolve #13 by converting the std::filesystem::path in FileInfo to generic (POSIX) format, which is what vfspp seems to expect.

Otherwise on Windows you have to use forward slashes in the parts of paths which are virtual, and backslashes in the parts that are real, eg: '/assets/shaders\frag.glsl', or it won't find the file.

@nextgeniuspro

Copy link
Copy Markdown
Owner

Oh, you're right, thanks for fix

@nextgeniuspro
nextgeniuspro merged commit 74a82f6 into nextgeniuspro:master Oct 28, 2024
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.

Do we need to normalize paths in windows or something?

2 participants