Add texthook option

`-texthook print` prints text to console, and `-texthook copy`
automatically copies text to clipboard (for use with text hooker tools).

On Windows, copy mode can be toggled from the menu bar.
This commit is contained in:
kichikuou
2024-12-04 16:33:50 +09:00
parent 8da92f6856
commit 1e7a59f9cd
10 changed files with 191 additions and 46 deletions
+2
View File
@@ -97,6 +97,8 @@ int main(int argc, char *argv[])
EM_ASM( xsystem35.shell.windowSizeChanged(); );
#endif
texthook_set_mode(config.texthook_mode);
int exit_code = NACT_RESTART;
while (exit_code == NACT_RESTART) {
exit_code = g_nact->mainloop();