Note that GB Addr-Reg values are for the GB (not GBA), so the specifics may be different on the GBA.
| GBA Addr | GB Addr-Reg | old | Belogic | Tonc | Function (Belogic) |
|---|---|---|---|---|---|
| 0x04000060 | FF10-NR10 | SG10 | [SOUND1CNT_L](https://gbadev.net/gbad |
| #include <cassert> | |
| #include <iostream> | |
| #include <string> | |
| #include <system_error> | |
| #include <type_traits> | |
| // 온라인 쇼핑몰에서 상품을 구매할 때 발생할 수 있는 오류 | |
| enum PurchaseErrc { | |
| /* 정상 처리 (오류 아님) */ | |
| PE_OK = 0, |
Note that GB Addr-Reg values are for the GB (not GBA), so the specifics may be different on the GBA.
| GBA Addr | GB Addr-Reg | old | Belogic | Tonc | Function (Belogic) |
|---|---|---|---|---|---|
| 0x04000060 | FF10-NR10 | SG10 | [SOUND1CNT_L](https://gbadev.net/gbad |
<yourProjectRoot>/.vscode/c_cpp_properties.json"<yourPathToButano>/butano/include",
to your location of Butano
C:/butano, it should be "C:/butano/butano/include",| #ifndef COPYRAT90_ENUM_AS_FLAGS_HPP | |
| #define COPYRAT90_ENUM_AS_FLAGS_HPP | |
| #include <type_traits> | |
| #define ENUM_AS_FLAGS(Enum) \ | |
| static_assert(std::is_enum<Enum>::value, "Template argument for Enum is not an enum."); \ | |
| \ | |
| constexpr bool operator!(Enum a) { \ | |
| using Int = typename std::underlying_type<Enum>::type; \ |
| #include <iostream> | |
| class Character | |
| { | |
| public: | |
| Character(int maxHP) : m_maxHP(maxHP), m_currentHP(maxHP) {}; | |
| void Update() | |
| { | |
| if (m_isPoisoned) |