2010-08-12, 19:17
I'm attempting to produce an added feature to XBMC(one that I find quite useful). I have most of the changes made(and figured out) but slightly stumped on two things.
In GUISettings.cpp I have the following:
What I would like to accomplish first is changing the bool of "audiocds.autorun" and "audiocds.autorip" based on one another.
For example:
If audiocds.autorun is true, audiocds.autorip needs to be false and vice versa. Both options can be false of course.
The second item I would like to accomplish is hiding the option "AddBool(acd, "audiocds.autoeject", 14097, false);" if audiocds.autorip is false.
Thanks in advanced...
In GUISettings.cpp I have the following:
Code:
CSettingsCategory* acd = AddCategory(3, "audiocds", 620);
AddBool(acd, "audiocds.autorun", 14085, false);
AddBool(acd, "audiocds.autorip", 14096, false);
AddBool(acd, "audiocds.autoeject", 14097, false);
AddBool(acd, "audiocds.usecddb", 227, true);
AddSeparator(acd, "audiocds.sep1");
What I would like to accomplish first is changing the bool of "audiocds.autorun" and "audiocds.autorip" based on one another.
For example:
If audiocds.autorun is true, audiocds.autorip needs to be false and vice versa. Both options can be false of course.
The second item I would like to accomplish is hiding the option "AddBool(acd, "audiocds.autoeject", 14097, false);" if audiocds.autorip is false.
Thanks in advanced...