Repository navigation
Fix replace - #77
Merged
Merged
Fix replace#77
Conversation
Metrics
|
| Metric | Value |
|---|---|
| Files Processed | 68 |
| Stdout Lines | 14,913 |
| Stderr Lines | 144 |
| Total Lines | 15,057 |
| Error Ratio | 0.96% |
PSPTool python library metrics
| Status | Count | Percentage |
|---|---|---|
| ✓ Successful | 68 | 100.0% |
| ✗ Failed | 0 | 0.0% |
| Total | 68 | 100% |
All files parsed successfully!
cwerling
reviewed
Jan 23, 2026
bird-dancer
marked this pull request as draft
January 26, 2026 23:45
Metrics
|
| Metric | Value |
|---|---|
| Files Processed | 68 |
| Stdout Lines | 4,596 |
| Stderr Lines | 834 |
| Total Lines | 5,430 |
| Error Ratio | 15.36% |
PSPTool python library metrics
| Status | Count | Percentage |
|---|---|---|
| ✓ Successful | 33 | 48.53% |
| ✗ Failed | 35 | 51.47% |
| Total | 68 | 100% |
Failed Files
ASUS_ROG-STRIX-X470-F-GAMING-ASUS-4804.CAPASUS_ROG-STRIX-B450-F-GAMING-ASUS-2301.CAPASRock_B450_B45P4_3.31TUF-GAMING-A520M-PLUS-WIFI-ASUS-2604.CAPLenovo_Thinkpad_T14_WinGLC3A106.ROMASRock_X470_X47GK4_3.31ASUS_ROG-STRIX-B350-F-GAMING-ASUS-4801.CAPASUS_TUF-B450M-PRO-GAMING-ASUS-1201.CAPASUS_PRIME-X470-PRO-4011.CAPGigabyte_X470AG7W.F40ASUS_PRIME-X370-PRO-3803.CAPASRock_X370_X370GK45.30ASRock-A520M-HSV-1.31.ROMMSI_X470_E7B77AMS.194ASUS_PRIME-X470-PRO-ASUS-4804.CAPASUS_PRIME-B350-PLUS-4011.CAPASUS_ROG-STRIX-X370-F-GAMING-ASUS-4801.CAPASRock_A320_A32M5.00ASRock_B350_AB35G4_5.70Gigabyte_AX370G3.F31AORUS_X370G5.23dASUS_B450M_KII_Zen1_ROM_Exploit.romAORUS_B450AE.F40ASRock_A520M_HVS_1.31.ftpm_with_data.romGigabyte_WRX80F2AORUS_X570_X57AOXT2.FCdMSI_X370_E7A33AMS.4I1ASUS_PRIME-B450M-A-ASUS-1201.CAPMSI_B450_E7B86AMS.181Acer_R01-A4.ROMAORUS_X470AG7W.F40ASUS_PRIME-A320M-A-ASUS-4801.CAPMSI_A320_E7A38AMS.2I2Lenovo_Ideapad_5_Pro-16ACH6.romMSI_B350_E7A34AMS.1O1
bird-dancer
force-pushed
the
fix-replace
branch
from
January 27, 2026 19:20
778872a to
897bf9f
Compare
Metrics
|
| Metric | Value |
|---|---|
| Files Processed | 68 |
| Stdout Lines | 4,596 |
| Stderr Lines | 834 |
| Total Lines | 5,430 |
| Error Ratio | 15.36% |
PSPTool python library metrics
| Status | Count | Percentage |
|---|---|---|
| ✓ Successful | 33 | 48.53% |
| ✗ Failed | 35 | 51.47% |
| Total | 68 | 100% |
Failed Files
ASUS_ROG-STRIX-X470-F-GAMING-ASUS-4804.CAPASUS_ROG-STRIX-B450-F-GAMING-ASUS-2301.CAPASRock_B450_B45P4_3.31TUF-GAMING-A520M-PLUS-WIFI-ASUS-2604.CAPLenovo_Thinkpad_T14_WinGLC3A106.ROMASRock_X470_X47GK4_3.31ASUS_ROG-STRIX-B350-F-GAMING-ASUS-4801.CAPASUS_TUF-B450M-PRO-GAMING-ASUS-1201.CAPASUS_PRIME-X470-PRO-4011.CAPGigabyte_X470AG7W.F40ASUS_PRIME-X370-PRO-3803.CAPASRock_X370_X370GK45.30ASRock-A520M-HSV-1.31.ROMMSI_X470_E7B77AMS.194ASUS_PRIME-X470-PRO-ASUS-4804.CAPASUS_PRIME-B350-PLUS-4011.CAPASUS_ROG-STRIX-X370-F-GAMING-ASUS-4801.CAPASRock_A320_A32M5.00ASRock_B350_AB35G4_5.70Gigabyte_AX370G3.F31AORUS_X370G5.23dASUS_B450M_KII_Zen1_ROM_Exploit.romAORUS_B450AE.F40ASRock_A520M_HVS_1.31.ftpm_with_data.romGigabyte_WRX80F2AORUS_X570_X57AOXT2.FCdMSI_X370_E7A33AMS.4I1ASUS_PRIME-B450M-A-ASUS-1201.CAPMSI_B450_E7B86AMS.181Acer_R01-A4.ROMAORUS_X470AG7W.F40ASUS_PRIME-A320M-A-ASUS-4801.CAPMSI_A320_E7A38AMS.2I2Lenovo_Ideapad_5_Pro-16ACH6.romMSI_B350_E7A34AMS.1O1
Metrics
|
| Metric | Value |
|---|---|
| Files Processed | 68 |
| Stdout Lines | 4,596 |
| Stderr Lines | 834 |
| Total Lines | 5,430 |
| Error Ratio | 15.36% |
PSPTool python library metrics
| Status | Count | Percentage |
|---|---|---|
| ✓ Successful | 33 | 48.53% |
| ✗ Failed | 35 | 51.47% |
| Total | 68 | 100% |
Failed Files
ASUS_ROG-STRIX-X470-F-GAMING-ASUS-4804.CAPASUS_ROG-STRIX-B450-F-GAMING-ASUS-2301.CAPASRock_B450_B45P4_3.31TUF-GAMING-A520M-PLUS-WIFI-ASUS-2604.CAPLenovo_Thinkpad_T14_WinGLC3A106.ROMASRock_X470_X47GK4_3.31ASUS_ROG-STRIX-B350-F-GAMING-ASUS-4801.CAPASUS_TUF-B450M-PRO-GAMING-ASUS-1201.CAPASUS_PRIME-X470-PRO-4011.CAPGigabyte_X470AG7W.F40ASUS_PRIME-X370-PRO-3803.CAPASRock_X370_X370GK45.30ASRock-A520M-HSV-1.31.ROMMSI_X470_E7B77AMS.194ASUS_PRIME-X470-PRO-ASUS-4804.CAPASUS_PRIME-B350-PLUS-4011.CAPASUS_ROG-STRIX-X370-F-GAMING-ASUS-4801.CAPASRock_A320_A32M5.00ASRock_B350_AB35G4_5.70Gigabyte_AX370G3.F31AORUS_X370G5.23dASUS_B450M_KII_Zen1_ROM_Exploit.romAORUS_B450AE.F40ASRock_A520M_HVS_1.31.ftpm_with_data.romGigabyte_WRX80F2AORUS_X570_X57AOXT2.FCdMSI_X370_E7A33AMS.4I1ASUS_PRIME-B450M-A-ASUS-1201.CAPMSI_B450_E7B86AMS.181Acer_R01-A4.ROMAORUS_X470AG7W.F40ASUS_PRIME-A320M-A-ASUS-4801.CAPMSI_A320_E7A38AMS.2I2Lenovo_Ideapad_5_Pro-16ACH6.romMSI_B350_E7A34AMS.1O1
1 similar comment
Metrics
|
| Metric | Value |
|---|---|
| Files Processed | 68 |
| Stdout Lines | 4,596 |
| Stderr Lines | 834 |
| Total Lines | 5,430 |
| Error Ratio | 15.36% |
PSPTool python library metrics
| Status | Count | Percentage |
|---|---|---|
| ✓ Successful | 33 | 48.53% |
| ✗ Failed | 35 | 51.47% |
| Total | 68 | 100% |
Failed Files
ASUS_ROG-STRIX-X470-F-GAMING-ASUS-4804.CAPASUS_ROG-STRIX-B450-F-GAMING-ASUS-2301.CAPASRock_B450_B45P4_3.31TUF-GAMING-A520M-PLUS-WIFI-ASUS-2604.CAPLenovo_Thinkpad_T14_WinGLC3A106.ROMASRock_X470_X47GK4_3.31ASUS_ROG-STRIX-B350-F-GAMING-ASUS-4801.CAPASUS_TUF-B450M-PRO-GAMING-ASUS-1201.CAPASUS_PRIME-X470-PRO-4011.CAPGigabyte_X470AG7W.F40ASUS_PRIME-X370-PRO-3803.CAPASRock_X370_X370GK45.30ASRock-A520M-HSV-1.31.ROMMSI_X470_E7B77AMS.194ASUS_PRIME-X470-PRO-ASUS-4804.CAPASUS_PRIME-B350-PLUS-4011.CAPASUS_ROG-STRIX-X370-F-GAMING-ASUS-4801.CAPASRock_A320_A32M5.00ASRock_B350_AB35G4_5.70Gigabyte_AX370G3.F31AORUS_X370G5.23dASUS_B450M_KII_Zen1_ROM_Exploit.romAORUS_B450AE.F40ASRock_A520M_HVS_1.31.ftpm_with_data.romGigabyte_WRX80F2AORUS_X570_X57AOXT2.FCdMSI_X370_E7A33AMS.4I1ASUS_PRIME-B450M-A-ASUS-1201.CAPMSI_B450_E7B86AMS.181Acer_R01-A4.ROMAORUS_X470AG7W.F40ASUS_PRIME-A320M-A-ASUS-4801.CAPMSI_A320_E7A38AMS.2I2Lenovo_Ideapad_5_Pro-16ACH6.romMSI_B350_E7A34AMS.1O1
bird-dancer
force-pushed
the
fix-replace
branch
from
January 29, 2026 03:32
8acd660 to
de76830
Compare
Metrics
|
| Metric | Value |
|---|---|
| Files Processed | 68 |
| Stdout Lines | 4,596 |
| Stderr Lines | 834 |
| Total Lines | 5,430 |
| Error Ratio | 15.36% |
PSPTool python library metrics
| Status | Count | Percentage |
|---|---|---|
| ✓ Successful | 33 | 48.53% |
| ✗ Failed | 35 | 51.47% |
| Total | 68 | 100% |
Failed Files
ASUS_ROG-STRIX-X470-F-GAMING-ASUS-4804.CAPASUS_ROG-STRIX-B450-F-GAMING-ASUS-2301.CAPASRock_B450_B45P4_3.31TUF-GAMING-A520M-PLUS-WIFI-ASUS-2604.CAPLenovo_Thinkpad_T14_WinGLC3A106.ROMASRock_X470_X47GK4_3.31ASUS_ROG-STRIX-B350-F-GAMING-ASUS-4801.CAPASUS_TUF-B450M-PRO-GAMING-ASUS-1201.CAPASUS_PRIME-X470-PRO-4011.CAPGigabyte_X470AG7W.F40ASUS_PRIME-X370-PRO-3803.CAPASRock_X370_X370GK45.30ASRock-A520M-HSV-1.31.ROMMSI_X470_E7B77AMS.194ASUS_PRIME-X470-PRO-ASUS-4804.CAPASUS_PRIME-B350-PLUS-4011.CAPASUS_ROG-STRIX-X370-F-GAMING-ASUS-4801.CAPASRock_A320_A32M5.00ASRock_B350_AB35G4_5.70Gigabyte_AX370G3.F31AORUS_X370G5.23dASUS_B450M_KII_Zen1_ROM_Exploit.romAORUS_B450AE.F40ASRock_A520M_HVS_1.31.ftpm_with_data.romGigabyte_WRX80F2AORUS_X570_X57AOXT2.FCdMSI_X370_E7A33AMS.4I1ASUS_PRIME-B450M-A-ASUS-1201.CAPMSI_B450_E7B86AMS.181Acer_R01-A4.ROMAORUS_X470AG7W.F40ASUS_PRIME-A320M-A-ASUS-4801.CAPMSI_A320_E7A38AMS.2I2Lenovo_Ideapad_5_Pro-16ACH6.romMSI_B350_E7A34AMS.1O1
Metrics
|
| Metric | Value |
|---|---|
| Files Processed | 68 |
| Stdout Lines | 14,965 |
| Stderr Lines | 164 |
| Total Lines | 15,129 |
| Error Ratio | 1.08% |
PSPTool python library metrics
| Status | Count | Percentage |
|---|---|---|
| ✓ Successful | 68 | 100.0% |
| ✗ Failed | 0 | 0.0% |
| Total | 68 | 100% |
All files parsed successfully!
+ use exact entry for file to be replaced instead of only matching type in case there are multipe entries with the same type. (removing todo) + use entry.file_offset() instead of re-implementing it in directory.update_entry_fields since it always is linear to entry.offset anyways
bird-dancer
force-pushed
the
fix-replace
branch
from
October 6, 2026 19:46
cddd8de to
a4d5d33
Compare
bird-dancer
marked this pull request as ready for review
October 6, 2026 20:05
Member
|
Looks good, thanks a lot! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is due to length and offset/ address field being changed incorrectly.
When substituting a file only the actual file content length was set as the new size. The signature length, which should included in the size is now added.
entry.file_offset()logic is no longer (incorrectly 😅) duplicated.address_typeandsignature_typeand removing a redundant function argument.The size also doesn't (always??) have to be 0x10 aligned as evidenced by the TPMLITE file for this example.
Now the repacked rom is the same as the original.