2018-11-17 01:01:10 +00:00
|
|
|
// Copyright 2018 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Cheats {
|
|
|
|
class CheatBase {
|
|
|
|
public:
|
|
|
|
virtual ~CheatBase();
|
2019-01-30 15:03:44 +00:00
|
|
|
virtual void Execute(Core::System& system) const = 0;
|
2018-11-17 01:01:10 +00:00
|
|
|
|
|
|
|
virtual bool IsEnabled() const = 0;
|
|
|
|
virtual void SetEnabled(bool enabled) = 0;
|
|
|
|
|
|
|
|
virtual std::string GetComments() const = 0;
|
|
|
|
virtual std::string GetName() const = 0;
|
|
|
|
virtual std::string GetType() const = 0;
|
2019-01-30 15:03:44 +00:00
|
|
|
virtual std::string GetCode() const = 0;
|
2018-11-17 01:01:10 +00:00
|
|
|
|
|
|
|
virtual std::string ToString() const = 0;
|
|
|
|
};
|
|
|
|
} // namespace Cheats
|