Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: iOtero on August 29, 2018, 04:59:46 AM

Title: Is there a function that returns the language that is selected in attract.cfg?
Post by: iOtero on August 29, 2018, 04:59:46 AM
Is there a function in AM that returns the language that is selected in attract.cfg?

Something similar to this:
Code: [Select]
local my_lang = what_lang();

Thanks in advance...  :-[
Title: Re: Is there a function that returns the language that is selected in attract.cfg?
Post by: keilmillerjr on August 29, 2018, 05:19:35 AM
I wrote a script before to read the cfg file and parse it. Was kind of messy. Maybe some one else can tackle it?
Title: Re: Is there a function that returns the language that is selected in attract.cfg?
Post by: iOtero on August 29, 2018, 09:09:39 AM
In batch, I would know how to look inside attract.cfg, but in squirrel I have never tried it. But if you have something to base yourself on, I could try.