mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
DIRECTOR: allow patcher to read Punycode
This commit is contained in:
parent
a7525174de
commit
eaa5bc15fe
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user