Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2024
1 parent 085dd7e commit fbced7b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
7 changes: 3 additions & 4 deletions scripts/update_decompile_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def create_status_profile():
if f_name + "\n" in impl:
impl_bytes += int(size.removeprefix("0x"), 16)


raw_func_percentage = len(impl) / num_funcs * 100
byte_impl_percentage = impl_bytes / total_func_bytes * 100

Expand Down Expand Up @@ -67,6 +66,7 @@ def update_svg():
with open(script_path / "resources" / "progress.svg", "w") as f:
f.write(new_svg.replace("{TEXT_COLOR}", "black"))


def get_unimplemented():
impl = get_file(script_path / "config" / "implemented.csv")
maps = get_file(script_path / "config" / "mapping.csv")
Expand All @@ -83,9 +83,9 @@ def get_unimplemented():

for f in unimplemented:
print(f)

return unimplemented


def main():
if "gen_svg" in sys.argv:
Expand All @@ -95,7 +95,6 @@ def main():
unimplemented = get_unimplemented()
print("\n" + str(len(unimplemented)), "Unimplemented functions!")


raw_func_percentage, byte_impl_percentage = create_status_profile()

print(round(raw_func_percentage, 2), "% func implemented")
Expand Down
2 changes: 1 addition & 1 deletion src/ItemManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace th06
DIFFABLE_STATIC(ItemManager, g_ItemManager);

ItemManager::ItemManager() {

};

void ItemManager::SpawnItem(D3DXVECTOR3 *position, ItemType itemType, int state)
Expand Down
4 changes: 2 additions & 2 deletions src/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ DIFFABLE_STATIC_ARRAY_ASSIGN(char *, 7, g_StageList) = {"Stage1", "Stage2", "Sta

DIFFABLE_STATIC(i16, g_LastJoystickInput)
#pragma optimize("s", on)
MainMenu::MainMenu() {

MainMenu::MainMenu()
{
}
#pragma optimize("", on)

Expand Down
4 changes: 2 additions & 2 deletions src/Stage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ DIFFABLE_STATIC_ARRAY_ASSIGN(StageFile, 8, g_StageFiles) = {
};
DIFFABLE_STATIC(Stage, g_Stage)

Stage::Stage() {
Stage::Stage()
{
}

#pragma var_order(posInterpRatio, curInsn, pos, facingDirInterpRatio, skyFogInterpRatio, idx)
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

using namespace th06;

#pragma var_order(renderResult, testCoopLevelRes, msg, testResetRes, waste1, waste2, waste3, waste4, waste5, waste6 )
#pragma var_order(renderResult, testCoopLevelRes, msg, testResetRes, waste1, waste2, waste3, waste4, waste5, waste6)
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
i32 renderResult = 0;
Expand Down

0 comments on commit fbced7b

Please sign in to comment.