From 9cabc485bf66feea25043a63f00a59306168711d Mon Sep 17 00:00:00 2001 From: Maximilian Stark Date: Sun, 14 May 2023 22:25:51 +0200 Subject: [PATCH] passthrough for Debugger System Interface JoinPath method (#462) --- Source/Debugger/DebuggerSystemInterface.cpp | 5 +++++ Source/Debugger/DebuggerSystemInterface.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/Source/Debugger/DebuggerSystemInterface.cpp b/Source/Debugger/DebuggerSystemInterface.cpp index 3e011c81d..91912ff9e 100644 --- a/Source/Debugger/DebuggerSystemInterface.cpp +++ b/Source/Debugger/DebuggerSystemInterface.cpp @@ -53,6 +53,11 @@ int DebuggerSystemInterface::TranslateString(String& translated, const String& i return application_interface->TranslateString(translated, input); } +void DebuggerSystemInterface::JoinPath(String& translated_path, const String& document_path, const String& path) +{ + application_interface->JoinPath(translated_path, document_path, path); +} + bool DebuggerSystemInterface::LogMessage(Log::Type type, const String& message) { log->AddLogMessage(type, message); diff --git a/Source/Debugger/DebuggerSystemInterface.h b/Source/Debugger/DebuggerSystemInterface.h index 87d2d75c8..33421bf61 100644 --- a/Source/Debugger/DebuggerSystemInterface.h +++ b/Source/Debugger/DebuggerSystemInterface.h @@ -60,6 +60,12 @@ class DebuggerSystemInterface : public Rml::SystemInterface { /// @return Number of translations that occured. int TranslateString(String& translated, const String& input) override; + /// Joins the path of an RML or RCSS file with the path of a resource specified within the file. + /// @param[out] translated_path The joined path. + /// @param[in] document_path The path of the source document (including the file name). + /// @param[in] path The path of the resource specified in the document. + void JoinPath(String& translated_path, const String& document_path, const String& path) override; + /// Log the specified message. /// @param[in] type Type of log message, ERROR, WARNING, etc. /// @param[in] message Message to log.