Skip to content

Commit

Permalink
add decode-sjis action
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzziqersoftware committed Dec 23, 2023
1 parent 4de2356 commit cf7c467
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,13 @@ Action a_extract_bml("extract-bml", "\
PC/BB format.\n",
a_extract_archive_fn);

Action a_decode_sjis(
"decode-sjis", nullptr, +[](Arguments& args) {
string data = read_input_data(args);
string result = tt_sjis_to_utf8(data);
write_output_data(args, result.data(), result.size(), "txt");
});

Action a_decode_text_archive(
"decode-text-archive", nullptr, +[](Arguments& args) {
string data = read_input_data(args);
Expand Down

0 comments on commit cf7c467

Please sign in to comment.