__sinit_d_com_inf_game_cpp OK (#140)

* mass mng header

* d_cc_d start

* c_cc_d ok

* tmp commit

* almost, reordering of vtable functions

* progress

* more progress

* cleanup, still non matching

* mark all of d_cc_d as nonmatching to OK

* c_cc_s

* c_cc_s OK

* d_cc_mass_s OK

* cleanup

* gameinfo __sinit, not OK

* a bit of cleanup

* format

* remove asm

Co-authored-by: lepelog <lepelog@users.noreply.github.com>
This commit is contained in:
lepelog
2021-08-17 02:59:00 +02:00
committed by GitHub
parent 9765844d92
commit 38eca47ad5
114 changed files with 2085 additions and 5680 deletions
+16 -14
View File
@@ -324,6 +324,21 @@ def find_function_ranges(asm_files):
return function_ranges
@tp.command(name="remove-unused-asm", help="remove all of the asm that is decompiled and not used anymore")
def remove_unused_asm_cmd():
remove_unused_asm()
def remove_unused_asm():
unused_files, error_files = find_unused_asm_files(False)
for unused_file in unused_files:
unused_file.unlink()
CONSOLE.print(f"removed '{unused_file}'")
text = Text(" OK")
text.stylize("bold green")
CONSOLE.print(text)
@tp.command(name="pull-request")
@click.option('--debug/--no-debug')
@click.option('--thread-count', '-j', 'thread_count', help="This option is passed forward to all 'make' commands.", default=4)
@@ -339,20 +354,7 @@ def pull_request(debug, thread_count, game_path, build_path):
text.stylize("bold")
CONSOLE.print(text)
#
text = Text("--- Removing Unused '.s' Files")
text.stylize("bold magenta")
CONSOLE.print(text)
unused_files, error_files = find_unused_asm_files(False)
for unused_file in unused_files:
unused_file.unlink()
CONSOLE.print(f"removed '{unused_file}'")
text = Text(" OK")
text.stylize("bold green")
CONSOLE.print(text)
remove_unused_asm()
#
text = Text("--- Full Rebuild")