将原始 .rsc 文件编译到我的 iPhone 应用程序中

发布于 2024-08-20 18:26:34 字数 424 浏览 4 评论 0原文

我正在将应用程序从 palm 移植到 iPhone OS 并希望使用 palm 端口的 .rcs 文件。 这些文件包含大量原始的十六进制常量,必须将其硬编码到应用程序中。 当我尝试在 xCode 中编译 .rcs 文件时,编译成功。 这是否意味着我可以将这些文件嵌入到应用程序中并访问数据? 如果是 - 请指导我如何从应用程序内嵌入和访问这些数据。

文件格式类似于(但更大):

HEX“data”ID MyMinValueRcs
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0

十六进制“数据”ID MyMaxValueRcs
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0

I am porting an app from palm to iPhone OS
and would like to use .rcs files from palm port.
These files contain large amount of raw hex constatnts, that have to be hard - coded into app.
When I try to compile my .rcs file in xCode, compile goes successfully.
Does this mean I can embed these files into app and access the data?
If yes - please direct me on how to embed and access these data from within the app.

the file format is something like (but much larger):

HEX "data" ID MyMinValueRcs
0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0

HEX "data" ID MyMaxValueRcs
0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

滿滿的愛 2024-08-27 18:26:34

用于处理 Palm OS 的 .rcp 文件的 PilRC 编译器默认会输出一系列 .bin 文件。这些是原始二进制资源。您可以使用它将十六进制数据编译为 dataID.bin 文件,然后可以在项目中使用该文件。我不确定如何在 XCode 中提取该 bin 文件,但链接它可能比使用脚本转换 HEX 源文件更容易。

The PilRC compiler used to process .rcp files for Palm OS will by default output a series of .bin files. These are the raw binary resources. You can use that to compile your HEX data into a dataID.bin file which you could then use in your project. I'm not sure how to pull in that bin file in XCode, but it's probably easier to link that in than have a script convert the HEX source files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文