Home
Help
Search
Login
Register
Attract-Mode Support Forum
»
Attract-Mode Support
»
Scripting
»
Is there a function that returns the language that is selected in attract.cfg?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is there a function that returns the language that is selected in attract.cfg? (Read 3601 times)
iOtero
Sr. Member
Posts: 414
Is there a function that returns the language that is selected in attract.cfg?
«
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...
«
Last Edit: August 29, 2018, 05:08:33 AM by iOtero
»
Logged
Nacer a los 15 años
Una novela de iOtero
keilmillerjr
Global Moderator
Hero Member
Posts: 1167
Re: Is there a function that returns the language that is selected in attract.cfg?
«
Reply #1 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?
Logged
http://arcademvs.org
https://gitlab.com/attractmode/attract
https://gitlab.com/attractmode/wiki
https://attractmode.gitlab.io/wiki/
iOtero
Sr. Member
Posts: 414
Re: Is there a function that returns the language that is selected in attract.cfg?
«
Reply #2 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.
Logged
Nacer a los 15 años
Una novela de iOtero
Print
Pages: [
1
]
« previous
next »
Attract-Mode Support Forum
»
Attract-Mode Support
»
Scripting
»
Is there a function that returns the language that is selected in attract.cfg?