Skip to content

Commit

Permalink
fix frogor
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyAdd committed Dec 1, 2024
1 parent 3cfdb52 commit 45c956f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/replayEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ std::string ReplayEngine::load(std::string name) {
if (!m_inputFrames_p1.empty() || !m_inputFrames_p2.empty())
return "Please clear replay before loading another";

std::ifstream file(folderMacroPath / std::string(name + ".re"), std::ios::binary);
std::ifstream file(folderMacroPath / std::string(name + ".re3"), std::ios::binary);
if (!file)
return "Replay doesn't exist";

Expand All @@ -87,7 +87,7 @@ std::string ReplayEngine::load(std::string name) {
file.read(reinterpret_cast<char *>(&m_physicFrames_p1[0]), sizeof(replay_data) * p1_size);
file.read(reinterpret_cast<char *>(&m_physicFrames_p2[0]), sizeof(replay_data) * p2_size);
file.read(reinterpret_cast<char *>(&m_inputFrames_p1[0]), sizeof(replay_data2) * p1_input_size);
file.read(reinterpret_cast<char *>(&m_physicFrames_p2[0]), sizeof(replay_data2) * p2_input_size);
file.read(reinterpret_cast<char *>(&m_inputFrames_p2[0]), sizeof(replay_data2) * p2_input_size);

file.close();

Expand Down

0 comments on commit 45c956f

Please sign in to comment.