mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
83b9feff90
gameID isn't null terminated since it is just an std::array<char, 6> and .data() returns a char* so {fmt} would go way beyond the bounds of the array when it attempts to determine the length of the string. The fix is to pass a std::string_view to {fmt}. This commit adds a GetGameID() function that can also be used to simplify string comparisons.