-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
1,406 additions
and
1,302 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
add_library(lang_hook Lang.cpp Lang_hook.cpp) | ||
add_library(lang_host Lang.cpp Lang_host.cpp) | ||
add_library(lang_ui Lang.cpp Lang_host.cpp Lang_ui.cpp) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "Lang_private.h" | ||
|
||
SUPPORT_LANG curr_lang = English; | ||
langhelper TR; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,107 @@ | ||
#pragma warning(push) | ||
#pragma warning(disable: 4005) | ||
|
||
#define English 0 | ||
#define Chinese 1 | ||
#define Russian 2 | ||
#define TradChinese 3 | ||
|
||
#include"en.h" | ||
enum LANG_STRINGS_UI | ||
{ | ||
WndSelectProcess, | ||
WndLunaHostGui, | ||
TSetting, | ||
TPlugins, | ||
NotifyInvalidHookCode, | ||
BtnDetach, | ||
BtnSaveHook, | ||
BtnAttach, | ||
BtnRefresh, | ||
BtnToClipboard, | ||
BtnReadOnly, | ||
BtnInsertUserHook, | ||
LblFlushDelay, | ||
LblFilterRepeat, | ||
LblCodePage, | ||
LblMaxBuff, | ||
LblMaxHist, | ||
LblLanguage, | ||
LblAutoAttach, | ||
LblAutoAttach_savedonly, | ||
MenuCopyHookCode, | ||
MenuRemoveHook, | ||
MenuDetachProcess, | ||
MenuRemeberSelect, | ||
MenuForgetSelect, | ||
MenuAddPlugin, | ||
MenuRemovePlugin, | ||
MenuPluginRankUp, | ||
MenuPluginRankDown, | ||
MenuPluginEnable, | ||
MenuPluginVisSetting, | ||
DefaultFont, | ||
InvalidPlugin, | ||
InvalidDll, | ||
InvalidDump, | ||
MsgError, | ||
BtnOk, | ||
HS_TEXT, | ||
VersionLatest, | ||
VersionCurrent, | ||
LIST_HOOK, | ||
COPYSELECTION, | ||
FONTSELECT, | ||
}; | ||
enum LANG_STRINGS_HOST | ||
{ | ||
ALREADY_INJECTED, | ||
NEED_32_BIT, | ||
NEED_64_BIT, | ||
INJECT_FAILED, | ||
INVALID_CODEPAGE, | ||
CONSOLE, | ||
PROC_CONN, | ||
PROC_DISCONN, | ||
ProjectHomePage, | ||
UNMATCHABLEVERSION, | ||
T_WARNING, | ||
}; | ||
enum LANG_STRINGS_HOOK | ||
{ | ||
PIPE_CONNECTED, | ||
INSERTING_HOOK, | ||
REMOVING_HOOK, | ||
TOO_MANY_HOOKS, | ||
HOOK_SEARCH_STARTING, | ||
HOOK_SEARCH_INITIALIZING, | ||
NOT_ENOUGH_TEXT, | ||
HOOK_SEARCH_INITIALIZED, | ||
MAKE_GAME_PROCESS_TEXT, | ||
HOOK_SEARCH_FINISHED, | ||
OUT_OF_RECORDS_RETRY, | ||
FUNC_MISSING, | ||
MODULE_MISSING, | ||
GARBAGE_MEMORY, | ||
SEND_ERROR, | ||
READ_ERROR, | ||
SearchForHooks_ERROR, | ||
ResultsNum, | ||
HIJACK_ERROR, | ||
COULD_NOT_FIND, | ||
InvalidLength, | ||
InsertHookFailed, | ||
Match_Error, | ||
Attach_Error, | ||
MatchedEngine, | ||
ConfirmStop, | ||
Attach_Stop, | ||
ProcessRange, | ||
WarningDummy, | ||
RYUJINXUNSUPPORT | ||
}; | ||
enum SUPPORT_LANG; | ||
SUPPORT_LANG map_to_support_lang(const char *); | ||
const char *map_from_support_lang(SUPPORT_LANG); | ||
struct langhelper | ||
{ | ||
const char *operator[](LANG_STRINGS_HOOK); | ||
const wchar_t *operator[](LANG_STRINGS_HOST); | ||
const wchar_t *operator[](LANG_STRINGS_UI); | ||
}; | ||
|
||
#if (LANGUAGE == Chinese) | ||
#include"zh.h" | ||
#endif | ||
#if (LANGUAGE == Russian) | ||
#include"ru.h" | ||
#endif | ||
#if (LANGUAGE == TradChinese) | ||
#include"cht.h" | ||
#endif | ||
|
||
|
||
#pragma warning(pop) | ||
extern langhelper TR; | ||
extern SUPPORT_LANG curr_lang; |
Oops, something went wrong.