|
|
@ -145,14 +145,8 @@ void SHNFile::Decrypt(){ |
|
|
|
} |
|
|
|
} |
|
|
|
std::vector<std::byte>&SHNFile::ReadBytes(int bytes){ |
|
|
|
std::vector<std::byte>&SHNFile::ReadBytes(int bytes){ |
|
|
|
readArr.clear(); |
|
|
|
readArr.clear(); |
|
|
|
for(int i=0;i<bytes;i++){ |
|
|
|
std::copy(data.begin()+marker,data.begin()+marker+bytes,std::back_inserter(readArr)); |
|
|
|
if(marker<data.size()){ |
|
|
|
marker+=bytes; |
|
|
|
readArr.push_back(data[marker]); |
|
|
|
|
|
|
|
marker++; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return readArr; |
|
|
|
return readArr; |
|
|
|
} |
|
|
|
} |
|
|
|
std::byte SHNFile::ReadByte(){ |
|
|
|
std::byte SHNFile::ReadByte(){ |
|
|
|