Revision: 9333 https://osdn.net/projects/ttssh2/scm/svn/commits/9333 Author: zmatsuo Date: 2021-08-01 14:35:49 +0900 (Sun, 01 Aug 2021) Log Message: ----------- TERATERM_EXTENSIONS 環境変数に関するコードとコメントを削除 Modified Paths: -------------- trunk/TTXSamples/ttxtest/ttxtest.c trunk/ttssh2/ttssh/ttssh.c -------------- next part -------------- Modified: trunk/TTXSamples/ttxtest/ttxtest.c =================================================================== --- trunk/TTXSamples/ttxtest/ttxtest.c 2021-08-01 05:35:38 UTC (rev 9332) +++ trunk/TTXSamples/ttxtest/ttxtest.c 2021-08-01 05:35:49 UTC (rev 9333) @@ -44,19 +44,16 @@ #include <string.h> /* When you build this extension, it should be called TTXTEST.DLL. To try it - out, copy it into the directory containing Tera Term. Currently, in order - to use extensions with Tera Term, you have to set the environment variable - TERATERM_EXTENSIONS to something. So in a command shell, use - "set TERATERM_EXTENSIONS=1". Then use "ttermpro > dump" to run Tera Term + out, copy it into the directory containing Tera Term. + Then use "ttermpro > dump" to run Tera Term and save the debugging output below to the file "dump". - When TERATERM_EXTENSIONS is set, Tera Term automatically scans the + Tera Term automatically scans the directory containing it, looking for files of the form TTX*.DLL. It loads any that it finds. For each one that it finds, it calls TTXBind; see below for details. */ - /* This variable is used for the load order of the extension (see below for details). We also print it out in all the diagnostics, to make sure the functions are being called according to the correct order. */ Modified: trunk/ttssh2/ttssh/ttssh.c =================================================================== --- trunk/ttssh2/ttssh/ttssh.c 2021-08-01 05:35:38 UTC (rev 9332) +++ trunk/ttssh2/ttssh/ttssh.c 2021-08-01 05:35:49 UTC (rev 9333) @@ -36,8 +36,6 @@ STARTUPINFO startup_info; PROCESS_INFORMATION process_info; - SetEnvironmentVariable(_TEXT("TERATERM_EXTENSIONS"), _TEXT("1")); - GetModuleFileName(NULL, buf, sizeof(buf)); for (i = 0; buf[i] != 0; i++) { if (buf[i] == _TEXT('\\') || buf[i] == _TEXT('/') || buf[i] == _TEXT(':')) {