Skip to content

[GEN][ZH] Remove RTS_INTERNAL#1231

Merged
xezon merged 5 commits intoTheSuperHackers:mainfrom
xezon:xezon/remove-rts-internal-2
Jul 7, 2025
Merged

[GEN][ZH] Remove RTS_INTERNAL#1231
xezon merged 5 commits intoTheSuperHackers:mainfrom
xezon:xezon/remove-rts-internal-2

Conversation

@xezon
Copy link

@xezon xezon commented Jul 5, 2025

Merge with Rebase

This change removes RTS_INTERNAL. It is mostly done by script. The commits are split into reviewable chunks.

@xezon xezon added Major Severity: Minor < Major < Critical < Blocker Build Anything related to building, compiling Refactor Edits the code with insignificant behavior changes, is never user facing Debug Is mostly debug functionality labels Jul 5, 2025
@xezon xezon force-pushed the xezon/remove-rts-internal-2 branch from 781e7e1 to d7852ae Compare July 5, 2025 12:37
@barefootlogician
Copy link

idk if it would be better as a separate pr or as part of this one but there's a lot of files with commented out pragma optimize code that used the RTS_INTERNAL macro that can probably also be removed

@xezon
Copy link
Author

xezon commented Jul 5, 2025

idk if it would be better as a separate pr or as part of this one but there's a lot of files with commented out pragma optimize code that used the RTS_INTERNAL macro that can probably also be removed

Yes that is removed with this change.

@barefootlogician
Copy link

idk if it would be better as a separate pr or as part of this one but there's a lot of files with commented out pragma optimize code that used the RTS_INTERNAL macro that can probably also be removed

Yes that is removed with this change.

Awesome!

@Skyaero42 Skyaero42 self-requested a review July 5, 2025 17:01
@Skyaero42
Copy link

Because of the size, it will take some time to review this

@xezon
Copy link
Author

xezon commented Jul 5, 2025

Much respect if you look at all lines. I trusted the script for the most part :)

Copy link

@barefootlogician barefootlogician left a comment

Choose a reason for hiding this comment

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

So if I'm looking at this correctly this is how the commits break down (not in order)

1] The first commit is exclusively for removes only the already commented out pragma optimize code so we can just mark that off as good

2] The second commit deals exclusively with instances where the condition is something form ±RTS_DEBUG and/or ±RTS_INTERNAL so we just need to double check that all the variations and their replacements were correct which they probably are

5] The fifth is just adding the python script that was used and doesn't do any functional changes itself but is relevant for review just to check/understand the other commits so unless there's something wrong with the other commits this one can be assumed good by default

4] The fourth is just removing rts_interal from cmake presets and .cmake files which is pretty straightforward and should be good but I will double check just in case

6,7] The sixth and seventh commits are just updates to the third

3] This leaves mainly just the third commit left that needs to be reviewed carefully

@ghost
Copy link

ghost commented Jul 5, 2025

I'm guessing based on this PR, that I should go ahead and remove any mention of the internal build profile on the wiki?

@xezon
Copy link
Author

xezon commented Jul 5, 2025

Yea after this is merged, RTS_INTERNAL is gone, because it essentially was duplicate of RTS_DEBUG.

@ghost
Copy link

ghost commented Jul 5, 2025

I have a PR for the Wiki lined up for when this PR gets merged: TheSuperHackers/GeneralsWiki#55

@Skyaero42
Copy link

Much respect if you look at all lines. I trusted the script for the most part :)

Yes, I'm reviewing all lines.

@xezon
Copy link
Author

xezon commented Jul 6, 2025

Addressed review comments.

@xezon xezon requested a review from Skyaero42 July 6, 2025 13:12
@xezon
Copy link
Author

xezon commented Jul 6, 2025

All new review comments addressed.

@barefootlogician
Copy link

barefootlogician commented Jul 7, 2025

would you mind rebasing the fix up commits so that its easier to review the net changes

@xezon xezon force-pushed the xezon/remove-rts-internal-2 branch from 67607c4 to 11f108e Compare July 7, 2025 16:45
@xezon xezon merged commit 26bc2ca into TheSuperHackers:main Jul 7, 2025
14 checks passed
xezon added a commit that referenced this pull request Jul 7, 2025
@xezon xezon deleted the xezon/remove-rts-internal-2 branch July 7, 2025 16:59
@xezon xezon added this to the Code foundation build up milestone Jul 11, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Anything related to building, compiling Debug Is mostly debug functionality Major Severity: Minor < Major < Critical < Blocker Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove RTS_INTERNAL

3 participants