Replay
Replay copied to clipboard
Add custom data support
Please run clang-format on your changes. Additionally, why is there a need to catch a bad_alloc when reading the custom data?
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.