2004-08-20, 01:15
any chance of adding an option to completely disable rss feeds without the need to remove them from a skin xml file?
**edit**
i was looking over the source and sorta figured it could be done in the guicontrolfactoy.cpp by having cguicontrol* cguicontrolfactory::create return null within the rss creation block if some global boolean setting is true. this would stop all rss controls from being built.
something like this:
if (strtype=="rss")
{
if (g_stsettings.m_bdisablerss)
{
return null;
}
// else create the cguirsscontrol* pcontrol as normal
}
the problem is that i'm not sure how to implement a new settings variable and make it a checkmark control type. i guess an option like this would be configuratble thru guiwindowsettingsuserinterface.cpp.
**edit**
i was looking over the source and sorta figured it could be done in the guicontrolfactoy.cpp by having cguicontrol* cguicontrolfactory::create return null within the rss creation block if some global boolean setting is true. this would stop all rss controls from being built.
something like this:
if (strtype=="rss")
{
if (g_stsettings.m_bdisablerss)
{
return null;
}
// else create the cguirsscontrol* pcontrol as normal
}
the problem is that i'm not sure how to implement a new settings variable and make it a checkmark control type. i guess an option like this would be configuratble thru guiwindowsettingsuserinterface.cpp.