mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-25 04:12:17 -05:00
- use const auto& where possible
- avoid using const std::unique_ptr& and const std::shared_ptr& - avoid wrapping results in std::optional - prefer std::string_view over const std::string& - update FSUtils::LoadFileToMem to write into std::vector<uint8_t> - use std::span when possible - Avoid unnessecary copies in PluginDataFactory - allocate plugins as HeapMemoryFixedSize which bascially is a std::unique_ptr with fixed size
This commit is contained in:
@@ -4,10 +4,10 @@ StoredBuffer gStoredTVBuffer __attribute__((section(".data"))) = {};
|
||||
StoredBuffer gStoredDRCBuffer __attribute__((section(".data"))) = {};
|
||||
|
||||
std::vector<std::unique_ptr<PluginContainer>> gLoadedPlugins __attribute__((section(".data")));
|
||||
relocation_trampoline_entry_t *gTrampData __attribute__((section(".data"))) = nullptr;
|
||||
std::vector<relocation_trampoline_entry_t> gTrampData __attribute__((section(".data")));
|
||||
|
||||
std::forward_list<std::shared_ptr<PluginData>> gLoadedData __attribute__((section(".data")));
|
||||
std::forward_list<std::shared_ptr<PluginData>> gLoadOnNextLaunch __attribute__((section(".data")));
|
||||
std::set<std::shared_ptr<PluginData>> gLoadedData __attribute__((section(".data")));
|
||||
std::set<std::shared_ptr<PluginData>> gLoadOnNextLaunch __attribute__((section(".data")));
|
||||
std::mutex gLoadedDataMutex __attribute__((section(".data")));
|
||||
std::map<std::string, OSDynLoad_Module> gUsedRPLs __attribute__((section(".data")));
|
||||
std::vector<void *> gAllocatedAddresses __attribute__((section(".data")));
|
||||
|
||||
Reference in New Issue
Block a user