Ignore:
Timestamp:
May 7, 2020, 12:46:55 AM (5 years ago)
Author:
chronos
Message:
  • Added: New Global unit with global constants.
  • Modified: Multiple occurence of string constants used for subdirectories replaced by functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/Sound.pas

    r174 r189  
    290290  Result := (WavFileName <> '') and (WavFileName[1] <> '[') and (WavFileName <> '*');
    291291  if Result then
    292     // SndPlaySound(pchar(HomeDir+'Sounds' +DirectorySeparator+WavFileName+'.wav'),SND_ASYNC)
    293     PlaySound(HomeDir + 'Sounds' + DirectorySeparator + WavFileName);
     292    // SndPlaySound(pchar(GetSoundsDir + DirectorySeparator + WavFileName + '.wav'), SND_ASYNC)
     293    PlaySound(GetSoundsDir + DirectorySeparator + WavFileName);
    294294{$ENDIF}
    295295end;
     
    307307  Assert(WavFileName[1] <> '[');
    308308  if (WavFileName <> '') and (WavFileName[1] <> '[') and (WavFileName <> '*') then
    309     PrepareSound(HomeDir + 'Sounds' + DirectorySeparator + WavFileName);
     309    PrepareSound(GetSoundsDir + DirectorySeparator + WavFileName);
    310310{$ENDIF}
    311311end;
Note: See TracChangeset for help on using the changeset viewer.