mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
issues/521
This commit is contained in:
parent
cb6b6ce2e6
commit
bed074c6ec
@ -4,7 +4,7 @@
|
|||||||
#include<Windows.h>
|
#include<Windows.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include<Shlwapi.h>
|
||||||
|
|
||||||
#define CODEPAGE_JA 932
|
#define CODEPAGE_JA 932
|
||||||
#define CODEPAGE_GB 936
|
#define CODEPAGE_GB 936
|
||||||
@ -43,8 +43,16 @@ int jbjwmain(int argc, wchar_t* argv[])
|
|||||||
int MAX_USERDIC_COUNT = 3;
|
int MAX_USERDIC_COUNT = 3;
|
||||||
int USERDIC_BUFFER_SIZE = USERDIC_PATH_SIZE * MAX_USERDIC_COUNT;// 1548, sizeof(wchar_t)
|
int USERDIC_BUFFER_SIZE = USERDIC_PATH_SIZE * MAX_USERDIC_COUNT;// 1548, sizeof(wchar_t)
|
||||||
wchar_t cache[1548] = { 0 };
|
wchar_t cache[1548] = { 0 };
|
||||||
|
int __i=0;
|
||||||
|
|
||||||
for (int i = 4; i < argc; i++) {
|
for (int i = 4; i < argc; i++) {
|
||||||
wcscpy(cache + (i - 4) * USERDIC_PATH_SIZE, argv[i]);
|
wchar_t _[MAX_PATH];
|
||||||
|
wcscpy(_,argv[i]);wcscat(_,L".DIC");
|
||||||
|
if(PathFileExistsW(_))
|
||||||
|
{
|
||||||
|
wcscpy(cache + __i * USERDIC_PATH_SIZE, argv[i]);
|
||||||
|
__i++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
DJC_OpenAllUserDic_Unicode(cache, 0);
|
DJC_OpenAllUserDic_Unicode(cache, 0);
|
||||||
wchar_t* fr = new wchar_t[3000];
|
wchar_t* fr = new wchar_t[3000];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user