• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Tera TermにCD-ROM取り出し機能を追加します。


Commit MetaInfo

Revision21761bf4317d0e67191f4b0cc56f5a804a9db508 (tree)
Zeit2022-07-19 04:09:54
AutorIWAMOTO Kouichi <sue@iwmt...>
CommiterIWAMOTO Kouichi

Log Message

Tera Term 5のソースに対応

Ändern Zusammenfassung

Diff

--- a/TTXEject.c
+++ b/TTXEject.c
@@ -42,7 +42,16 @@
4242 #include <winsock.h>
4343 #endif /* NO_INET6 */
4444
45-#include "compat_w95.h"
45+#if TT_VERSION_MAJOR < 5
46+ #include "compat_w95.h"
47+ #define GetPrivateProfileIntAFileW GetPrivateProfileInt
48+ typedef char *TTXIniFile;
49+#else
50+ #include "compat_win.h"
51+ #include "inifile_com.h"
52+ #pragma comment(lib, "common_static.lib")
53+ typedef const wchar_t *TTXIniFile;
54+#endif
4655
4756 #define INISECTION "TTXEject"
4857
@@ -106,9 +115,9 @@ static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
106115 pvar->origPWriteFile = NULL;
107116 }
108117
109-static void PASCAL TTXReadIniFile(PCHAR fn, PTTSet ts) {
118+static void PASCAL TTXReadIniFile(TTXIniFile fn, PTTSet ts) {
110119 (pvar->origReadIniFile)(fn, ts);
111- pvar->Pin = GetPrivateProfileInt(INISECTION, "Pin", 0, fn);
120+ pvar->Pin = GetPrivateProfileIntAFileW(INISECTION, "Pin", 0, fn);
112121 }
113122
114123 static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
@@ -314,7 +323,9 @@ BOOL WINAPI DllMain(HANDLE hInstance,
314323 break;
315324 case DLL_PROCESS_ATTACH:
316325 /* do process initialization */
326+#if TT_VERSION_MAJOR < 5
317327 DoCover_IsDebuggerPresent();
328+#endif
318329 hInst = hInstance;
319330 pvar = &InstVar;
320331 break;