1 Star 0 Fork 10

Mr.Chen/supervisor

forked from leo/supervisor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
resource.h 542 Bytes
一键复制 编辑 原始数据 按行查看 历史
leo 提交于 2016-12-12 17:29 . First edition
#ifndef __RESOURCE_H_INCLUDED__
#define __RESOURCE_H_INCLUDED__
#include <string>
#include <map>
#define GResource Resource::Instance()
struct Asset {
char * pData;
size_t nSize;
char pType[64];
};
class Resource {
public:
Resource() : _pZip(nullptr), _mAssets() {}
virtual ~Resource();
static Resource & Instance();
bool Load();
Asset * Get(const std::string & sPath);
private:
struct mz_zip_archive_tag * _pZip;
std::map<std::string, Asset> _mAssets;
};
#endif//! __RESOURCE_H_INCLUDED__
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/cxs5534/supervisor.git
git@gitee.com:cxs5534/supervisor.git
cxs5534
supervisor
supervisor
master

搜索帮助