(svn r26538) -Codechange: remove double accounting of the drivers
This commit is contained in:
@@ -59,6 +59,10 @@ DECLARE_POSTFIX_INCREMENT(Driver::Type)
|
||||
/** Base for all driver factories. */
|
||||
class DriverFactoryBase {
|
||||
private:
|
||||
friend class MusicDriver;
|
||||
friend class SoundDriver;
|
||||
friend class VideoDriver;
|
||||
|
||||
Driver::Type type; ///< The type of driver.
|
||||
int priority; ///< The priority of this factory.
|
||||
const char *name; ///< The name of the drivers of this factory.
|
||||
@@ -97,6 +101,8 @@ private:
|
||||
return driver_type_name[type];
|
||||
}
|
||||
|
||||
static bool SelectDriverImpl(const char *name, Driver::Type type);
|
||||
|
||||
protected:
|
||||
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description);
|
||||
|
||||
@@ -114,7 +120,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
static Driver *SelectDriver(const char *name, Driver::Type type);
|
||||
static void SelectDriver(const char *name, Driver::Type type);
|
||||
static char *GetDriversInfo(char *p, const char *last);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user