6 Star 60 Fork 2

weiueye / ReShade4.9.1_cn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dll_resources.cpp 553 Bytes
一键复制 编辑 原始数据 按行查看 历史
crosire 提交于 2022-05-22 15:08 . Clean up code
/*
* Copyright (C) 2014 Patrick Mours
* SPDX-License-Identifier: BSD-3-Clause OR MIT
*/
#include "dll_resources.hpp"
#include <Windows.h>
extern HMODULE g_module_handle;
reshade::resources::data_resource reshade::resources::load_data_resource(unsigned short id)
{
const HRSRC info = FindResource(g_module_handle, MAKEINTRESOURCE(id), RT_RCDATA);
const HGLOBAL handle = LoadResource(g_module_handle, info);
data_resource result;
result.data = LockResource(handle);
result.data_size = SizeofResource(g_module_handle, info);
return result;
}
C++
1
https://gitee.com/jiangyi0923/re-shade4.9.1_cn.git
git@gitee.com:jiangyi0923/re-shade4.9.1_cn.git
jiangyi0923
re-shade4.9.1_cn
ReShade4.9.1_cn
v5.5.2

搜索帮助