Handle broken wordlists and audio files
[sgc2.git] / praat_module / sys_praat_name.patch
blob3feb3c3ed3d600e583aedc29f8f1112d462b9747
1 diff -Naurp -x '*.[oah]' -x '.git*' -x praat praat_sources/sys/praat.cpp demo_praat_sources/sys/praat.cpp
2 --- praat_sources/sys/praat.cpp 2012-10-15 10:41:10.000000000 +0200
3 +++ demo_praat_sources/sys/praat.cpp 2012-10-15 13:47:24.000000000 +0200
4 @@ -1193,9 +1193,9 @@ void praat_init (const char *title, unsi
5 * Make sure that the program's private directory exists.
6 */
7 #if defined (UNIX)
8 - swprintf (name, 256, L".%ls-dir", Melder_utf8ToWcs (programName)); /* For example .myProg-dir */
9 + swprintf (name, 256, L".%ls", Melder_utf8ToWcs (praatP.title)); /* For example .myProg-dir */
10 #elif defined (macintosh)
11 - swprintf (name, 256, L"%ls Prefs", Melder_utf8ToWcs (praatP.title)); /* For example MyProg Prefs */
12 + swprintf (name, 256, L"%ls", L"SpeakGoodChinese2"); /* For example MyProg Prefs */
13 #elif defined (_WIN32)
14 swprintf (name, 256, L"%ls", Melder_utf8ToWcs (praatP.title)); /* For example MyProg */
15 #endif