From ad83eb290ad63df2098dec3773e8f19af8a8f994 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sun, 31 Jan 2021 08:02:10 -0700 Subject: [PATCH] update docs --- CREDITS.md | 16 +++++++++------- README.md | 10 +++++----- README_ES.md | 2 +- README_FR.md | 2 +- README_ID.md | 2 +- README_IT.md | 2 +- README_KR.md | 2 +- README_PT.md | 2 +- README_RU.md | 2 +- README_SC.md | 2 +- README_TH.md | 2 +- extensions/extensionimpl.cpp | 10 +++++----- 12 files changed, 28 insertions(+), 26 deletions(-) diff --git a/CREDITS.md b/CREDITS.md index a384875..8f5dca4 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -2,12 +2,14 @@ If you're on this list and want your link changed let me know. - Textractor mainly made by [Me](https://github.com/Artikash) with the help of - - [DoumanAsh](https://github.com/DoumanAsh) - - [Niakr1s](https://github.com/Niakr1s) - - [tinyAdapter](https://github.com/tinyAdapter) - - [lgztx96](https://github.com/lgztx96) - - [Jazzinghen](https://github.com/Jazzinghen) - - [luojunyuan](https://github.com/luojunyuan) + - [DoumanAsh](https://github.com/DoumanAsh) - build system improvements + - [Niakr1s](https://github.com/Niakr1s) - original text removal in Extra Window + - [tinyAdapter](https://github.com/tinyAdapter) - CLI bugfixes + - [lgztx96](https://github.com/lgztx96) - hook codes for WAFFLE and WillPlus + - [Jazzinghen](https://github.com/Jazzinghen) - hook codes for TokyoNecro + - [luojunyuan](https://github.com/luojunyuan) - hook codes for ShinyDays + - [zeheyler](https://github.com/zeheyler) - Chrome DevTools integration + - [silas1037](https://github.com/silas1037) - AppVeyor setup - French translation by Racky and [Gratusfr](https://github.com/Gratusfr) - Spanish translation by [scese250](https://github.com/scese250) - Turkish translation by [niisokusu](https://reddit.com/u/niisokusu) @@ -19,7 +21,7 @@ If you're on this list and want your link changed let me know. - Korean translation by O SK - Italian translation by [StarFang208](https://github.com/StarFang208) - ITHVNR updated by [mireado](https://github.com/mireado), [Eguni](https://github.com/Eguni), and [IJEMIN](https://github.com/IJEMIN) -- ITHVNR originally made by [Stomp](http://www.hongfire.com/forum/member/325894-stomp) +- ITHVNR originally made by [Stomp](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine) - VNR engine made by [jichi](https://github.com/jichifly) - ITH updated by [Andys](https://github.com/AndyScull) - ITH originally made by [kaosu](https://code.google.com/archive/p/interactive-text-hooker) diff --git a/README.md b/README.md index 225ba68..2e874a3 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,13 @@ [English](README.md) ● [Español](README_ES.md) ● [简体中文](README_SC.md) ● [Русский](README_RU.md) ● [한국어](README_KR.md) ● [ภาษาไทย](README_TH.md) ● [Français](README_FR.md) ● [Italiano](README_IT.md) ● [日本語](README_JP.md) ● [Bahasa](README_ID.md) ● [Português](README_PT.md) -**Textractor** (a.k.a. NextHooker) is an open-source x86/x64 video game text hooker for Windows/Wine based off of [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
+**Textractor** (a.k.a. NextHooker) is an open-source x86/x64 video game text hooker for Windows/Wine based off of [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
Watch the [tutorial video](https://tinyurl.com/textractor-tutorial) for a quick rundown on using it. ## Download -Releases of Textractor can be found [here](https://github.com/Artikash/Textractor/releases).
+Official stable releases of Textractor can be found [here](https://github.com/Artikash/Textractor/releases).
+Experimental builds of Textractor from the latest source can be found [here](https://ci.appveyor.com/project/Artikash/textractor/history).
The last release of ITHVNR can be found [here](https://drive.google.com/open?id=13aHF4uIXWn-3YML_k2YCDWhtGgn5-tnO).
Try running vcredist if you get an error when starting Textractor. @@ -18,7 +19,7 @@ Try running vcredist if you get an error when starting Textractor. - Highly extensible and customizable - Auto hook many game engines (including some not supported by VNR!) - Hook text using /H "hook" codes (most AGTH codes supported) -- Directly extract text using /R "read" codes +- Automatically search for possible hook codes ## Support @@ -38,8 +39,7 @@ Contributing a translation is easy: just translate the strings in text.cpp as we ## Compiling -Before compiling *Textractor*, you should get Visual Studio with CMake support, as well as Qt version 5.13
-You should then be able to simply open the folder in Visual Studio, and build. Run Textractor.exe. +Before compiling Textractor, you should get Qt version 5.13 and Visual Studio with CMake support. You should then hopefully be able to just open the source folder in Visual Studio and build. ## Project Architecture diff --git a/README_ES.md b/README_ES.md index 93f8de8..e392108 100644 --- a/README_ES.md +++ b/README_ES.md @@ -6,7 +6,7 @@ ## Descripción general -**Textractor** (también conocido como NextHooker) es un extractor y traductor de texto de código abierto x86/x64 para Windows/Wine bassado en [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
+**Textractor** (también conocido como NextHooker) es un extractor y traductor de texto de código abierto x86/x64 para Windows/Wine bassado en [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
![Cómo se ve](screenshot.png) diff --git a/README_FR.md b/README_FR.md index f8ebb7f..00d4157 100644 --- a/README_FR.md +++ b/README_FR.md @@ -4,7 +4,7 @@ [English](README.md) ● [Español](README_ES.md) ● [简体中文](README_SC.md) ● [Русский](README_RU.md) ● [한국어](README_KR.md) ● [ภาษาไทย](README_TH.md) ● [Français](README_FR.md) ● [Italiano](README_IT.md) ● [日本語](README_JP.md) ● [Bahasa](README_ID.md) ● [Português](README_PT.md) -**Textractor** (a.k.a. NextHooker) est un traducteur de jeux-videos basé surtout sur du texte en open source x86/x64 pour Windows/Wine [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
+**Textractor** (a.k.a. NextHooker) est un traducteur de jeux-videos basé surtout sur du texte en open source x86/x64 pour Windows/Wine [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
Regarde le [tutorial video](https://tinyurl.com/textractor-tutorial) pour un aperçu rapide de son utilisation. ## Téléchargement diff --git a/README_ID.md b/README_ID.md index 2ff4925..b3578eb 100644 --- a/README_ID.md +++ b/README_ID.md @@ -4,7 +4,7 @@ [English](README.md) ● [Español](README_ES.md) ● [简体中文](README_SC.md) ● [Русский](README_RU.md) ● [한국어](README_KR.md) ● [ภาษาไทย](README_TH.md) ● [Français](README_FR.md) ● [Italiano](README_IT.md) ● [日本語](README_JP.md) ● [Bahasa](README_ID.md) ● [Português](README_PT.md) -**Textractor** (a.k.a NextHooker) adalah text hooker video game untuk Windows/Wine x86/x64 berbasis open-source yang didasari oleh [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
+**Textractor** (a.k.a NextHooker) adalah text hooker video game untuk Windows/Wine x86/x64 berbasis open-source yang didasari oleh [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
Lihat [video tutorial](https://tinyurl.com/textractor-tutorial) untuk mengetahui bagaimana cara menggunakannya. ## Pengunduhan diff --git a/README_IT.md b/README_IT.md index 1e1b458..5ea23dc 100644 --- a/README_IT.md +++ b/README_IT.md @@ -4,7 +4,7 @@ [English](README.md) ● [Español](README_ES.md) ● [简体中文](README_SC.md) ● [Русский](README_RU.md) ● [한국어](README_KR.md) ● [ภาษาไทย](README_TH.md) ● [Français](README_FR.md) ● [Italiano](README_IT.md) ● [日本語](README_JP.md) ● [Bahasa](README_ID.md) ● [Português](README_PT.md) -**Textractor** (a.k.a. NextHooker) è un agganciatore di testi di videogiochi open-source per Windows/Wine basato su[ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
+**Textractor** (a.k.a. NextHooker) è un agganciatore di testi di videogiochi open-source per Windows/Wine basato su[ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
Guarda il [video tutorial](https://tinyurl.com/textractor-tutorial) per una sintesi veloce sul suo utilizzo. ## Scarica diff --git a/README_KR.md b/README_KR.md index 03b046f..9955f6b 100644 --- a/README_KR.md +++ b/README_KR.md @@ -4,7 +4,7 @@ [English](README.md) ● [Español](README_ES.md) ● [简体中文](README_SC.md) ● [Русский](README_RU.md) ● [한국어](README_KR.md) ● [ภาษาไทย](README_TH.md) ● [Français](README_FR.md) ● [Italiano](README_IT.md) ● [日本語](README_JP.md) ● [Bahasa](README_ID.md) ● [Português](README_PT.md) -**Textractor** (a.k.a. NextHooker)는 Windows/Wine에서 작동하는 [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine)을 기반으로 한 오픈소스 x86/x64 비디오게임 텍스트 후커 입니다.
+**Textractor** (a.k.a. NextHooker)는 Windows/Wine에서 작동하는 [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine)을 기반으로 한 오픈소스 x86/x64 비디오게임 텍스트 후커 입니다.
빠른 사용법의 이해를 위해 [tutorial video](https://tinyurl.com/textractor-tutorial) 를 참고하세요. ## 다운로드 diff --git a/README_PT.md b/README_PT.md index 09fbc69..d79d5b3 100644 --- a/README_PT.md +++ b/README_PT.md @@ -4,7 +4,7 @@ [English](README.md) ● [Español](README_ES.md) ● [简体中文](README_SC.md) ● [Русский](README_RU.md) ● [한국어](README_KR.md) ● [ภาษาไทย](README_TH.md) ● [Français](README_FR.md) ● [Italiano](README_IT.md) ● [日本語](README_JP.md) ● [Bahasa](README_ID.md) ● [Português](README_PT.md) -**Textractor** (também conhecido como NextHooker) é um extrator de textos de video-games x86/x64 para Windows/Wine baseado no [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
+**Textractor** (também conhecido como NextHooker) é um extrator de textos de video-games x86/x64 para Windows/Wine baseado no [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
Assista ao [vídeo tutorial](https://tinyurl.com/textractor-tutorial) para uma rápida apresentação de como utilizá-lo. ## Download diff --git a/README_RU.md b/README_RU.md index 60e8910..89f5a17 100644 --- a/README_RU.md +++ b/README_RU.md @@ -4,7 +4,7 @@ [English](README.md) ● [Español](README_ES.md) ● [简体中文](README_SC.md) ● [Русский](README_RU.md) ● [한국어](README_KR.md) ● [ภาษาไทย](README_TH.md) ● [Français](README_FR.md) ● [Italiano](README_IT.md) ● [日本語](README_JP.md) ● [Bahasa](README_ID.md) ● [Português](README_PT.md) -**Textractor** (a.k.a. NextHooker) это проект x86/x64 Windows/Wine программы для захвата текста из видеоигр, основанный на [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
+**Textractor** (a.k.a. NextHooker) это проект x86/x64 Windows/Wine программы для захвата текста из видеоигр, основанный на [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
Смотреть [обучающее видео](https://tinyurl.com/textractor-tutorial) для быстрого ознакомления. ## Загрузка diff --git a/README_SC.md b/README_SC.md index 313b932..5ae2e0f 100644 --- a/README_SC.md +++ b/README_SC.md @@ -4,7 +4,7 @@ ## 概述 -**Textractor** (曾用名: NextHooker) 是一个基于 [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine), 为 Windows/Wine 开发的开源 x86/x64 文本提取器.
+**Textractor** (曾用名: NextHooker) 是一个基于 [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine), 为 Windows/Wine 开发的开源 x86/x64 文本提取器.
![它工作起来的样子](screenshot.png) diff --git a/README_TH.md b/README_TH.md index 59eed57..15fff6c 100644 --- a/README_TH.md +++ b/README_TH.md @@ -5,7 +5,7 @@ [English](README.md) ● [Español](README_ES.md) ● [简体中文](README_SC.md) ● [Русский](README_RU.md) ● [한국어](README_KR.md) ● [ภาษาไทย](README_TH.md) ● [Français](README_FR.md) ● [Italiano](README_IT.md) ● [日本語](README_JP.md) ● [Bahasa](README_ID.md) ● [Português](README_PT.md) **Textractor** -(หรือ NextHooker) คือโปรแกรมโอเพนซอร์ซสำหรับปฏิบัติการที่มีหน้าที่เพื่อเชื่อมกับตัวอักษรกับเกมจากที่มาจากระบบปฏิบัติการ Window/Wine โดยมีแบบดังเดิมมาจาก [ITHVNR](http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
+(หรือ NextHooker) คือโปรแกรมโอเพนซอร์ซสำหรับปฏิบัติการที่มีหน้าที่เพื่อเชื่อมกับตัวอักษรกับเกมจากที่มาจากระบบปฏิบัติการ Window/Wine โดยมีแบบดังเดิมมาจาก [ITHVNR](https://web.archive.org/web/20160202084144/http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-engine).
สามารถดูตัวอย่างวิธีการใช้งาน [วีดีโอตัวอย่างการใช้งาน](https://tinyurl.com/textractor-tutorial) เพื่อที่จะแสดงความเข้าใจคร่าวๆเกี่ยวกับโปรแกรม. ## ดาวน์โหลด diff --git a/extensions/extensionimpl.cpp b/extensions/extensionimpl.cpp index 366045f..c33a42d 100644 --- a/extensions/extensionimpl.cpp +++ b/extensions/extensionimpl.cpp @@ -17,12 +17,12 @@ extern "C" __declspec(dllexport) wchar_t* OnNewSentence(wchar_t* sentence, const { try { - std::wstring sentenceStr(sentence); - int origLength = sentenceStr.size(); - if (ProcessSentence(sentenceStr, SentenceInfo{ sentenceInfo })) + std::wstring sentenceCopy(sentence); + int oldSize = sentenceCopy.size(); + if (ProcessSentence(sentenceCopy, SentenceInfo{ sentenceInfo })) { - if (sentenceStr.size() > origLength) sentence = (wchar_t*)HeapReAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, sentence, (sentenceStr.size() + 1) * sizeof(wchar_t)); - wcscpy_s(sentence, sentenceStr.size() + 1, sentenceStr.c_str()); + if (sentenceCopy.size() > oldSize) sentence = (wchar_t*)HeapReAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, sentence, (sentenceCopy.size() + 1) * sizeof(wchar_t)); + wcscpy_s(sentence, sentenceCopy.size() + 1, sentenceCopy.c_str()); } } catch (SKIP)