1 // Copyright 2008 Dolphin Emulator Project
2 // Licensed under GPLv2+
3 // Refer to the license.txt file included.
4 
5 #pragma once
6 
7 #include "Common/CommonTypes.h"
8 #include "Core/HW/DSPHLE/UCodes/UCodes.h"
9 
10 namespace DSP::HLE
11 {
12 class DSPHLE;
13 
14 // Computes two 32 bit integers to be returned to the game, based on the
15 // provided crypto parameters at the provided MRAM address. The integers are
16 // written back to RAM at the dest address provided in the crypto parameters.
17 void ProcessGBACrypto(u32 address);
18 
19 struct GBAUCode : public UCodeInterface
20 {
21   GBAUCode(DSPHLE* dsphle, u32 crc);
22   ~GBAUCode() override;
23 
24   void Initialize() override;
25   void HandleMail(u32 mail) override;
26   void Update() override;
27 };
28 }  // namespace DSP::HLE
29