-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "DebugContext.h" | ||
|
||
MAA_DEBUG_NS_BEGIN | ||
|
||
DebugContext::DebugContext(TaskNS::PipelineTask* task) | ||
: task_(task) | ||
{ | ||
} | ||
|
||
std::vector<std::string> DebugContext::get_task_list() const | ||
{ | ||
return task_->data_mgr_.get_task_list(); | ||
} | ||
|
||
MAA_DEBUG_NS_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#include "API/MaaTypes.h" | ||
#include "Conf/Conf.h" | ||
#include "Instance/InstanceInternalAPI.hpp" | ||
#include "Task/PipelineTask.h" | ||
|
||
MAA_DEBUG_NS_BEGIN | ||
|
||
class DebugContext : public MaaDebugContextAPI | ||
{ | ||
public: | ||
DebugContext(TaskNS::PipelineTask* task); | ||
|
||
virtual std::vector<std::string> get_task_list() const override; | ||
virtual const MAA_DEBUG_NS::Task* get_task_debug_info(std::string_view task) const override; | ||
|
||
private: | ||
TaskNS::PipelineTask* task_; | ||
}; | ||
|
||
MAA_DEBUG_NS_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters