| 110 | "ThumbIconB3", "ThumbIconHB", "ThumbIconHB" }; |
| 111 | |
| 112 | void zUpdateThumbIcon() |
| 113 | { |
| 114 | S32 i; |
| 115 | S32 start; |
| 116 | S32 end; |
| 117 | if (gGameMode == eGameMode_Load) |
| 118 | { |
| 119 | start = 6; |
| 120 | end = 9; |
| 121 | } |
| 122 | else |
| 123 | { |
| 124 | start = 25; |
| 125 | end = 28; |
| 126 | } |
| 127 | |
| 128 | for (i = start; i <= end; i++) |
| 129 | { |
| 130 | _zUI* gameSlot = (_zUI*)zSceneFindObject(zSaveLoadUITable[i].nameID); |
| 131 | if (gameSlot != NULL && (gameSlot->uiFlags & 2) != 0) |
| 132 | { |
| 133 | U32 id = xStrHash(gGameMode == eGameMode_Load ? "MNU3 THUMBICON" : "MNU4 THUMBICON"); |
| 134 | _zUI* thumbIcon = (_zUI*)zSceneFindObject(id); |
| 135 | if (thumbIcon != NULL) |
| 136 | { |
| 137 | S32 index = zSaveLoadGameTable[i - start].thumbIconIndex; |
| 138 | if (index >= 0 && index < 15) |
| 139 | { |
| 140 | if (thumbIcon->sasset->textureID != xStrHash(thumbIconMap[index])) |
| 141 | { |
| 142 | zChangeThumbIcon(thumbIconMap[index]); |
| 143 | } |
| 144 | } |
| 145 | else |
| 146 | { |
| 147 | zChangeThumbIcon(""); |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | void zSaveLoad_Tick() |
| 155 | { |
no test coverage detected