// Copyright 2026 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include #include #include #include #include "Common/CommonTypes.h" class QWidget; struct TextureHashBrowserEntry { u64 hash = 0; std::string name; }; struct TextureHashBrowserConfig { QString title; QString empty_info_text; QString current_label; std::function fetch_current_label; std::vector initial_selected_hashes; std::function()> fetch_current_entries; std::function&)> apply_selected_hashes; std::function&)> live_selection_changed; // Optional: when set, the dialog shows a Skip/Pink "Preview" mode selector and calls this with // false=Skip / true=Pink whenever it changes (and once on open). std::function preview_mode_changed; }; QDialog* ShowTextureHashBrowserDialog(QWidget* parent, const TextureHashBrowserConfig& config);