Without starting another discussion about what AGS should and should not do, I'm trying to find a workaround for the sound issue discussed in this thread. I.e. if "no digital sound" option is chosen in the setup, the code below will make your game crash.
...unless you wrap everything in a "if(audio){}" which is too much work for me at this point.
I suppose there is no way of checking if this option is chosen, from within an ags-application? Could I do this by raw reading acetup.cfg? (been unsuccessful so far) Changing the name of audio.vox with a custom setup could do the trick, since ags can check for files. Any obvious dangers there? (such as windows security)
Thanks.
...unless you wrap everything in a "if(audio){}" which is too much work for me at this point.
I suppose there is no way of checking if this option is chosen, from within an ags-application? Could I do this by raw reading acetup.cfg? (been unsuccessful so far) Changing the name of audio.vox with a custom setup could do the trick, since ags can check for files. Any obvious dangers there? (such as windows security)
Thanks.