diff options
Diffstat (limited to 'context.h')
-rw-r--r-- | context.h | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -829,3 +829,31 @@ private: return this->task_flags & flags; }; }; + +// pso/PSOV3Encryption.h +class PSOEncryption { +public: + PSOEncryption(); + virtual void update_stream() = 0; + virtual ~PSOEncryption(); + virtual void encrypt(u32 seed) = 0; + virtual u32 next() = 0; +}; + +class PSOV3Encryption : public PSOEncryption { +public: + PSOV3Encryption(); + virtual void update_stream() override; + virtual ~PSOV3Encryption(); + virtual void encrypt(u32 seed) override; + virtual u32 next() override; + + PRIVATE_MEMBER_ACCESSORS_ARRAY(u32, buffer, 522); + PRIVATE_MEMBER_ACCESSORS(u32 *, buffer_start); + PRIVATE_MEMBER_ACCESSORS(u32 *, buffer_end); + +private: + TArray<u32, 522> m_buffer; + u32 *m_buffer_start; + u32 *m_buffer_end; +}; |