mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
fix: bug
This commit is contained in:
@@ -13,7 +13,8 @@ class Config(object):
|
|||||||
self.data = {}
|
self.data = {}
|
||||||
self.ShowCommandOutput: bool = False
|
self.ShowCommandOutput: bool = False
|
||||||
self.debug: bool = False
|
self.debug: bool = False
|
||||||
self.has_r2: bool = True
|
self.has_r2: bool = False
|
||||||
|
self.catch_exception: bool = True
|
||||||
|
|
||||||
self.data_fixups = None
|
self.data_fixups = None
|
||||||
self.data_fixup_entries = None
|
self.data_fixup_entries = None
|
||||||
|
|||||||
+5
-2
@@ -109,7 +109,7 @@ def start(settings: Settings) -> int:
|
|||||||
prepare_project(settings.project_name, settings)
|
prepare_project(settings.project_name, settings)
|
||||||
|
|
||||||
# Do the thing and catch the errors
|
# Do the thing and catch the errors
|
||||||
if False:
|
if config.catch_exception:
|
||||||
start_real(settings)
|
start_real(settings)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
@@ -176,7 +176,10 @@ def start_real(settings: Settings):
|
|||||||
|
|
||||||
# PREPARE DataReuseEntry for usage in Compiler/AsmTextParser
|
# PREPARE DataReuseEntry for usage in Compiler/AsmTextParser
|
||||||
# So the carrier is able to find the payload
|
# So the carrier is able to find the payload
|
||||||
project.injectable.add_datareuse_fixup(DataReuseEntry("supermega_payload", in_code=True))
|
if project.settings.payload_location == PayloadLocation.CODE:
|
||||||
|
project.injectable.add_datareuse_fixup(DataReuseEntry("supermega_payload", in_code=True))
|
||||||
|
else:
|
||||||
|
project.injectable.add_datareuse_fixup(DataReuseEntry("supermega_payload", in_code=False))
|
||||||
entry = project.injectable.get_reusedata_fixup("supermega_payload")
|
entry = project.injectable.get_reusedata_fixup("supermega_payload")
|
||||||
entry.data = phases.assembler.encode_payload(
|
entry.data = phases.assembler.encode_payload(
|
||||||
project.payload.payload_data, settings.decoder_style) # encrypt
|
project.payload.payload_data, settings.decoder_style) # encrypt
|
||||||
|
|||||||
Reference in New Issue
Block a user