mirror of https://github.com/PrimeDecomp/prime.git
Add CInputStream::Get<bool>
This commit is contained in:
parent
dc69b9f2fd
commit
8b12f9a986
|
@ -56,7 +56,10 @@ template <typename T>
|
|||
inline T cinput_stream_helper(const TType<T>& type, CInputStream& in) {
|
||||
return T(in);
|
||||
}
|
||||
|
||||
template <>
|
||||
inline bool cinput_stream_helper(const TType< bool >& type, CInputStream& in) {
|
||||
return in.ReadBool();
|
||||
}
|
||||
template <>
|
||||
inline int cinput_stream_helper(const TType< int >& type, CInputStream& in) {
|
||||
return in.ReadLong();
|
||||
|
|
Loading…
Reference in New Issue