- 精华
- 0
- 帖子
- 3430
- 威望
- 0 点
- 积分
- 3787 点
- 种子
- 92 点
- 注册时间
- 2005-10-4
- 最后登录
- 2025-1-2
|
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
#---------------------- 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}
Beatmania APPEND 5thMIX - 1999.11.25 Psy-Q Source Code
我正好有这张光盘,把DUMMY文件拷出来共享给大家研究
h t t p://pan.baidu.com/s/1dDfCjwl
password: fllq |
|