DIRECTOR: allow patcher to read Punycode

This commit is contained in:
Misty De Meo 2021-11-16 08:55:01 -08:00 committed by Eugene Sandulenko
parent a7525174de
commit eaa5bc15fe

View File

@ -20,6 +20,7 @@
*
*/
#include "common/punycode.h"
#include "director/director.h"
#include "director/cast.h"
#include "director/movie.h"
@ -193,7 +194,8 @@ Common::U32String LingoCompiler::patchLingoCode(const Common::U32String &line, L
}
// Now expensive ones
if (movie.compareToIgnoreCase(patch->movie) || strcmp(patch->gameId, g_director->getGameId())
U32String moviename = punycode_decode(patch->movie);
if (movie.compareToIgnoreCase(moviename) || strcmp(patch->gameId, g_director->getGameId())
|| (patch->extra && strcmp(patch->extra, g_director->getExtra()))) {
patch++;
continue;