mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 22:51:24 +02:00
- removed directsound8 as a selectable option in ini or UI
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "randomgen.h"
|
||||
#include "vec.h"
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
using Shared::Platform::int8;
|
||||
using Shared::Platform::int32;
|
||||
|
@@ -32,21 +32,22 @@ GraphicsFactory *FactoryRepository::getGraphicsFactory(const string &name){
|
||||
return &graphicsFactoryGl2;
|
||||
}
|
||||
|
||||
throw megaglest_runtime_error("Unknown graphics factory: " + name);
|
||||
throw megaglest_runtime_error("Unknown graphics factory: [" + name + "]");
|
||||
}
|
||||
|
||||
SoundFactory *FactoryRepository::getSoundFactory(const string &name){
|
||||
if(name == "DirectSound8"){
|
||||
return &soundFactoryDs8;
|
||||
}
|
||||
else if(name == "OpenAL") {
|
||||
// deprecated as of 3.6.1
|
||||
//if(name == "DirectSound8"){
|
||||
// return &soundFactoryDs8;
|
||||
//}
|
||||
if(name == "OpenAL") {
|
||||
return &soundFactoryOpenAL;
|
||||
}
|
||||
else if(name == "" || name == "None") {
|
||||
return &soundFactoryNone;
|
||||
}
|
||||
|
||||
throw megaglest_runtime_error("Unknown sound factory: " + name);
|
||||
throw megaglest_runtime_error("Unknown sound factory: [" + name + "]");
|
||||
}
|
||||
|
||||
}}//end namespace
|
||||
|
Reference in New Issue
Block a user