This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import os | |
| import zlib | |
| import glob | |
| for arg in sys.argv[1:]: | |
| for file in glob.glob(arg): | |
| if os.path.splitext(file)[1].lower() == '.scn': | |
| if not os.access(os.path.splitext(file)[0] + '.psb', os.F_OK): | |
| data = open(arg, 'rb').read() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <vector> | |
| #include <string> | |
| void fread_or_die(void * a, size_t b, size_t c, FILE * d) | |
| { | |
| size_t got = fread(a, b, c, d); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <vector> | |
| #include <string> | |
| const char * filename; | |
| bool trap = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <vector> | |
| #include <string> | |
| const char * filename; | |
| bool trap = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <deque> | |
| void fread_or_die(void * a, size_t b, int c, FILE * d) | |
| { | |
| int got = fread(a, b, c, d); | |
| if(feof(d)) {puts("feof"); exit(0);} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <deque> | |
| bool flag = false; | |
| void fread_or_die(void * a, size_t b, int c, FILE * d) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Modified to spit out main script content in utf-8 | |
| # Extract script with xp3viewer | |
| import glob | |
| import os | |
| import re | |
| import sys | |
| # count mode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define and && | |
| #define or || | |
| #ifndef NULL | |
| #define NULL 0 | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # apply regex \n([^「 \t『(\n«〝]) -> \1 (or similar) to the output to remove linewraps | |
| # apply regex (《[^》]*》)(〈[^〉]*〉) -> \2\1 to put furigana in kanji,kana order | |
| import re | |
| import sys | |
| import codecs | |
| suppress_newline = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string_view> | |
| #include <vector> | |
| #include <fstream> | |
| struct entry | |
| { | |
| // modifies input cstring, insults null terminators, etc. cleanup of cstring is responsibility of calling code. |