From 509eb552261e59737722286f4a0e90617e89a3c5 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 14 Feb 2006 23:02:58 +0000 Subject: [PATCH] Add support for three new line1 types in door.sys: COM0:STDIO <- Indicates that stdio should be used. COM0:SOCKET### <- Indicates socket I/O should be used with socket handle ### COM0:HANDLE### <- Indicates Win32 COM should be used with COM handle ### --- src/odoors/ODInEx1.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/odoors/ODInEx1.c b/src/odoors/ODInEx1.c index a262ea75f6..46830d82e2 100644 --- a/src/odoors/ODInEx1.c +++ b/src/odoors/ODInEx1.c @@ -821,6 +821,22 @@ read_dorinfox: od_control.port=szIFTemp[3]-'1'; + /* Check for COM0:STDIO */ + if(!strncmp(szIFTemp,"COM0:STDIO",10)) + od_control.od_com_method=COM_STDIO; + + /* Check for COM0:SOCKET### */ + if(!strncmp(szIFTemp,"COM0:SOCKET",11)) { + od_control.od_com_method=COM_SOCKET; + od_control.od_open_handle=atoi(szIFTemp+11); + } + + /* Check for COM0:HANDLE### */ + if(!strncmp(szIFTemp,"COM0:HANDLE",11)) { + od_control.od_com_method=COM_WIN32; + od_control.od_open_handle=atoi(szIFTemp+11); + } + /* Read line 2. */ if(fgets((char *)apszDropFileInfo[0], 80, pfDropFile) == NULL) { -- GitLab