Added ability to save scripts from objects from File -> Save as... and merged fixes for Unix systems, new detection for viewer 2.0

This commit is contained in:
phr0z3nt04st
2010-07-20 21:44:16 -05:00
parent 05b83e0179
commit 9e14b03165
6 changed files with 104 additions and 17 deletions

View File

@@ -52,6 +52,7 @@ extern void request_sound(const LLUUID &sound_guid);
LLAudioEngine* gAudiop = NULL;
int gSoundHistoryPruneCounter = 0;
//
// LLAudioEngine implementation
@@ -1820,7 +1821,8 @@ void logSoundPlay(LLUUID id, LLAudioSource* audio_source, LLVector3d position, S
gSoundHistory[id] = item;
}
static void logSoundStop(LLUUID id)
//static
void logSoundStop(LLUUID id)
{
if(gSoundHistory.find(id) != gSoundHistory.end())
{
@@ -1831,7 +1833,8 @@ static void logSoundStop(LLUUID id)
}
}
static void pruneSoundLog()
//static
void pruneSoundLog()
{
if(++gSoundHistoryPruneCounter >= 64)
{