mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
cuckoo
This commit is contained in:
parent
05ebb83ba4
commit
7bfa3e6d3a
4 changed files with 8 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ SoundEngine::SoundEngine(QObject *parent)
|
|||
void SoundEngine::cacheData()
|
||||
{
|
||||
static const QStringList fileNames = QStringList()
|
||||
<< "notification" << "draw" << "playcard" << "shuffle" << "tap" << "untap";
|
||||
<< "notification" << "draw" << "playcard" << "shuffle" << "tap" << "untap" << "cuckoo";
|
||||
for (int i = 0; i < fileNames.size(); ++i) {
|
||||
QFile file(settingsCache->getSoundPath() + "/" + fileNames[i] + ".raw");
|
||||
file.open(QIODevice::ReadOnly);
|
||||
|
|
@ -75,3 +75,8 @@ void SoundEngine::untap()
|
|||
{
|
||||
playSound("untap");
|
||||
}
|
||||
|
||||
void SoundEngine::cuckoo()
|
||||
{
|
||||
playSound("cuckoo");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue