[keel] Make Context::appName a BasicString<32> to generally avoid allocations while ensuring that Context owns a copy

This commit is contained in:
Gary Talent 2023-11-30 21:46:17 -06:00
parent 0fc7e7005c
commit a37df08c19

View File

@ -6,7 +6,6 @@
#include <ox/fs/fs.hpp>
#include <ox/std/memory.hpp>
#include <ox/std/stringview.hpp>
#include "assetmanager.hpp"
@ -18,7 +17,7 @@ using PackTransform = ox::Error(*)(Context*, ox::Buffer *clawData);
class Context {
public:
ox::UPtr<ox::FileSystem> rom;
ox::StringView appName = "Keel App";
ox::BasicString<32> appName = "Keel App";
#ifndef OX_BARE_METAL
AssetManager assetManager;
ox::HashMap<ox::String, ox::UUID> pathToUuid;