public void Initialize(string kcdDirectory) { ScriptInjector.SetBridgeFilePath($@"{kcdDirectory}\mods\KCD_Bootloader\invoke_command.txt"); KCDLogPath = $@"{kcdDirectory}\kcd.log"; BootloaderCommandLogPath = $@"{kcdDirectory}\mods\KCD_Bootloader\command_log.txt"; LogWatcher = LogWatcher.CreateDefault(KCDLogPath); LogWatcher.Start(); }
public async Task Start(GameV2 game) { if (!Helper.HearthstoneDirExists) { await FindHearthstone(); } InitializeGameState(game); _stop = false; var logDirectory = Path.Combine(Config.Instance.HearthstoneDirectory, Config.Instance.HearthstoneLogsDirectoryName); _logWatcher.Start(logDirectory); }