filter plugin will not be used when init failed (plugin not found or none selected)

This commit is contained in:
spacy51 2007-12-01 12:56:18 +00:00
parent 2196d04734
commit 1dcf48df2a
1 changed files with 18 additions and 8 deletions

View File

@ -711,9 +711,14 @@ void VBA::updateFilter()
filterMagnification = 1; filterMagnification = 1;
break; break;
case FILTER_PLUGIN: case FILTER_PLUGIN:
if (rpiInit(pluginName)) if( rpiInit( pluginName ) ) {
filterFunction = rpiFilter; filterFunction = rpiFilter;
filterMagnification = rpiScaleFactor(); filterMagnification = rpiScaleFactor();
} else {
filterType = FILTER_NONE;
updateFilter();
return;
}
break; break;
case FILTER_TVMODE: case FILTER_TVMODE:
filterFunction = ScanlinesTV; filterFunction = ScanlinesTV;
@ -792,11 +797,16 @@ void VBA::updateFilter()
filterMagnification = 1; filterMagnification = 1;
break; break;
case FILTER_PLUGIN: case FILTER_PLUGIN:
if (rpiInit(pluginName)) if( rpiInit( pluginName ) ) {
filterFunction = rpiFilter; filterFunction = rpiFilter;
filterMagnification = rpiScaleFactor(); filterMagnification = rpiScaleFactor();
b16to32Video=true; b16to32Video=true;
break; } else {
filterType = FILTER_NONE;
updateFilter();
return;
}
break;
case FILTER_TVMODE: case FILTER_TVMODE:
filterFunction = ScanlinesTV32; filterFunction = ScanlinesTV32;
filterMagnification = 2; filterMagnification = 2;