Skip to content

Commit 00c9b6f

Browse files
committed
add --config_file cli argument
1 parent 893a69b commit 00c9b6f

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ You can download the Ableton Installers directly from Ableton's servers. I made
3737
| Parameter | Type | Description | Default/Config |
3838
|-----------|------|-------------|----------------|
3939
| `--undo` | flag | Revert the patch (swap signkeys and skip authorization file) | Uses config.json values |
40-
| `--file_path` | string | Path to Ableton Live executable or "auto" for auto-detection | `config.json: file_path` |
41-
| `--old_signkey` | string | Old signkey (hex string) | `config.json: old_signkey` |
42-
| `--new_signkey` | string | New signkey (hex string) | `config.json: new_signkey` |
43-
| `--hwid` | string | Hardware ID (24 hex chars or 6 groups of 4) | `config.json: hwid` |
44-
| `--edition` | string | Ableton edition (Lite, Intro, Standard, Suite) | `config.json: edition` |
45-
| `--version` | integer | Ableton version (e.g., 12) | `config.json: version` |
46-
| `--authorize_file_output` | string | Output path for Authorize.auz or "auto" | `config.json: authorize_file_output` |
40+
| `--file_path` | string | Path to Ableton Live executable or "auto" for auto-detection | config.json: `file_path` |
41+
| `--old_signkey` | string | Old signkey (hex string) | config.json: `old_signkey` |
42+
| `--new_signkey` | string | New signkey (hex string) | config.json: `new_signkey` |
43+
| `--hwid` | string | Hardware ID (24 hex chars or 6 groups of 4) | config.json: `hwid` |
44+
| `--edition` | string | Ableton edition (Lite, Intro, Standard, Suite) | config.json: `edition` |
45+
| `--version` | integer | Ableton version (e.g., 12) | config.json: `version` |
46+
| `--authorize_file_output` | string | Output path for Authorize.auz or "auto" | config.json: `authorize_file_output` |
47+
| `--config_file` | string | Path, where the config file is located. | `config.json` |
4748
| `--help` | flag | Show help message | N/A |
4849

4950
# Troubleshooting

abletonCracker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ def main():
297297
parser.add_argument('--version', type=int, help='Ableton version (e.g., 12)')
298298
parser.add_argument('--authorize_file_output', type=str, help='Output path for Authorize.auz (or "auto")')
299299
parser.add_argument('--help', action='store_true', help='Show this help message')
300+
parser.add_argument('--config_file', type=str, default='config.json', help='Path to config JSON file (default: config.json)'
301+
)
300302

301303
# Parse arguments
302304
args, unknown = parser.parse_known_args()
@@ -340,7 +342,7 @@ def main():
340342

341343
print(YELLOW + "NOTE: Make sure Ableton Live is not running while patching." + RESET)
342344

343-
config_file = 'config.json'
345+
config_file = args.config_file
344346
try:
345347
file_path, old_signkey, new_signkey, hwid, edition, version, authorize_file_output, dsa_params = load_config(config_file, args)
346348
except Exception as e:

0 commit comments

Comments
 (0)