mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-04 15:55:52 +00:00
Add CInputStream::Get<bool>
Former-commit-id: 8b12f9a986585b2a2979705e2c2b4d92f0d1d296
This commit is contained in:
parent
ff2b38dc53
commit
de3ac9c9d5
@ -56,7 +56,10 @@ template <typename T>
|
|||||||
inline T cinput_stream_helper(const TType<T>& type, CInputStream& in) {
|
inline T cinput_stream_helper(const TType<T>& type, CInputStream& in) {
|
||||||
return T(in);
|
return T(in);
|
||||||
}
|
}
|
||||||
|
template <>
|
||||||
|
inline bool cinput_stream_helper(const TType< bool >& type, CInputStream& in) {
|
||||||
|
return in.ReadBool();
|
||||||
|
}
|
||||||
template <>
|
template <>
|
||||||
inline int cinput_stream_helper(const TType< int >& type, CInputStream& in) {
|
inline int cinput_stream_helper(const TType< int >& type, CInputStream& in) {
|
||||||
return in.ReadLong();
|
return in.ReadLong();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user