mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Further work on support for cheats
Cheats can now be enabled/disabled and games can be launched with cheats
This commit is contained in:
16
arm9/source/cheats/PicoLoaderCheatDataFactory.h
Normal file
16
arm9/source/cheats/PicoLoaderCheatDataFactory.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <memory>
|
||||
#include "GameCheats.h"
|
||||
#include "picoLoader7.h"
|
||||
|
||||
class PicoLoaderCheatDataFactory
|
||||
{
|
||||
public:
|
||||
pload_cheats_t* CreateCheatData(const std::unique_ptr<GameCheats>& gameCheats) const;
|
||||
|
||||
private:
|
||||
u32 GetCheatCategoryRequiredSize(const ICheatCategory* cheatCategory, u32& totalNumberOfCheats) const;
|
||||
u32 GetCheatRequiredSize(const Cheat* cheat) const;
|
||||
void GetCheatCategoryData(const ICheatCategory* cheatCategory, u8*& buffer) const;
|
||||
void GetCheatData(const Cheat* cheat, u8*& buffer) const;
|
||||
};
|
||||
Reference in New Issue
Block a user