summaryrefslogtreecommitdiffstats
path: root/pokemod/Dialog.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-13 01:32:22 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-13 01:32:22 +0000
commit571f40d02ec5322b7aa62e8b0f7d37ba538a9a25 (patch)
tree5d5c7d9c250369d3acdc5f05f1eeca4aede66cb8 /pokemod/Dialog.cpp
parente11ae3d4907f0ce39b96ba6b29442be05f99b59c (diff)
downloadsigen-571f40d02ec5322b7aa62e8b0f7d37ba538a9a25.tar.gz
sigen-571f40d02ec5322b7aa62e8b0f7d37ba538a9a25.tar.xz
sigen-571f40d02ec5322b7aa62e8b0f7d37ba538a9a25.zip
[ADD] Added Sound class and related code
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@125 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Dialog.cpp')
-rw-r--r--pokemod/Dialog.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/pokemod/Dialog.cpp b/pokemod/Dialog.cpp
index de1e87f7..43ba518a 100644
--- a/pokemod/Dialog.cpp
+++ b/pokemod/Dialog.cpp
@@ -523,17 +523,15 @@ void Dialog::validate()
case Music:
if (numArgs == 1)
{
- // FIXME: find sound files
-// if (!QFile(QString("%1/music/%2").arg(static_cast<const Pokemod*>(pokemod())->path()).arg(arg)).exists())
-// invError = 1;
+ if (!ok || (static_cast<const Pokemod*>(pokemod())->soundIndex(temp) == INT_MAX))
+ invError = 1;
}
break;
case SoundEffect:
if (numArgs == 1)
{
- // FIXME: find sound files
-// if (!QFile(QString("%1/sound/%2").arg(static_cast<const Pokemod*>(pokemod())->path()).arg(arg)).exists())
-// invError = 1;
+ if (!ok || (static_cast<const Pokemod*>(pokemod())->soundIndex(temp) == INT_MAX))
+ invError = 1;
}
else if (numArgs == 2)
{