ResourceLoader.h 473 B

123456789101112131415161718
  1. #pragma once
  2. #include "../includes.h"
  3. #include "mutil.h"
  4. class ResourceLoader {
  5. public:
  6. static std::string Load(const char* name, const char* type);
  7. static std::string Load(int resID, const char* type);
  8. static bool LoadEx(const char* name, const char* type, LPBYTE& pDest, DWORD& size);
  9. static bool LoadEx(int resId, const char* type, LPBYTE& pDest, DWORD& size);
  10. static void SetModuleHandle(HMODULE handle);
  11. private:
  12. inline static HMODULE s_Handle = nullptr;
  13. };