diff --git a/SHNFileDecryptor/SHNFileDecryptor.h b/SHNFileDecryptor/SHNFileDecryptor.h index 396cf21..eb29962 100644 --- a/SHNFileDecryptor/SHNFileDecryptor.h +++ b/SHNFileDecryptor/SHNFileDecryptor.h @@ -102,7 +102,9 @@ public: int Cols(); //const SHNFile::Data Get(int row,int col)const; template - const T Get(int row,int col)const; + const T Get(int row,int col)const{ + return *(std::static_pointer_cast(contents[row][col].data)); + }; SHNFile(); SHNFile(SHNFile&&)noexcept; ~SHNFile(); @@ -533,10 +535,6 @@ void SHNFile::Save(){ WriteBytes(encryptedFile,data,readAmt-0x24); std::cout<<"File "< -const T SHNFile::Get(int row,int col)const{ - return *(std::static_pointer_cast(contents[row][col].data)); -}; void SHNFile::Write(int row,int col,std::byte val){ contents[row][col].Set(val); }