#pragma once #ifndef NOMINMAX #define NOMINMAX #endif #include "EditorHostResourceService.h" #include namespace XCEngine::UI::Editor::Host { class Win32EditorResourceService final : public EditorHostResourceService { public: explicit Win32EditorResourceService(HINSTANCE instance); bool TryLoadPngResource( EditorHostPngResourceKind kind, EditorHostResourceBytes& outBytes, std::string& outError) const override; std::filesystem::path GetExecutableDirectory() const override; private: HINSTANCE m_instance = nullptr; }; } // namespace XCEngine::UI::Editor::Host