[keel] Make Context::appName a BasicString<32> to generally avoid allocations while ensuring that Context owns a copy
This commit is contained in:
parent
0fc7e7005c
commit
a37df08c19
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#include <ox/fs/fs.hpp>
|
#include <ox/fs/fs.hpp>
|
||||||
#include <ox/std/memory.hpp>
|
#include <ox/std/memory.hpp>
|
||||||
#include <ox/std/stringview.hpp>
|
|
||||||
|
|
||||||
#include "assetmanager.hpp"
|
#include "assetmanager.hpp"
|
||||||
|
|
||||||
@ -18,7 +17,7 @@ using PackTransform = ox::Error(*)(Context*, ox::Buffer *clawData);
|
|||||||
class Context {
|
class Context {
|
||||||
public:
|
public:
|
||||||
ox::UPtr<ox::FileSystem> rom;
|
ox::UPtr<ox::FileSystem> rom;
|
||||||
ox::StringView appName = "Keel App";
|
ox::BasicString<32> appName = "Keel App";
|
||||||
#ifndef OX_BARE_METAL
|
#ifndef OX_BARE_METAL
|
||||||
AssetManager assetManager;
|
AssetManager assetManager;
|
||||||
ox::HashMap<ox::String, ox::UUID> pathToUuid;
|
ox::HashMap<ox::String, ox::UUID> pathToUuid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user