Skip to content

Commit

Permalink
Android: Remove UTF16 check as liblcf removes them now
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Dec 20, 2024
1 parent 43d5b95 commit aca8f71
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,6 @@ Java_org_easyrpg_player_game_1browser_Game_reencodeTitle(JNIEnv *env, jobject th
if (encoding == "auto") {
auto det_encodings = lcf::ReaderUtil::DetectEncodings(title);
for (auto &det_enc: det_encodings) {
if (det_enc == "UTF-16BE" || det_enc == "UTF-16LE") {
// Skip obviously wrong title encodings
continue;
}

if (lcf::Encoder encoder(det_enc); encoder.IsOk()) {
encoder.Encode(title);
break;
Expand Down

0 comments on commit aca8f71

Please sign in to comment.