Proposal for adding a configuration file to SDL

Hi,

I have been implementing SymbianOS version of SDL (included since v.1.2.3).
That is used e.g. in mobile phones: Nokia 9210, Nokia 7650, Sony-Ericsson
P800.

I have been thinking about implementing a config file for SDL (e.g.
sdl.ini). There are things like screen orientation, keyboard layout, display
driver, etc. that cannot be configured using SDL API. In most platforms
these could be defined by using environment variables, but there is not such
thing in SymbianOS.

Althought it is possible to make SymbianOS specific solution, it would, of
course, be good to find some generic way to do this. Any other suggestions
than a config file?

Hannu Viitala wrote:

Hi,

I have been implementing SymbianOS version of SDL (included since
v.1.2.3).
That is used e.g. in mobile phones: Nokia 9210, Nokia 7650, Sony-Ericsson
P800.

I have been thinking about implementing a config file for SDL (e.g.
sdl.ini). There are things like screen orientation, keyboard layout,
display
driver, etc. that cannot be configured using SDL API. In most platforms
these could be defined by using environment variables, but there is
not such
thing in SymbianOS.

Althought it is possible to make SymbianOS specific solution, it would, of
course, be good to find some generic way to do this. Any other suggestions
than a config file?

Like enviroment variables, a configuration file might also be platform
specific (theoretically there could be a platform where you couldn’t
read that file… maybe a game console, a program embedded into a
web-page or a chip, etc.)

BTW, AFAIK the SDL enviroment variables are unrelated to those of the
OS, and therefor should exist everythere. Did you try to use them in
SymbianOS?

RK.