diff options
Diffstat (limited to 'machxo2/resource/embed.cc')
-rw-r--r-- | machxo2/resource/embed.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/machxo2/resource/embed.cc b/machxo2/resource/embed.cc deleted file mode 100644 index 24d4815a..00000000 --- a/machxo2/resource/embed.cc +++ /dev/null @@ -1,24 +0,0 @@ -#include <cstdio> -#include <windows.h> -#include "nextpnr.h" -#include "resource.h" - -NEXTPNR_NAMESPACE_BEGIN - -const char *chipdb_blob_1200; - -const char *LoadFileInResource(int name, int type, DWORD &size) -{ - HMODULE handle = ::GetModuleHandle(NULL); - HRSRC rc = ::FindResource(handle, MAKEINTRESOURCE(name), MAKEINTRESOURCE(type)); - HGLOBAL rcData = ::LoadResource(handle, rc); - size = ::SizeofResource(handle, rc); - return static_cast<const char *>(::LockResource(rcData)); -} -void load_chipdb() -{ - DWORD size = 0; - chipdb_blob_1200 = LoadFileInResource(IDR_CHIPDB_1200, BINARYFILE, size); -} - -NEXTPNR_NAMESPACE_END |