feature: show function size in dropdown

This commit is contained in:
Dobin
2024-04-14 18:27:35 +01:00
parent 3bbff69cdf
commit 4901c7b320
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -79,10 +79,10 @@
{% if exports != None %} {% if exports != None %}
<select class="form-select" name="dllfunc" aria-label="DLLFUNC" onchange="this.form.submit()"> <select class="form-select" name="dllfunc" aria-label="DLLFUNC" onchange="this.form.submit()">
{% for export in exports %} {% for export in exports %}
<option value="{{export}}" <option value="{{export['name']}}"
{% if export in project.settings.dllfunc %} selected {% endif %} {% if export["name"] in project.settings.dllfunc %} selected {% endif %}
> >
{{export}}</option> {{export['name']}} ({{export['size']}})</option>
{% endfor %} {% endfor %}
</select> </select>
{% endif %} {% endif %}
+1 -1
View File
@@ -58,7 +58,7 @@ def project(name):
is_64 = superpe.is_64() is_64 = superpe.is_64()
is_dotnet = superpe.is_dotnet() is_dotnet = superpe.is_dotnet()
if superpe.is_dll(): if superpe.is_dll():
exports = superpe.get_exports() exports = superpe.get_exports_full()
project_dir = os.path.dirname(os.path.abspath(project.settings.inject_exe_out)) project_dir = os.path.dirname(os.path.abspath(project.settings.inject_exe_out))
log_files = get_logfiles(project.settings.main_dir) log_files = get_logfiles(project.settings.main_dir)