丁丁机
发表于 2024-10-13 11:42:19
技术贴支持!
lijun916
发表于 2024-10-13 14:27:34
谢谢分享
innot
发表于 2024-10-13 17:01:35
会编程的就是为所欲为,哈哈哈
缘来是你
发表于 2024-10-13 22:10:26
innot 发表于 2024-10-13 17:01
会编程的就是为所欲为,哈哈哈
简单编译和修改,和会不会编程无关
net.man
发表于 2024-10-13 22:24:27
看來真的自己來編譯PGM2還會比較快
這位「次里品初」已經搶得先機
https://www.bilibili.com/video/BV1WCtce6ECT?t=55.2
Alifu1227
发表于 2024-10-13 22:52:30
进来支持一下
powerha
发表于 2024-10-14 14:41:42
感谢大佬的精彩分享,顶。
kiku
发表于 2024-10-14 21:38:52
感谢缘来大佬教学
缘来是你
发表于 2024-10-14 22:27:26
本帖最后由 缘来是你 于 2024-10-14 22:35 编辑
附录I
// ------------------------示例代码--------------------------------// 仅供参考,不一定适用于其它版本
// 豪血寺一族(中国版)
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) {编译完成
lrf739146825
发表于 2024-10-18 11:48:14
学习一波!!