[Kde-games-devel] Faster KGameThemeSelector startup

Dmitry Suzdalev dimsuz at gmail.com
Fri Jun 1 15:01:26 CEST 2007


2007/6/1, Mauricio Piacentini <mauricio at tabuleiro.com>:
> I think it is ok, although it will not immediately catch problems with
> corrupted SVG files. But the application can then use KGameTheme->load
> for this.
Wait-wait :). I'm talking exactly about this method.
Again: KGameThemeSelector uses it to try to load every theme it finds, and
KGameTheme::load() is loading whole svg.

If I commit my patch, then game writers need to do something like:
theme->load();
KSvgRenderer->load( theme->graphics())
if(KSvgRenderer->isValid())
{
 .....
}

I.e. this check will be on game-writers side, not in the libkdegames.

Dmitry.


More information about the kde-games-devel mailing list