littlektframework / littlekt

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.
https://littlekt.com
Apache License 2.0
321 stars 12 forks source link

`Vfs` doesn't allow loading of internal JAR resources #275

Closed LeHaine closed 2 months ago

LeHaine commented 2 months ago

Thanks to baseDir and the Vfs prepending, the "$baseDir/$path", loading a resource file from a JAR isn't possible. This may require a bit more though and a possible design change to allow multiple Vfs types, that are designated to load from different file systems. E.g. resourcesVfs would load from resources, fileVfs could load external files, etc.

LeHaine commented 2 months ago

See #274 for some context.