yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
anonymous_namespace{yaze_debug_inspector.cc} Namespace Reference

Functions

yaze::emu::EmulatorGetGlobalEmulator ()
 
yaze::editor::EditorManagerGetEditorManager ()
 
 EM_JS (void, CallJsAiDriver,(const char *history_json), { if(window.yaze &&window.yaze.ai &&window.yaze.ai.processAgentRequest) { window.yaze.ai.processAgentRequest(UTF8ToString(history_json));} else { console.error("AI Driver not found in window.yaze.ai.processAgentRequest");} })
 
nlohmann::json MessageToJson (const yaze::cli::agent::ChatMessage &msg)
 
std::string registerExternalAiDriver ()
 
void onExternalAiResponse (std::string response_json)
 
yaze::editor::EditorType ParseEditorType (const std::string &name)
 

Variables

std::atomic< uint32_t > g_operation_counter {0}
 
std::unordered_map< uint32_t, std::string > g_pending_operations
 

Function Documentation

◆ GetGlobalEmulator()

yaze::emu::Emulator * anonymous_namespace{yaze_debug_inspector.cc}::GetGlobalEmulator ( )

Definition at line 55 of file yaze_debug_inspector.cc.

References yaze::app::GetGlobalEmulator().

Referenced by getEmulatorStatus(), getEmulatorVideoState(), readEmulatorMemory(), and resumeAudioContext().

Here is the call graph for this function:

◆ GetEditorManager()

yaze::editor::EditorManager * anonymous_namespace{yaze_debug_inspector.cc}::GetEditorManager ( )

◆ EM_JS()

anonymous_namespace{yaze_debug_inspector.cc}::EM_JS ( void ,
CallJsAiDriver ,
(const char *history_json) ,
{ if(window.yaze &&window.yaze.ai &&window.yaze.ai.processAgentRequest) { window.yaze.ai.processAgentRequest(UTF8ToString(history_json));} else { console.error("AI Driver not found in window.yaze.ai.processAgentRequest");} }  )

◆ MessageToJson()

nlohmann::json anonymous_namespace{yaze_debug_inspector.cc}::MessageToJson ( const yaze::cli::agent::ChatMessage & msg)

◆ registerExternalAiDriver()

std::string anonymous_namespace{yaze_debug_inspector.cc}::registerExternalAiDriver ( )

Definition at line 91 of file yaze_debug_inspector.cc.

References GetEditorManager(), and MessageToJson().

Referenced by EMSCRIPTEN_BINDINGS().

Here is the call graph for this function:

◆ onExternalAiResponse()

void anonymous_namespace{yaze_debug_inspector.cc}::onExternalAiResponse ( std::string response_json)

◆ ParseEditorType()

Variable Documentation

◆ g_operation_counter

std::atomic<uint32_t> anonymous_namespace{yaze_debug_inspector.cc}::g_operation_counter {0}

Definition at line 204 of file yaze_debug_inspector.cc.

Referenced by switchToEditorAsync().

◆ g_pending_operations

std::unordered_map<uint32_t, std::string> anonymous_namespace{yaze_debug_inspector.cc}::g_pending_operations

Definition at line 205 of file yaze_debug_inspector.cc.

Referenced by getOperationStatus(), and switchToEditorAsync().