AI generatedCode
62.25%- 6.64% matching
- 55.61% partially matching
- 37.75% to do
Data
100%- 2,155,890,688 done
- 0 to do
Functions
24.37%- 2,591 matching
- 8,041 to do
code +0.46% · data ±0% ·
PC port: the main menu after Start and the way into Empire mode
Areas
- Matching
- Partially matching
- Not decompiled
All areas as a table
| Area | Matching | Partially matching | Data | Size (bytes) |
|---|---|---|---|---|
| (start-up and main loop) | 36.92% | 56.50% | — | 9,232 |
| Scenes (16) | 10.81% | 62.69% | — | 699,768 |
| StateInitialize.c | 3.04% | 94.86% | — | 76,760 |
| StateStartUp.c | 23.71% | 63.90% | — | 48,448 |
| StateDemo.c | 5.75% | 62.64% | — | 20,024 |
| StateBattleInitialize.c | 7.35% | 63.78% | — | 36,800 |
| StatePreBattle.c | 3.87% | 77.04% | — | 35,944 |
| StatePostBattle.c | 1.31% | 90.08% | — | 31,776 |
| StateConfig.c | 27.53% | 46.38% | — | 23,768 |
| StateTreasures.c | 92.88% | 7.12% | — | 9,440 |
| StateShop.c | 30.38% | 33.51% | — | 49,352 |
| StateConquest.c | 14.86% | 85.12% | — | 56,408 |
| StateEdit.c | 7.95% | 70.10% | — | 85,952 |
| StateSetupEmpMogi.c | 15.40% | 68.71% | — | 9,664 |
| SceneTitle.c | 0.75% | 47.09% | — | 80,632 |
| SceneLoading.c | 5.12% | 51.84% | — | 23,456 |
| ScenePreBattle.c | 1.04% | 31.69% | — | 75,264 |
| SceneTutorial.c | 18.18% | 70.50% | — | 36,080 |
| Empire mode (18) | 9.17% | 75.79% | — | 743,860 |
| emp_FldBase.c | 15.19% | 80.03% | — | 97,112 |
| emp_cq_main.c | 8.77% | 91.23% | — | 123,004 |
| emp_cq_text.c | 9.47% | 36.84% | — | 3,040 |
| emp_ending.c | 9.89% | 74.76% | — | 17,464 |
| emp_ending_nenpyou.c | 6.67% | 61.46% | — | 15,120 |
| emp_ev_predata.c | 8.85% | 82.78% | — | 73,256 |
| emp_ev_station.c | 2.22% | 82.56% | — | 60,472 |
| emp_ev_still.c | 11.23% | 58.46% | — | 69,536 |
| emp_free_setup.c | 4.15% | 57.98% | — | 53,256 |
| emp_sc.c | 3.70% | 42.53% | — | 5,192 |
| emp_war_fix.c | 18.20% | 81.72% | — | 45,000 |
| emp_war_tl.c | 15.05% | 64.61% | — | 23,600 |
| emp_war_wllt.c | 14.81% | 80.79% | — | 30,144 |
| emp_zuroku.c | 3.88% | 74.59% | — | 47,424 |
| emp_zuroku_bushou.c | 0.61% | 87.22% | — | 10,456 |
| emp_zuroku_graph.c | 6.13% | 58.87% | — | 33,928 |
| emp_zuroku_movie.c | 1.19% | 96.72% | — | 2,680 |
| StationEmp.c | 4.24% | 68.31% | — | 33,176 |
| Battlefield (12) | 3.58% | 43.19% | — | 516,868 |
| Field.c | 9.94% | 61.17% | — | 28,480 |
| Stage.c | 8.16% | 46.20% | — | 29,792 |
| StgAmbient.c | 0.37% | 19.18% | — | 26,048 |
| StgTexture.c | 2.00% | 35.91% | — | 76,040 |
| DistantView.c | 2.37% | 54.69% | — | 41,840 |
| BgManager.c | 5.12% | 13.76% | — | 59,024 |
| Bullet.c | 0.61% | 99.39% | — | 36,580 |
| Weapon.c | 3.32% | 52.62% | — | 55,936 |
| ObjAction.c | 3.05% | 72.56% | — | 47,224 |
| RelayCamera.c | 0.17% | 8.68% | — | 54,952 |
| MiniMap.c | 0.10% | 29.65% | — | 16,080 |
| effect.c | 8.91% | 42.65% | — | 44,872 |
| Models and motion (5) | 2.03% | 35.16% | — | 246,168 |
| ModelManager.c | 2.42% | 74.65% | — | 35,696 |
| MotionManager.c | 2.21% | 17.31% | — | 52,160 |
| HorseModel.c | 2.60% | 31.74% | — | 95,952 |
| FlagModel.c | 1.19% | 39.97% | — | 18,776 |
| ItemModel.c | 0.62% | 29.63% | — | 43,584 |
| Events and scripts (9) | 5.18% | 52.94% | — | 378,408 |
| ev_main.c | 7.40% | 60.22% | — | 14,480 |
| ev_config.c | 5.13% | 38.67% | — | 55,496 |
| ev_message.c | 4.01% | 43.48% | — | 26,760 |
| sc_ctrl.c | 6.75% | 66.49% | — | 31,784 |
| sc_sysmsg.c | 0.84% | 58.43% | — | 34,368 |
| sc_ubase.c | 8.43% | 91.36% | — | 42,880 |
| MovieTelop.c | 1.36% | 64.21% | — | 24,624 |
| SeasonAnime.c | 18.06% | 51.96% | — | 31,624 |
| BriefingCmnParts.c | 2.17% | 39.41% | — | 116,392 |
| Interface and system (6) | 3.43% | 42.02% | — | 578,424 |
| cmnparts.c | 2.61% | 91.69% | — | 47,192 |
| font.c | 1.74% | 35.11% | — | 193,992 |
| file.c | 3.92% | 22.90% | — | 141,496 |
| SeManager.c | 7.95% | 76.29% | — | 35,400 |
| JapanMap.c | 8.40% | 73.84% | — | 60,776 |
| SecretSorts.c | 1.75% | 27.48% | — | 99,568 |
| Game data (21) | 0.00% | 0.00% | 100% | 0 |
| ANS stream | 0.00% | 0.00% | 100% | 0 |
| MPEG2 | 0.00% | 0.00% | 100% | 0 |
| TIM2 | 0.00% | 0.00% | 100% | 0 |
| TMD2 | 0.00% | 0.00% | 100% | 0 |
| Battlefield | 0.00% | 0.00% | 100% | 0 |
| PS2 | 0.00% | 0.00% | 100% | 0 |
| Motion | 0.00% | 0.00% | 100% | 0 |
| Event motions | 0.00% | 0.00% | 100% | 0 |
| EFB | 0.00% | 0.00% | 100% | 0 |
| ADPCM sounds | 0.00% | 0.00% | 100% | 0 |
| tm3 | 0.00% | 0.00% | 100% | 0 |
| IPU | 0.00% | 0.00% | 100% | 0 |
| Containers | 0.00% | 0.00% | 100% | 0 |
| Text | 0.00% | 0.00% | 100% | 0 |
| Game state tables | 0.00% | 0.00% | 100% | 0 |
| Event commands | 0.00% | 0.00% | 100% | 0 |
| LZ archive | 0.00% | 0.00% | 100% | 0 |
| Sound bank headers | 0.00% | 0.00% | 100% | 0 |
| PAC0 | 0.00% | 0.00% | 100% | 0 |
| Sound tables | 0.00% | 0.00% | 100% | 0 |
| Save icon | 0.00% | 0.00% | 100% | 0 |
History
DecompiledMatchingDataClick the chart to see the project at that commit.
Reports up to this one (333)
| When | Decompiled | Matching | Data | Commit |
|---|---|---|---|---|
| 62.25% +0.46% | 6.64% | 100% | c4c43e6 PC port: the main menu after Start and the way into Empire mode | |
| 61.79% +0.01% | 6.64% | 100% | b8f571c PC port: the movie player, an MPEG-2 decoder and the IPU pictures | |
| 61.78% +0.08% | 6.64% | 100% | 3bff9a8 PC port: the title screen | |
| 61.69% +0.10% | 6.64% | 100% | b5a0591 PC port: the first picture, the memory card message box drawn by UPP's reference renderer | |
| 61.59% +0.04% | 6.64% | 100% | 3587847 PC port: the first scene runs and frames are swapped to the runtime | |
| 61.55% +0.04% | 6.64% | 100% | e79ec6d PC port: the start-up runs to the end and the scene manager enters the first scene | |
| 61.51% +0.01% | 6.64% | 100% | 040c0fb PC port, second round: the game boots on the PC up to its own start-up code | |
| 61.50% | 6.64% +0.07% | 100% | 0275093 Matching tags refreshed: 2,589 functions match (14 more, from the type fixes and mc_state.c) | |
| 61.50% | 6.57% | 100% | f27dba5 PC port, Sony library replacements (first round): C library heap and string functions, IOP boot and module loading, CD search and read through the platform, DMA channels, libgraph start-up (PAL interl | |
| 61.50% +0.16% | 6.57% | 100% | e015c2e gen25_180000.c: 19 more generated functions (an argument whose register is not written since the previous call takes that call's argument: the callee keeps it) | |
| 61.34% +0.45% | 6.57% | 100% | d66ad64 gen24_180000.c: 54 more generated functions (arguments loaded from globals traced at the call sites; K&R declarations and pointer/integer declarations of other files replaced by the shared prototypes) | |
| 60.89% +0.23% | 6.57% | 100% | 79371f6 gen23_180000.c: 16 more generated functions (wider argument tracing at the call sites: constants built with lui/addiu, a parameter plus an offset, loads from a parameter; Ghidra's function pointers wr | |
| 60.66% +0.68% | 6.57% | 100% | 3558828 gen22_180000.c: 38 more generated functions (parameters a function passes on added, extra arguments its callees do not read removed, whole-expression address conversions); hand-written declarations th | |
| 59.98% +0.65% | 6.57% | 100% | 798dd2f Generated code: float constants are single precision (Ghidra prints them without the f, so about 47 generated functions computed in emulated double precision); 9 generated functions whose calls differ | |
| 59.34% +0.50% | 6.57% | 100% | 2ec87ab gen18_180000.c, gen20_180000.c: 29 more generated functions (the generator now uses the shared prototypes; candidates also include void functions with a switch, functions with more than eight paramete | |
| 58.84% -0.04% | 6.57% +0.13% | 100% | d70c56e All source files use the shared prototypes (src/sw2e_protos.h, now with per-file guards and basic C types): local declarations removed and every call checked against its callee's definition. About 30 | |
| 58.88% -0.25% | 6.44% | 100% | a1969c1 Older generated files (gen_*.c) use the real prototypes too; 42 functions with unknown arguments or a dropped float parameter removed; wrappers 0x35DAF0/0x35DEC0/0x35DB20 pass their arguments on, 0x19 | |
| 59.13% | 6.44% | 100% | 1a1db10 func_0019FB00 returns u32 (callers do not mask it); func_002D8240 keeps the address in a local pointer | |
| 59.13% -0.92% | 6.43% -0.01% | 100% | b0b652f Generated files use real prototypes (src/sw2e_protos.h from tools/make_protos.py): calls fixed against the callees' definitions (146 missing arguments recovered from the machine code, extra arguments | |
| 60.05% +0.11% | 6.45% | 100% | 564d09b gen17_180000.c: func_00386900 (stack arguments read from the original call sites, row table copied per iteration) |
Badges
For your README. They show the default version and update with every report.
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)