Skip to content

unify: Merge ImageCollection and MapUtil code#1771

Merged
xezon merged 2 commits into
TheSuperHackers:mainfrom
xezon:xezon/unity-maputil
Nov 1, 2025
Merged

unify: Merge ImageCollection and MapUtil code#1771
xezon merged 2 commits into
TheSuperHackers:mainfrom
xezon:xezon/unity-maputil

Conversation

@xezon

@xezon xezon commented Nov 1, 2025

Copy link
Copy Markdown

Merge with Rebase

This change merges code in MapUtil and ImageCollection.

Generals gets

  • CPU optimization in ImageCollection by swapping linked list with map
  • Code for Max Brutal Image (RedYell_Star) in Singleplayer Map List
  • Non localized name lookup tag in MapCache

TODO

  • Add pull id to commits

@xezon xezon added this to the Code foundation build up milestone Nov 1, 2025
@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Gen Relates to Generals Unify Unifies code between Generals and Zero Hour labels Nov 1, 2025
@xezon xezon force-pushed the xezon/unity-maputil branch from efbb271 to 2285ef0 Compare November 1, 2025 11:29
@xezon

xezon commented Nov 1, 2025

Copy link
Copy Markdown
Author

Fixed GUIEdit compile error.


#if RTS_ZEROHOUR
//Patch 1.03 -- Purposely filter out these broken maps that exist in Generals.
if( !asciiMapName.compare( "maps\\armored fury\\armored fury.map" ) ||

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

how broken are these? I would rather remove this part from ZH then exclude maps hardcoded.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I commented this out and tested in Zero Hour and both maps show in the list and do load successfully. I do not know why they were removed here. It is separate investigation. Maybe we can bring them back.

@Skyaero42 Skyaero42 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks ok

@xezon xezon merged commit e7ee57b into TheSuperHackers:main Nov 1, 2025
18 checks passed
@xezon xezon deleted the xezon/unity-maputil branch November 1, 2025 15:04
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker Unify Unifies code between Generals and Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants