MCPcopy Create free account
hub / github.com/echQoQ/RustSL / load_plugins_manifest

Function load_plugins_manifest

gui/config_manager.py:5–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def load_plugins_manifest():
6 path = os.path.join('config', 'plugins.json')
7 with open(path, 'r', encoding='utf-8') as f:
8 data = json.load(f)
9
10 enc = data.get('encryption') or []
11 runm = data.get('run_modes') or []
12 vmc = data.get('vm_checks') or []
13 alloc_mem_modes = data.get('alloc_mem_modes') or []
14 load_payload_modes = data.get('load_payload_modes') or []
15 encodings = data.get('encodings') or []
16 defaults = data.get('defaults') or {}
17
18 if not enc or not runm:
19 raise ValueError('plugins.json 缺少必要字段(encryption/run_modes)')
20
21 return {
22 'encryption': enc,
23 'run_modes': runm,
24 'vm_checks': vmc,
25 'alloc_mem_modes': alloc_mem_modes,
26 'load_payload_modes': load_payload_modes,
27 'encodings': encodings,
28 'defaults': defaults,
29 }
30
31
32def get_encryption_map():

Callers 15

on_run_mode_changedMethod · 0.85
create_mem_mode_comboboxFunction · 0.85
create_vm_checks_gridFunction · 0.85
create_run_mode_comboboxFunction · 0.85
get_encryption_mapFunction · 0.85
get_vm_checks_mapFunction · 0.85
get_run_mode_mapFunction · 0.85
get_encodingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected