You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
Core: Integrate Ref::instantiate where possible
This commit is contained in:
@@ -1381,14 +1381,14 @@ Error CodeSign::_codesign_file(bool p_use_hardened_runtime, bool p_force, const
|
||||
r_error_msg = TTR("Invalid entitlements file.");
|
||||
ERR_FAIL_V_MSG(FAILED, "CodeSign: Invalid entitlements file.");
|
||||
}
|
||||
cet = Ref<CodeSignEntitlementsText>(memnew(CodeSignEntitlementsText(entitlements)));
|
||||
ceb = Ref<CodeSignEntitlementsBinary>(memnew(CodeSignEntitlementsBinary(entitlements)));
|
||||
cet.instantiate(entitlements);
|
||||
ceb.instantiate(entitlements);
|
||||
}
|
||||
|
||||
print_verbose("CodeSign: Generating requirements...");
|
||||
Ref<CodeSignRequirements> rq;
|
||||
String team_id = "";
|
||||
rq = Ref<CodeSignRequirements>(memnew(CodeSignRequirements()));
|
||||
rq.instantiate();
|
||||
|
||||
// Sign executables.
|
||||
for (int i = 0; i < files_to_sign.size(); i++) {
|
||||
@@ -1487,7 +1487,7 @@ Error CodeSign::_codesign_file(bool p_use_hardened_runtime, bool p_force, const
|
||||
|
||||
print_verbose("CodeSign: Generating signature...");
|
||||
Ref<CodeSignSignature> cs;
|
||||
cs = Ref<CodeSignSignature>(memnew(CodeSignSignature()));
|
||||
cs.instantiate();
|
||||
|
||||
print_verbose("CodeSign: Writing signature superblob...");
|
||||
// Write signature data to the executable.
|
||||
|
||||
Reference in New Issue
Block a user