mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: config file
This commit is contained in:
+4
-2
@@ -1,13 +1,15 @@
|
||||
from helper import *
|
||||
import pefile
|
||||
|
||||
from helper import *
|
||||
from config import config
|
||||
|
||||
|
||||
def make_shc_from_asm(asm_file, exe_file, shc_file):
|
||||
print("--[ Assemble to exe: {} -> {} -> {} ]".format(asm_file, exe_file, shc_file))
|
||||
|
||||
print("---[ Assemble ASM to EXE: {} -> {} ]".format(asm_file, exe_file))
|
||||
run_process_checkret([
|
||||
path_ml64,
|
||||
config.get("path_ml64"),
|
||||
asm_file,
|
||||
"/link",
|
||||
"/OUT:{}".format(exe_file),
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
from helper import *
|
||||
from config import config
|
||||
|
||||
|
||||
def make_c_to_asm(c_file, asm_file, payload_len):
|
||||
@@ -13,7 +14,7 @@ def make_c_to_asm(c_file, asm_file, payload_len):
|
||||
# Phase 1: Compile
|
||||
print("---[ Compile: {} ]".format(c_file))
|
||||
run_process_checkret([
|
||||
path_cl,
|
||||
config.get("path_cl"),
|
||||
"/c",
|
||||
"/FA",
|
||||
"/GS-",
|
||||
@@ -29,7 +30,7 @@ def make_c_to_asm(c_file, asm_file, payload_len):
|
||||
asm_clean_file = asm_file + ".clean"
|
||||
print("---[ Cleanup: {} ]".format(asm_file))
|
||||
run_process_checkret([
|
||||
path_masmshc,
|
||||
config.get("path_masmshc"),
|
||||
asm_file,
|
||||
asm_clean_file,
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user