魔王撒旦
中国异度联盟盟主
On Beatmania Best Hits (a Japanese game), there is a file named DUMMY. Copy it to your hard drive and name it as an LZH file. Inside this LZH is the source code to Beatmania 5th Mix (a different Japanese game). If you compile the source, the game WILL run with the 5th Mix CD in the drive, but getting it to compile and run is a pain. The makefile has all sorts of hardcoded directories. Since 5th Mix is an "append" disk, it relies on data passed to it from 2nd Mix. So it takes a few tricks to get it to run, too. The source is not the final version of 5th Mix, but it's close. -- Barubary
#---------------------- Makefile for BeatMania # ( ref. Makefile for MetalGearSolid ) MAKEFLAGS = --no-print-directory #---------------------- Rules and defines export IMAGEDIR = ../cdrom.img STAGELIST = $(addsuffix .bin, $(basename $(STAGE))) MAINDIR = Main TRGPSX = bm.cpe OBJPSX = $(MAINDIR)/bm.obj MAPPSX = bm.map SYMPSX = #SYMPSX = bm.sym PS_LIB_PATH = c:\psx\lib BM_LIBS_SYSTEM = libfs libmc libbm libsrn BM_LIBS_GAME = BM_LIBS_USER = tan BM_LIBS_DBGSTR = dbgstr BM_LIBS_DBGSTR_CD = dbgstr_m BM_LIBS = $(BM_LIBS_SYSTEM) $(BM_LIBS_GAME) $(BM_LIBS_USER) $(BM_LIBS_DBGSTR) OPTIONS = -c -O2 -Wall -kanji -Wno-format -comments-c++ -Wa,0 -G 0 DEFINES = -DDEBUG -DDEBUG_MODE -DPSX -DNTSC -DLOCAL_SETUP -DAUTO_PLAY_ON INCPATH1 = include libfs libmc libsio libbm libsrn dbgstr CONFIGBM = bm.lnk CONFIGCD = cd.lnk CONFIGTMP = lnktmp.tmp CONFIGFILES = $(CONFIGHD) $(CONFIGCD) $(CONFIGDB) OPTFILE = options PATCHX = patchj.bat CCPSX = ccpsx LINKPSX = psylink LINKOPT = /o$$80010000 /c /n512 /llib /m /l$(LIBRARY_PATH) GAWK = gawk LFGPSX0 = -o $(TRGPSX),$(SYMPSX),$(MAPPSX) LFGPSX1 = -Xo$$80010000 -Llib -Xn512 -nostdlib LFGPSX2 = $(addprefix -l, $(BM_LIBS_SYSTEM)) LFGPSX3 = $(addprefix -l, $(BM_LIBS_GAME)) LFGPSX4 = $(addprefix -l, $(BM_LIBS_USER)) LFGPSX5 = -lsound LFGPSXHD = -lmts -lsio $(addprefix -l, $(BM_LIBS_DBGSTR)) ## •’Ê LFGPSXCD = -lmtscd -lsio $(addprefix -l, $(BM_LIBS_DBGSTR)) ## ƒ}ƒXƒ^[ #LFGPSXCD = -lmtsmcd -lnolibsio $(addprefix -l, $(BM_LIBS_DBGSTR_M)) LFGPSXSYS1 = -llibcd -llibsnd -llibc2 -llibgpu -llibgte -llibspu -llibpress LFGPSXSYS2 = -llibmcrd -llibpad -llibetc -llibsn -llibcard -llibapi #---------------------- Suffixes .SUFFIXES: .obj .c .s #---------------------- How to make all : psx FORCE : $(BM_LIBS) : FORCE @command.com /C echo Compile $@ @cd $@ @make psx @cd .. link : FORCE @command /C echo Link ${LINKPSX} /q $(LINKOPT) @${CONFIGBM},$(TRGPSX),$(SYMPSX),$(MAPPSX) psx : $(OPTFILE) $(OBJPSX) $(CONFIGBM) $(BM_LIBS) link linkcd: FORCE ${LINKPSX} /q $(LINKOPT) @${CONFIGCD},$(TRGPSX),$(SYMPSX),$(MAPPSX) cpe2x $(TRGPSX) cd : $(OPTFILE) $(OBJPSX) $(CONFIGCD) $(BM_LIBS) linkcd $(CONFIGBM) : Makefile echo ${LFGPSX0} > $(CONFIGTMP) echo ${OBJPSX} >> $(CONFIGTMP) echo ${LFGPSX1} >> $(CONFIGTMP) echo ${LFGPSX2} >> $(CONFIGTMP) # echo ${LFGPSX3} >> $(CONFIGTMP) echo ${LFGPSX4} >> $(CONFIGTMP) echo ${LFGPSX5} >> $(CONFIGTMP) echo ${LFGPSXHD} >> $(CONFIGTMP) echo ${LFGPSXSYS1} >> $(CONFIGTMP) echo ${LFGPSXSYS2} >> $(CONFIGTMP) echo ${PS_LIB_PATH}\noheap.obj >> $(CONFIGTMP) $(GAWK) -f awk/mklnk.awk $(CONFIGTMP) > $@ rm $(CONFIGTMP) $(CONFIGCD) : Makefile echo ${LFGPSX0} > $(CONFIGTMP) echo ${OBJPSX} >> $(CONFIGTMP) echo ${LFGPSX1} >> $(CONFIGTMP) echo ${LFGPSX2} >> $(CONFIGTMP) # echo ${LFGPSX3} >> $(CONFIGTMP) echo ${LFGPSX4} >> $(CONFIGTMP) echo ${LFGPSX5} >> $(CONFIGTMP) echo ${LFGPSXCD} >> $(CONFIGTMP) echo ${LFGPSXSYS1} >> $(CONFIGTMP) echo ${LFGPSXSYS2} >> $(CONFIGTMP) echo ${PS_LIB_PATH}\noheap.obj >> $(CONFIGTMP) $(GAWK) -f awk/mklnk.awk $(CONFIGTMP) > $@ rm $(CONFIGTMP) $(OPTFILE) : Makefile echo $(OPTIONS) > $(OPTFILE) echo $(DEFINES) >> $(OPTFILE) echo $(addprefix -I../,$(INCPATH1)) >> $(OPTFILE) # echo $(addprefix -I../,$(INCPATH2)) >> $(OPTFILE) map: ${CCPSX} @${CONFIGHD} -Xm #---------------------- Dependencies $(MAINDIR)/bm.obj: $(MAINDIR)/bm.c @cd Main ${CCPSX} @../$(OPTFILE) $(<F) @cd .. #---------------------- Operations config: ${CONFIG} $(OPTFILE) clean: -rm */*.obj -rm dbgstr/*.o -rm */*/*.obj -rm e.txt -rm */e.txt -rm ${TRGPSX} $(MAPPSX) $(CONFIG) $(OPTFILE) $(CONFIGFILES) psx.exe go: resetps 1 delay ${PATCHX} delay run ${TRGPSX}
查看个人网站
查看详细资料
TOP
原帖由 hkt3010 于 2014-12-11 15:37 发表 posted by wap, platform: GALAXY S IV 说不定人家本来就准备开源让所有人参加二次开发。反正主机是有保护的,不怕你刻盘。
Actually what I don't understand is why did they put that 31mb dummy file. In a following re-release of the game the source code was replaced with a garbled binary file.
原帖由 yksoft1 于 2014-12-18 23:18 发表 posted by wap, platform: Firefox 有人有完整的ps1 psyq环境么。没有就没用 另外 大家应该都知道ps妇科版时空之轮里那个rom.bin