コード例 #1
0
        public void FindPathByExecutable()
        {
            if (wowProcess.WarcraftProcess != null)
            {
                addonConfig.InstallPath = ExecutablePath.Get(wowProcess.WarcraftProcess);
                if (!string.IsNullOrEmpty(addonConfig.InstallPath))
                {
                    logger.LogInformation($"{GetType().Name}.InstallPath - found running instance: '{addonConfig.InstallPath}'");
                    return;
                }
            }

            logger.LogError($"{GetType().Name}.InstallPath - game not running");
        }