Discuz! Board's Archiver

dcsan posted on 2011-10-18 03:13

read config from code?

is there anyway API to read values from the config file in the main .as code? i want to read things like version number / base_url in the code.

赵韬 posted on 2011-10-18 14:29

sysinfo(21) version_code
sysinfo(25) base_url

dcsan posted on 2011-10-19 09:50

great, thanks for your help.
is there a way to define new properties?

赵韬 posted on 2011-10-19 14:57

No. What new properties do yo need?

dcsan posted on 2011-10-20 01:40

i was thinking to auto-generate some things like language / buildname / git tag etc. but no big deal, i can generate a Config class instead

Page: [1]

Powered by Discuz! X1.5 Archiver   © 2001-2010 Comsenz Inc.