Replay icon indicating copy to clipboard operation
Replay copied to clipboard

Add custom data support

Open frto027 opened this issue 8 months ago • 2 comments

this PR add code that read custom data like this

frto027 avatar Apr 09 '25 14:04 frto027

Please run clang-format on your changes. Additionally, why is there a need to catch a bad_alloc when reading the custom data?

Metalit avatar Apr 09 '25 18:04 Metalit

the resize will fail and throw the bad_alloc exception if there is a illegal length data in the replay file. this is not happening in normal replay file, but I want to handle them because data errors in these optional section are not important. When error happening, the mod can continue to replay, instead of crashes the game.

frto027 avatar Apr 10 '25 01:04 frto027