Forums » StepMania Development » Accessing StepMania.ini data

1
So I made a replacement parallel_lights_io.dll here: http://beta.stepmania.com/forums/general-stepmania/show/174
this allows you to change the port addresses through a text file and can be used on any pre-compiled StepMania build as long as windows light output wasn't intentionally commented out like it is in 3.9 Final. It also uses a free and open source parallel io library to get around the issues with the original io.dll...

What I'd like to do is modify LightsDriver_Win32Parallel.cpp to include those changes in the original source, but rather than use a separate .ini file I think it makes sense to simply set the port addresses inside the StepMania.ini.

I was wondering if there are existing functions within the StepMania source that I could tap into to read these values from the ini instead of writing all my own functions to interpret the ini just for the lights driver.

I am a programmer but I'm not a C/C++ developer so it's taking me a while to find my way around and wrap my head around how things are done in C.... but I'm making progress and learning along the way. Any help would be appreciated.

After I get the Parallel Lights driver settle I'm going to move on to getting Serial output as well as USB output via PacDrive.

Last edited: 20 February 2014 6:46am

Reply