|
18 | 18 | #include "cod_mobile/cod_mobile_capture_context4.h" |
19 | 19 | #include "egypt_1500/egypt_1500_capture_context6.h" |
20 | 20 | #include "free_fire/free_fire_capture_context3.h" |
| 21 | +#include "kartrider_rush/kartrider_rush_capture_context3.h" |
21 | 22 | #include "manhattan_10/manhattan_10_capture_context6.h" |
22 | 23 | #include "marvel_contest_of_champions/marvel_contest_of_champions_capture_context2.h" |
23 | 24 | #include "mobile_legends/mobile_legends_capture_context3.h" |
@@ -54,6 +55,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = { |
54 | 55 | {RestrictedTraceID::free_fire, |
55 | 56 | {free_fire::kReplayFrameStart, free_fire::kReplayFrameEnd, free_fire::kReplayDrawSurfaceWidth, |
56 | 57 | free_fire::kReplayDrawSurfaceHeight, "free_fire"}}, |
| 58 | + {RestrictedTraceID::kartrider_rush, |
| 59 | + {kartrider_rush::kReplayFrameStart, kartrider_rush::kReplayFrameEnd, |
| 60 | + kartrider_rush::kReplayDrawSurfaceWidth, kartrider_rush::kReplayDrawSurfaceHeight, |
| 61 | + "kartrider_rush"}}, |
57 | 62 | {RestrictedTraceID::manhattan_10, |
58 | 63 | {manhattan_10::kReplayFrameStart, manhattan_10::kReplayFrameEnd, |
59 | 64 | manhattan_10::kReplayDrawSurfaceWidth, manhattan_10::kReplayDrawSurfaceHeight, |
@@ -108,6 +113,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex) |
108 | 113 | case RestrictedTraceID::free_fire: |
109 | 114 | free_fire::ReplayContext3Frame(frameIndex); |
110 | 115 | break; |
| 116 | + case RestrictedTraceID::kartrider_rush: |
| 117 | + kartrider_rush::ReplayContext3Frame(frameIndex); |
| 118 | + break; |
111 | 119 | case RestrictedTraceID::manhattan_10: |
112 | 120 | manhattan_10::ReplayContext6Frame(frameIndex); |
113 | 121 | break; |
@@ -158,6 +166,9 @@ void ResetReplay(RestrictedTraceID traceID) |
158 | 166 | case RestrictedTraceID::free_fire: |
159 | 167 | free_fire::ResetContext3Replay(); |
160 | 168 | break; |
| 169 | + case RestrictedTraceID::kartrider_rush: |
| 170 | + kartrider_rush::ResetContext3Replay(); |
| 171 | + break; |
161 | 172 | case RestrictedTraceID::manhattan_10: |
162 | 173 | manhattan_10::ResetContext6Replay(); |
163 | 174 | break; |
@@ -208,6 +219,9 @@ void SetupReplay(RestrictedTraceID traceID) |
208 | 219 | case RestrictedTraceID::free_fire: |
209 | 220 | free_fire::SetupContext3Replay(); |
210 | 221 | break; |
| 222 | + case RestrictedTraceID::kartrider_rush: |
| 223 | + kartrider_rush::SetupContext3Replay(); |
| 224 | + break; |
211 | 225 | case RestrictedTraceID::manhattan_10: |
212 | 226 | manhattan_10::SetupContext6Replay(); |
213 | 227 | break; |
@@ -258,6 +272,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir) |
258 | 272 | case RestrictedTraceID::free_fire: |
259 | 273 | free_fire::SetBinaryDataDir(dataDir); |
260 | 274 | break; |
| 275 | + case RestrictedTraceID::kartrider_rush: |
| 276 | + kartrider_rush::SetBinaryDataDir(dataDir); |
| 277 | + break; |
261 | 278 | case RestrictedTraceID::manhattan_10: |
262 | 279 | manhattan_10::SetBinaryDataDir(dataDir); |
263 | 280 | break; |
@@ -308,6 +325,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba |
308 | 325 | case RestrictedTraceID::free_fire: |
309 | 326 | free_fire::SetBinaryDataDecompressCallback(callback); |
310 | 327 | break; |
| 328 | + case RestrictedTraceID::kartrider_rush: |
| 329 | + kartrider_rush::SetBinaryDataDecompressCallback(callback); |
| 330 | + break; |
311 | 331 | case RestrictedTraceID::manhattan_10: |
312 | 332 | manhattan_10::SetBinaryDataDecompressCallback(callback); |
313 | 333 | break; |
|
0 commit comments