mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-10 10:51:25 -10:00
1. Do not modify the map after loading. Instead, return string views (guaranteed to be null-terminated) from look up functions and return the key directly if not found. 2. Use an `unorded_map` instead of `map` where available (C++20). Saves a bit of RAM (~50 KiB) and improves lookup performance.
14 lines
397 B
C++
14 lines
397 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
#include "DiabloUI/ui_item.h"
|
|
#include "utils/stdcompat/string_view.hpp"
|
|
|
|
namespace devilution {
|
|
|
|
void UiErrorOkDialog(string_view text, const std::vector<std::unique_ptr<UiItemBase>> &renderBehind);
|
|
void UiErrorOkDialog(string_view caption, string_view text, const std::vector<std::unique_ptr<UiItemBase>> &renderBehind);
|
|
|
|
} // namespace devilution
|