Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Virtual files: Release mode, VIRTUAL_FILE macro #10

Open
Nielsbishere opened this issue Jun 22, 2020 · 1 comment
Open

Virtual files: Release mode, VIRTUAL_FILE macro #10

Nielsbishere opened this issue Jun 22, 2020 · 1 comment

Comments

@Nielsbishere
Copy link
Collaborator

Virtual files should get support for the NAME macro, meaning that it shouldn't be relied on that "~/..." is a virtual path, rather something that doesn't contain slashes.
This means assumptions using the extension shouldn't be present or the path itself shouldn't be relied on, only the "name" of the path.

This means that it'd be harder to reverse it; seeing as NAME("~/My test/My example.obj") would translate to a 12 char str.

@Nielsbishere Nielsbishere changed the title Virtual files: Release mode, NAME macro Virtual files: Release mode, VIRTUAL_FILE macro Jun 23, 2020
@Nielsbishere
Copy link
Collaborator Author

VIRTUAL_FILE should hash the full path, then prepend ~/. This ~/ is then removed when searching for matches.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant