mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
feature: put payload into .rdata option
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ class Carrier():
|
||||
def get_all_reusedata_fixups(self) -> List[DataReuseEntry]:
|
||||
return self.reusedata_fixups
|
||||
|
||||
def get_all_reusedata_fixup(self, string_ref) -> DataReuseEntry:
|
||||
def get_reusedata_fixup(self, string_ref) -> DataReuseEntry:
|
||||
for entry in self.reusedata_fixups:
|
||||
if entry.string_ref == string_ref:
|
||||
return entry
|
||||
|
||||
+1
-1
@@ -57,5 +57,5 @@ def prepare_project(project_name, settings):
|
||||
# copy *.c *.h files from src directory to dst directory
|
||||
for file in os.listdir(src):
|
||||
if file.endswith(".c") or file.endswith(".h"):
|
||||
logger.info("Copy {} to {}".format(src + file, dst))
|
||||
logger.info("--( Copy {} to {}".format(src + file, dst))
|
||||
shutil.copy2(src + file, dst)
|
||||
+1
-1
@@ -31,7 +31,7 @@ class Settings():
|
||||
|
||||
# More
|
||||
self.fix_missing_iat = False
|
||||
self.payload_location = PayloadLocation.CODE
|
||||
self.payload_location = PayloadLocation.DATA
|
||||
|
||||
|
||||
def prep_web(self, project_name):
|
||||
|
||||
Reference in New Issue
Block a user