|
楼主 |
发表于 2024-10-14 22:27:26
|
显示全部楼层
本帖最后由 缘来是你 于 2024-10-14 22:35 编辑
// ------------------------示例代码-------------------------------- - // 仅供参考,不一定适用于其它版本
- // 豪血寺一族(中国版)
- static struct BurnRomInfo powerinscnRomDesc[] = {
- { "93095-3br.u108", 0x080000, 0x565e776a, BRF_ESS | BRF_PRG }, // 68000 code
- { "93095-4.u109", 0x080000, 0xd3d7a782, BRF_ESS | BRF_PRG },
- { "93095-2.u90", 0x020000, 0x4b123cc6, BRF_ESS | BRF_PRG }, // Z80 code
- { "93095-5.u16", 0x100000, 0xb1371808, BRF_GRA }, // layer 0
- { "93095-6br.u17", 0x100000, 0x456a6bd8, BRF_GRA },
- { "93095-7.u18", 0x080000, 0x2dd76149, BRF_GRA },
- { "93095-1br.u15", 0x020000, 0x7e73e1d8, BRF_GRA }, // layer 1
- { "93095-12.u116", 0x100000, 0x35f3c2a3, BRF_GRA },
- { "93095-13.u117", 0x100000, 0x1ebd45da, BRF_GRA },
- { "93095-14.u118", 0x100000, 0x760d871b, BRF_GRA },
- { "93095-15.u119", 0x100000, 0xd45be388, BRF_GRA },
- { "93095-16.u120", 0x100000, 0xa9c16c9c, BRF_GRA },
- { "93095-17.u121", 0x100000, 0x51b57288, BRF_GRA },
- { "93095-18.u122", 0x100000, 0xb135e3f2, BRF_GRA },
- { "93095-19.u123", 0x100000, 0x67695537, BRF_GRA },
- { "93095-10.u48", 0x100000, 0x329ac6c5, BRF_SND }, // sound 1
- { "93095-11.u49", 0x100000, 0x7566097c, BRF_SND },
- { "93095-8.u46", 0x100000, 0xf019bedb, BRF_SND }, // sound 2
- { "93095-9.u47", 0x100000, 052c83d765, BRF_SND },
- { "22.u81", 0x000020, 0x67d5ec4b, BRF_OPT }, // unknown
- { "21.u71", 0x000100, 0x182cd81f, BRF_OPT },
- { "20.u54", 0x000100, 0x38bd0e2f, BRF_OPT },
- };
- STD_ROM_PICK(powerinscn)
- STD_ROM_FN(powerinscn)
- // ----------------------------------------------------------------------------
-
- /* 省略若干行代码
-
- ************************************
-
- 省略若干行代码*/
- // ----------------------------------------------------------------------------
- struct BurnDriver BurnDrvPowernbr = {
- "powerinscn", "powerins", NULL, NULL, "2020",
- "豪血寺一族(中国版)\0", NULL, "hack", "Miscellaneous",
- NULL, NULL, NULL, NULL,
- BDF_GAME_WORKING | BDF_CLONE | BDF_HACK, 2, HARDWARE_MISC_POST90S, GBF_VSFIGHT, FBF_PWRINST,
- NULL, powerinscnRomInfo, powerinscnRomName, NULL, NULL, NULL, NULL, powerinsInputInfo, powerinsjDIPInfo,
- powerinsInit, powerinsExit, powerinsFrame, DrvDraw, powerinsScan, &bRecalcPalette, 0x800,
- 320, 224, 4, 3
- };
复制代码编译报错 - if ( strcmp(BurnDrvGetTextA(DRV_NAME), "powerins") == 0 || strcmp(BurnDrvGetTextA(DRV_NAME), "powerinsj") == 0) {
复制代码
- if ( strcmp(BurnDrvGetTextA(DRV_NAME), "powerins") == 0 || strcmp(BurnDrvGetTextA(DRV_NAME), "powerinsj") == 0 || strcmp(BurnDrvGetTextA(DRV_NAME), "powerinscn") == 0) {
复制代码编译完成
|
|