From 312f21ced6e546fe73a67c1f523199c6862a0a52 Mon Sep 17 00:00:00 2001 From: qyt <486179@qq.com> Date: Tue, 15 Oct 2024 14:44:43 +0800 Subject: [PATCH] improved:start parameter parse --- XEngine_Source/XEngine_StorageApp/StorageApp_Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XEngine_Source/XEngine_StorageApp/StorageApp_Config.cpp b/XEngine_Source/XEngine_StorageApp/StorageApp_Config.cpp index 7ec9f63..321b51b 100644 --- a/XEngine_Source/XEngine_StorageApp/StorageApp_Config.cpp +++ b/XEngine_Source/XEngine_StorageApp/StorageApp_Config.cpp @@ -61,11 +61,11 @@ bool StorageApp_Config_Parament(int argc,char **argv) } else if (0 == _tcsxcmp("-l",argv[i])) { - st_ServiceCfg.st_XLog.nLogLeave = _ttxoi(argv[i + 1]); + st_ServiceCfg.st_XLog.nLogLeave = _ttxoi(argv[++i]); } else if (0 == _tcsxcmp("-d",argv[i])) { - st_ServiceCfg.bDeamon = _ttxoi(argv[i + 1]); + st_ServiceCfg.bDeamon = _ttxoi(argv[++i]); } else if (0 == _tcsxcmp("-r", argv[i])) {