Skip to content

Commit

Permalink
chore: Verify proxinject existence during init
Browse files Browse the repository at this point in the history
  • Loading branch information
anosora233 committed Mar 26, 2024
1 parent 5a95e9a commit 6062b6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mhm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
ROOT = Path(".")

CONFIG_PATH = ROOT / "mhmp.json"
PROXIN_PATH = ROOT / "proxinject/proxinjector-cli.exe"

LQBIN_RKEY = "res/config/lqc.lqbin"
LQBIN_VTXT = ROOT / "lqc.txt"
Expand Down Expand Up @@ -39,7 +40,9 @@ class Mitmdump:

@dataclass
class Proxinject:
path: str = str(Path("./proxinject/proxinjector-cli"))
path: str = field(
default_factory=lambda: str(PROXIN_PATH) if PROXIN_PATH.exists() else None
)
args: dict = field(
default_factory=lambda: {
"name": "jantama_mahjongsoul",
Expand Down

0 comments on commit 6062b6a

Please sign in to comment.