Skip to content

Commit

Permalink
comment out assert for getfilesize that crashes for 2gb+ files
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 28, 2019
1 parent e828140 commit 2deae2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/RageUtil/File/RageFileDriverDirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,9 @@ RageFileObjDirect::GetFileSize() const
ASSERT_M(iOldPos != -1,
ssprintf("\"%s\": %s", m_sPath.c_str(), strerror(errno)));
const int iRet = static_cast<int>(lseek(m_iFD, 0, SEEK_END));
ASSERT_M(iRet != -1,
ssprintf("\"%s\": %s", m_sPath.c_str(), strerror(errno)));
// causes crashes when trying to unzip files >2gb, switch for large packs is handled theme-side in TD, so comment this out for now for other themes
//ASSERT_M(iRet != -1,
// ssprintf("\"%s\": %s", m_sPath.c_str(), strerror(errno)));
lseek(m_iFD, iOldPos, SEEK_SET);
return iRet;
}
Expand Down

0 comments on commit 2deae2d

Please sign in to comment.