frontend-sdl2 icon indicating copy to clipboard operation
frontend-sdl2 copied to clipboard

Allow presetPath to contain a name of the file

Open tari3x opened this issue 2 years ago • 3 comments
trafficstars

In a somewhat recent version of the UI I was able to submit a preset filename as presetPath which would open the given preset. In the current tip this results in a crash, Is there some other way to just load a specific preset?

 /home/avatar/bin/projectMSDL.exe --presetPath="./Fractal/Nested Circle/LuX - Heavy Acid Trip 3.milk" 
Recording audio from device "Default capturing device" (ID -1).
Opened audio recording device "System default capturing device" (ID -1) with 2 channels at 44100 Hz.
Null pointer: path in file "./Foundation/src/Path.cpp", line 64

tari3x avatar Feb 18 '23 22:02 tari3x

To be more precise, pressing "r" does nothing and pressing space results in the crash.

tari3x avatar Feb 18 '23 22:02 tari3x

While it should not crash (will fix that), the presetPath option currently doesn't support single files, as it's interpreted as a directory.

Absolutely makes sense to check if the given path is a file or directory and add it accordingly, will put it on the to-do list.

Plus, in the currently WIP UI overhaul, it'll be possible to create individual playlists containing any number of preset files in a specific order and also load a playlist on startup.

kblaschke avatar Feb 22 '23 10:02 kblaschke

Thanks!

It definitely used to work, even if not intentionally.

tari3x avatar Mar 01 '23 00:03 tari3x