mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 15:11:20 +02:00
core_data/maint:coding style, playSound
This commit is contained in:
@@ -1782,7 +1782,7 @@ namespace Glest {
|
|||||||
PlaySoundClip::~PlaySoundClip(void) {
|
PlaySoundClip::~PlaySoundClip(void) {
|
||||||
};
|
};
|
||||||
|
|
||||||
StaticSound *PlaySoundClip::getSound(const std::string& PlaySoundVal) {
|
StaticSound *PlaySoundClip::getSound(const std::string& playSoundVal) {
|
||||||
CoreData coreData;
|
CoreData coreData;
|
||||||
int loadAttemptLookupKey = coreData.tsyst_COUNT + 6;
|
int loadAttemptLookupKey = coreData.tsyst_COUNT + 6;
|
||||||
if (coreData.itemLoadAttempted.find(loadAttemptLookupKey) ==
|
if (coreData.itemLoadAttempted.find(loadAttemptLookupKey) ==
|
||||||
@@ -1792,7 +1792,7 @@ namespace Glest {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
string data_path = coreData.getDataPath();
|
string data_path = coreData.getDataPath();
|
||||||
PlaySound.load(getGameCustomCoreDataPath(data_path, PlaySoundVal));
|
playSound.load(getGameCustomCoreDataPath(data_path, playSoundVal));
|
||||||
} catch (const megaglest_runtime_error & ex) {
|
} catch (const megaglest_runtime_error & ex) {
|
||||||
message(ex.what(),
|
message(ex.what(),
|
||||||
GlobalStaticFlags::getIsNonGraphicalModeEnabled(),
|
GlobalStaticFlags::getIsNonGraphicalModeEnabled(),
|
||||||
@@ -1800,7 +1800,7 @@ namespace Glest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return &PlaySound;
|
return &playSound;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ================== PRIVATE ========================
|
// ================== PRIVATE ========================
|
||||||
|
@@ -336,9 +336,9 @@ namespace Glest {
|
|||||||
|
|
||||||
class PlaySoundClip {
|
class PlaySoundClip {
|
||||||
private:
|
private:
|
||||||
StaticSound PlaySound;
|
StaticSound playSound;
|
||||||
public:
|
public:
|
||||||
StaticSound * getSound(const std::string& PlaySoundVal);
|
StaticSound * getSound(const std::string& playSoundVal);
|
||||||
static const string sfxAttention;
|
static const string sfxAttention;
|
||||||
static const string sfxHighlight;
|
static const string sfxHighlight;
|
||||||
static const string sfxNewServer;
|
static const string sfxNewServer;
|
||||||
|
Reference in New Issue
Block a user