Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iRi-E/938499 to your computer and use it in GitHub Desktop.
Save iRi-E/938499 to your computer and use it in GitHub Desktop.
diff --git a/QMA/QMALipSyncLoader.cc b/QMA/QMALipSyncLoader.cc
index 48bcdf4..b71f95a 100644
--- a/QMA/QMALipSyncLoader.cc
+++ b/QMA/QMALipSyncLoader.cc
@@ -43,6 +43,7 @@
#include <QStringList>
#include <QTextCodec>
#include <QTextStream>
+#include <QDebug>
QMALipSyncLoader::QMALipSyncLoader(const char *filename)
: m_expressionNames(0),
@@ -59,6 +60,9 @@ QMALipSyncLoader::QMALipSyncLoader(const char *filename)
m_file = new QFile(path);
else
m_file = new QFile("MMDAIUserData:/" + path);
+ if (!m_file->exists())
+ m_file->setFileName("MMDAIResources:AppData/lip.txt");
+ qDebug().nospace() << "LipSync config file: " << m_file->fileName();
}
QMALipSyncLoader::~QMALipSyncLoader()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment