Skip to content

Fixed recompiler error when the cpp filename is too long#85

Closed
roby65 wants to merge 7 commits intoran-j:mainfrom
roby65:main
Closed

Fixed recompiler error when the cpp filename is too long#85
roby65 wants to merge 7 commits intoran-j:mainfrom
roby65:main

Conversation

@roby65
Copy link
Contributor

@roby65 roby65 commented Feb 26, 2026

Fixes errors like:

Failed to open file for writing: ./output/Insert__H1ZPC22AptFileSavedInputState_Q32EA6Stringt11BasicString2Zt22StringAsVectorEncoding1Z22AptFileSavedInputStateZ20StringAsVectorPolicyRCX00T1RCQ42EA6Stringt11BasicString2Zt22StringAsVectorEncoding1Z22AptFileSavedInputStateZ20StringAsVectorPolicy11DbgIterator_v_0x3d0768.cpp

Now filename is truncated to a max of 100 characters, like this:

Insert__H1ZPC22AptFileSavedInputState_Q32EA6Stringt11BasicString2Zt22StringAsVectorEnco_0x3d0768.cpp

I decided 100 as max filename length, with 200 characters I was getting unspecified compiler errors. Under 100 characters looks like the sweet spot.

roby65 and others added 3 commits February 26, 2026 01:08
* feat: small fixes on code gen

* feat: added code gen test

* feat: rename IOP

* fix: fix special case on JR
feat: added code generator test

* feat: ps2 logs now need special macros

* feat: a lot of regressions test
feat: use test to fix bugs on runtime
fix: fix incorrect instructions on code generator
feat: added missing decode on r5900 decoder
feat: added scissor on rasterizer

* feat: better ghidra plugin analyzer
fix: fix real bug on function finding on elf analyzer

* feat: some logs on GS
feat: added more syscalls stubs
feat: added more ps2 stubs

* feat: added missing stub
@ran-j
Copy link
Owner

ran-j commented Feb 27, 2026

please add a test to it

@roby65 roby65 closed this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants