added qtmultimedia version for sound

This commit is contained in:
Geoffray Levasseur committed 2026-11-04 15:41:15 +01:00
1 parent 70ff70652c
commit 808b403bba
8 files changed
+172 -7

No files matched your search

+8
View File
@@ -27,6 +27,7 @@
// knowledge of the CeCILL license and that you accept its terms.
#include "Global.h"
#include "Sound.h"
#include "Cevo/CevoGraphicSet.h"
#include "Cevo/CevoScreenTools.h"
@@ -75,6 +76,12 @@ QString getMusicDir()
return dir.isEmpty() ? QString() : dir + QStringLiteral("/Music");
}
QString getSoundsDir()
{
const QString dir = resourceDir();
return dir.isEmpty() ? QString() : dir + QStringLiteral("/Sounds");
}
QString getAppSharePath(const QString &path)
{
const QString dir = resourceDir();
@@ -196,6 +203,7 @@ void loadAssets()
{
graphicsDir = getGraphicsDir();
loadPhrases();
Sound::load();
loadFonts(localizedFilePath(QStringLiteral("Fonts.txt")));
Templates = loadGraphicSet(QStringLiteral("Templates") + QLatin1String(PngExt), false);