Skip to content

Conversation

@eloj
Copy link
Contributor

@eloj eloj commented Oct 25, 2025

This code was introduced in #12148 (commit 7ae6459) and looks like debug code to me.

I don't know anything about the NGAGE platform, so forgive me if I'm missing something, but I doubt it requires this hackery in the middle of the main log function.

Seems the way this works is that the buffer is actually logged as a side-effect of calling NGAGE_vnprintf() which contains a call to RDebug::Print();?

All other platforms do their logging inside the SDL_LogOutput() function, and I believe this code should be moved there. There is an NGAGE block there, that is currenly empty.

I'll defer to @mupfdev

This code bypasses the ability to set/get a log function,
and seems to be a temporary hack that was merged by mistake.
@eloj eloj marked this pull request as ready for review October 25, 2025 10:13
@slouken slouken added this to the 3.4.0 milestone Oct 25, 2025
@madebr madebr requested a review from mupfdev October 25, 2025 19:21
This reintroduces the NGAGE file logging previously
removed from the formatting function, into SDL_LogOutput()
instead.

Following the pattern of the 3DS, VITA, PSP, etc.
@eloj
Copy link
Contributor Author

eloj commented Oct 25, 2025

Pushed a commit that (unconditionally) reintroduces file logging, based on the code that I removed previously.

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