Compare commits

..

3 Commits

Author SHA1 Message Date
13038267101 f41bb8730e 微调 2023-03-14 17:50:36 +08:00
13038267101 c454143251 调整紫光 2023-03-14 17:04:17 +08:00
13038267101 515f41a8f7 调整默认为华高 2023-03-14 16:14:45 +08:00
4 changed files with 28 additions and 27 deletions

View File

@ -30,6 +30,7 @@ if "%OEM%"=="hw" (
set BUILD_LSC=true
set BUILD_CTS=true
set BUILD_ZJ=true
set BUILD_ZG=true
)else (
set BUILD_HG=true
set OEM=hg

View File

@ -5,23 +5,23 @@ EXPORTS
is_scanner_online
uninitialize
log_info
sane_unissane_init
sane_unissane_exit
sane_unissane_get_devices
sane_unissane_open
sane_unissane_close
sane_unissane_get_option_descriptor
sane_unissane_control_option
sane_unissane_get_parameters
sane_unissane_start
sane_unissane_read
sane_unissane_cancel
sane_unissane_set_io_mode
sane_unissane_get_select_fd
sane_unissane_strstatus
sane_unissane_init_ex
sane_unissane_io_control
sane_unissane_err_desc
sane_unissane_get_option_descriptor_ex
sane_unissane_control_option_ex
sane_unissane_read_ext_info
sane_hgsane_init
sane_hgsane_exit
sane_hgsane_get_devices
sane_hgsane_open
sane_hgsane_close
sane_hgsane_get_option_descriptor
sane_hgsane_control_option
sane_hgsane_get_parameters
sane_hgsane_start
sane_hgsane_read
sane_hgsane_cancel
sane_hgsane_set_io_mode
sane_hgsane_get_select_fd
sane_hgsane_strstatus
sane_hgsane_init_ex
sane_hgsane_io_control
sane_hgsane_err_desc
sane_hgsane_get_option_descriptor_ex
sane_hgsane_control_option_ex
sane_hgsane_read_ext_info

Binary file not shown.

View File

@ -171,7 +171,7 @@ static int oem_code(oem o)
else if (o == OEM_ZHONGJING)
return 20;
else if (o == OEM_ZIGUANG)
return 17;
return 22;
else
return 10;
}
@ -185,7 +185,7 @@ static oem oem_from_code(int code)
return OEM_CANGTIAN;
else if (code == 20)
return OEM_ZHONGJING;
else if (code == 17)
else if (code == 22)
return OEM_ZIGUANG;
else
return OEM_NONE;
@ -958,7 +958,7 @@ namespace rc
else if (o == OEM_ZHONGJING)
backend = L"zj";
else if (o == OEM_ZIGUANG)
backend = L"unis";
backend = L"zg";
else
backend = L"hg";
backend += L"sane";
@ -1023,7 +1023,7 @@ namespace rc
else if (o == OEM_ZHONGJING)
backend.insert(0, L"_zj");
else if (o == OEM_ZIGUANG)
backend.insert(0, L"_unis");
backend.insert(0, L"_zg");
else
backend.insert(0, L"_hg");
@ -1044,7 +1044,7 @@ namespace rc
prev = L"_zjsane_";
if (cont.find(prev) == std::wstring::npos)
{
prev = L"_unissane_";
prev = L"_zgsane_";
if (cont.find(prev) == std::wstring::npos)
{
return false;
@ -1080,7 +1080,7 @@ namespace rc
else if (o == OEM_ZHONGJING)
backend.insert(0, L"zj");
else if (o == OEM_ZIGUANG)
backend.insert(0, L"unis");
backend.insert(0, L"zg");
else
backend.insert(0, L"hg");
@ -1098,7 +1098,7 @@ namespace rc
prev = L"cts_scanner_";
if (cont.find(prev) == std::wstring::npos)
{
prev = L"unis_scanner_";
prev = L"zg_scanner_";
if (cont.find(prev) == std::wstring::npos)
{
return false;