Skip to content

cellL10n: implement SBCS conversions#16671

Merged
Megamouse merged 1 commit into
RPCS3:masterfrom
Megamouse:cellL10n2
Feb 6, 2025
Merged

cellL10n: implement SBCS conversions#16671
Megamouse merged 1 commit into
RPCS3:masterfrom
Megamouse:cellL10n2

Conversation

@Megamouse
Copy link
Copy Markdown
Contributor

No description provided.

@Darkhost1999
Copy link
Copy Markdown
Contributor

image
U cellL10n TODO: UCS2stoSBCSs(src=*0x3200d098, src_len=*0xd00106e0, dst=*0x302cb880, dst_len=*0xd00106e4, code_page=*0x1d)
Did you mean notice instead of todo?
RPCS3.log
Works great in Oblivion.

@Megamouse
Copy link
Copy Markdown
Contributor Author

I don't even know what it looks like on master

@Darkhost1999
Copy link
Copy Markdown
Contributor

PR
cellL10n: UCS2stoSBCSs(src=*0x3200d098, src_len=*0xd00106e0, dst=*0x302ca878, dst_len=*0xd00106e4, code_page=*0x1d)
RPCS3.log
Master
cellL10n TODO: UCS2stoSBCSs()
RPCS3.log
Still works just informing

@Megamouse
Copy link
Copy Markdown
Contributor Author

I obviously mean the game, not the log message

@Darkhost1999
Copy link
Copy Markdown
Contributor

Well, it just says <- Enter Character Name ->
And after entering the name doesn't change.
So with the conversion working now, you can name your character.

The same as the last cellL10n PR from " " to " text "

@Megamouse Megamouse merged commit 449c23b into RPCS3:master Feb 6, 2025
@elad335
Copy link
Copy Markdown
Contributor

elad335 commented Feb 6, 2025

Why is this module not LLEd?

@elad335
Copy link
Copy Markdown
Contributor

elad335 commented Feb 6, 2025

Ok, It is LLEd. please refrain from implementing more functions of this module. This is a dump of Ghidra without an actual value.
It can only inflate our codebase and increase compilation time for little to no benefit.

@Megamouse
Copy link
Copy Markdown
Contributor Author

stop talking nonsense

@elad335
Copy link
Copy Markdown
Contributor

elad335 commented Feb 6, 2025

How is this nonsense?

@Megamouse
Copy link
Copy Markdown
Contributor Author

It's nonsense because you are complaining about implementing things.
Which is all we do every day.

@elad335
Copy link
Copy Markdown
Contributor

elad335 commented Feb 6, 2025

there are 153 unimplemented functions in this module, around 60 lines for each function to implement I assume. That's more than 9000+ lines in one file for a module that should be LLEd.

@Megamouse
Copy link
Copy Markdown
Contributor Author

then that's 9000+ lines of fun yet to have

@elad335
Copy link
Copy Markdown
Contributor

elad335 commented Feb 6, 2025

That is insane and Emu/Cell/Module does take a long time to compile. It is full of modules are not used anymore. Some even are embedded in game code and cannot be LLEd.
If you want to have fun then do it on your fork, don't involve the main codebase for this.

@Megamouse
Copy link
Copy Markdown
Contributor Author

I'm not complaining about your spaghetti code either, yet here we are

@Megamouse Megamouse deleted the cellL10n2 branch February 6, 2025 09:19
u64 longval = static_cast<u64>(src_val);
s32 utf8_len = 1;

if (static_cast<s8>(src_val) < '\0')
Copy link
Copy Markdown
Contributor

@elad335 elad335 Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code here looks like this:

if (static_cast<s8>(src_val) < '\0')

If you want to implement these functions, at least make it readable.

It's also technically bug, char is not defined to be signed or unsigned by c++.

@oltolm
Copy link
Copy Markdown
Contributor

oltolm commented Feb 8, 2025

C:/src/rpcs3/rpcs3/Emu/Cell/Modules/cellL10n.cpp:2505:12: warning: result of comparison of constant 65534 with expression of type 'const s16' (aka 'const short') is always false [-Wtautological-constant-out-of-range-compare]
 2505 |                 if (ucs2 >= 0xfffe)
      |                     ~~~~ ^  ~~~~~~
1 warning generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants