Restict calls to pciOpen() pciClose() when compiled with DIRECTX option. this fixes problems with the win32 miniport opened in exclusive mode.

This commit is contained in:
koolsmoky
2005-01-13 16:22:01 +00:00
parent 8040c684ef
commit 6d736fd608

View File

@@ -90,10 +90,10 @@ void fxremap_dowork(int argc,char **argv,int doit_silently)
ProcessCommandLine(argv,argc);
#if !DIRECTX
InitRemap();
#endif
if (!FindNecessaryCards())
{
if (!silent) {
@@ -149,7 +149,9 @@ void fxremap_main(int argc,char **argv) {
void InitRemap(void)
{
#if !DIRECTX
pciOpen();
#endif
}
void CloseRemap(void)