Skip to content

Instantly share code, notes, and snippets.

View DavinciPG's full-sized avatar

Erkz DavinciPG

View GitHub Profile
@DavinciPG
DavinciPG / gist:68975a87b31ebadf5929992cffe8ae22
Last active April 4, 2023 15:48
Simple caching system for CModule
class CModule {
public:
CModule(CModule&&) = delete;
CModule(const CModule&) = delete;
explicit CModule(const char* name, bool shouldLoad) {
this->m_name = name;
if (shouldLoad) Load();
}
void Load() {