xkevas24 / ZhengHuo

酒馆战棋整活拔线插件
33 stars 5 forks source link

Refactor code #1

Open chucklu opened 4 years ago

chucklu commented 4 years ago

1.add ignore 2.refactor code 3.global exception handler

chucklu commented 4 years ago

Also tried to avoid https://github.com/xkevas24/ZhengHuo/issues/2, it's not perfect, user need to run the powershell script manually for fist time run the program. And user need to modify the hearthstone exe file path in ps1 file.

Mabye I can add a flag FirstRun in config file with default value true, when the program first start we can run theadvfirewall firewall add then set FirstRun to false. Next time we can check the first run flag to avoid add same rule again and again.