本文作者原创,首发在本博客;CSDN 上的同名文章已标注为转载并回链到本页:https://blog.csdn.net/qq_30220519/article/details/143028617
目标
本地资源文件编译时加载工具,旨在帮助开发者简化资源管理流程,提高编译效率,确保资源文件在运行时能够快速、可靠地加载。
下载
实现代码
1 |
|
用法
file2c.exe -o output.c -n thbrk thbrk.tri
反转文件
1 | const char thbrk[] = "\xd9\xfc\xd9\xfc\x00\x00\x00\x01\x00\x00\x0e\x01\x00\x00\x0e\x5b\xda\xfc\xda\xfc\x00\x00\x91\x31\xff\xff\x6e\xd2\xff\xff\x6f\xef\x00\x00\x8e\x79\x00\x00\x00\x00\xff\xff\xff\xff\x00..."; |
参考
GitHub - pyxherb/file2c: Convert and embed files into C sources.
创作不易,小小的支持一下吧!

