fabmax / kool

An OpenGL / WebGPU engine for Desktop JVM, Android and Javascript written in Kotlin
https://fabmax.github.io/kool/kool-js
Apache License 2.0
273 stars 16 forks source link

Add file path return value for loadFileByUser and saveFileByUser #41

Closed B4rtware closed 1 year ago

B4rtware commented 1 year ago

This returns a path for the JVM version of loadFileByUser in the form of the LoadedFile class. In JS all path properties are null. With saveFileByUser now a string? is returned which returns the savePath and null for JS.

Additionally, on the loadFileByUser function, the filterList property has been exposed which is used by the fileChooser.