Вход

Просмотр полной версии : Просьба пересобрать из сырцов...


lupus
26.11.2011, 14:57
Есть такой эмулятор PC Engine и PC Engine CD - PSPHUGO. Исходники доступны на сайте автора, точнее здесь (http://zx81.zx81.free.fr/serendipity/index.php?/archives/365-PSPHUGO-PC-Engine-Emulator-for-PSP-v1.3.1-Irda-Joystick.html).
Сам я не программер, так бы поковырял :)
О чём прошу: слегка поменять управление, прикрутить функцию вызова меню с кнопки SELECT на кнопку HOME, заюзав для этого homehoock.prx, как это сделано в эмуляторах от NJ, gpSP и Snes9x. Экранную клаву перенести со START на SELECT, чтобы START освободить под нужные нам функции.
Заранее спасибо.

frostegater
26.11.2011, 15:21
lupus, никапилица сцуцка... ругается на отсутствие SDL.h

Yoti
26.11.2011, 15:46
Сам я не программер, так бы поковырял
Хитришь, человек-в-группе-разрабов =)

ругается на отсутствие SDL.h
Дык, ставь СДЛ.
Ваш Кэп.

lupus
26.11.2011, 16:08
Хитришь, человек-в-группе-разрабов =)
быдлокодер, это ещё не прораммер :)
к тому же на си никогда не кодил. так, в чужих бинарниках покопаться - это другое дело :blush:

lupus
28.11.2011, 17:19
lupus, никапилица сцуцка... ругается на отсутствие SDL.h

Фрост, получилось ли сдл прикрутить?

Yoti
28.11.2011, 19:32
Там особо "крутить" и нечего =) Только вот я уезжаю временно.

lupus
28.11.2011, 22:26
ясно, бум подождать...

ErikPshat
20.12.2011, 02:36
Что-то у меня на последнем этапе ошибка вываливается, уже на этапе компиляции psphugo.elf:

Построение начато 20.12.2011 2:54:38.
1>Проект "c:\documents and settings\USER\мои документы\visual studio 2010\Projects\PSPHugo\PSPHugo\PSPHugo.vcxproj" в узле 2 (целевые объекты build).
1>PrepareForNMakeBuild:
Создание каталога "c:\documents and settings\user\мои документы\visual studio 2010\Projects\PSPHugo\Release\".
Build:
make
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/cd.o core/cd.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/dis.o core/dis.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/edit_ram.o core/edit_ram.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/followop.o core/followop.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/format.o core/format.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/gfx.o core/gfx.c
psp-gcc -c core/h6280.c -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O3 -o core/h6280.o
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/hard_pce.o core/hard_pce.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/hugo.o core/hugo.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/list_rom.o core/list_rom.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/lsmp3.o core/lsmp3.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/mix.o core/mix.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/optable.o core/optable.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/pce.o core/pce.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/pcecd.o core/pcecd.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/sound.o core/sound.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/sprite.o core/sprite.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/utils.o core/utils.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/hcd.o core/hcd.c
core/hcd.c:648: warning: conflicting types for 'HCD_reset'
core/hcd.c:300: warning: previous implicit declaration of 'HCD_reset' was here
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/miniunz.o core/miniunz.c
core/miniunz.c: In function 'find_possible_filename_in_zip':
core/miniunz.c:89: warning: passing argument 1 of 'strtok' discards qualifiers from pointer target type
core/miniunz.c: In function 'do_extract_currentfile_in_memory':
core/miniunz.c:147: warning: return makes pointer from integer without a cast
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/unzip.o core/unzip.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/bios.o core/bios.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/cheat.o core/cheat.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/debug.o core/debug.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/iniconfig.o core/iniconfig.c
core/iniconfig.c:164: warning: conflicting types for 'dispose_config'
core/iniconfig.c:90: warning: previous implicit declaration of 'dispose_config' was here
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/bp.o core/bp.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o Hugo.o Hugo.c
Hugo.c: In function 'hugo_render_update':
Hugo.c:242: warning: passing argument 3 of 'psp_sdl_fill_print' makes pointer from integer without a cast
Hugo.c: In function 'hugo_load_rom':
Hugo.c:1028: warning: initialization makes pointer from integer without a cast
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_main.o psp_main.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_sdl.o psp_sdl.c
psp_sdl.c: In function 'psp_sdl_load_png':
psp_sdl.c:565: warning: 'width' is deprecated (declared at c:\pspsdk\bin\../lib/gcc/psp/4.3.5/../../../../psp/include/png.h:641)
psp_sdl.c:566: warning: 'height' is deprecated (declared at c:\pspsdk\bin\../lib/gcc/psp/4.3.5/../../../../psp/include/png.h:642)
psp_sdl.c:567: warning: 'color_type' is deprecated (declared at c:\pspsdk\bin\../lib/gcc/psp/4.3.5/../../../../psp/include/png.h:655)
psp_sdl.c:576: warning: 'row_pointers' is deprecated (declared at c:\pspsdk\bin\../lib/gcc/psp/4.3.5/../../../../psp/include/png.h:880)
psp-gcc -c psp_gu.c -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O1 -o psp_gu.o
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_font.o psp_font.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_battery.o psp_battery.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_kbd.o psp_kbd.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_menu.o psp_menu.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_danzeff.o psp_danzeff.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_menu_set.o psp_menu_set.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_menu_help.o psp_menu_help.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_menu_cheat.o psp_menu_cheat.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_menu_list.o psp_menu_list.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_menu_kbd.o psp_menu_kbd.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_menu_joy.o psp_menu_joy.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_editor.o psp_editor.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_irkeyb.o psp_irkeyb.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_fmgr.o psp_fmgr.c
psp_fmgr.c: In function 'psp_file_request':
psp_fmgr.c:493: warning: assignment makes pointer from integer without a cast
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_audio.o psp_audio.c
psp_audio.c: In function 'psp_audio_thread':
psp_audio.c:51: warning: assignment from incompatible pointer type
psp_audio.c:53: warning: assignment from incompatible pointer type
psp_audio.c: In function 'psp_cdaudio_thread':
psp_audio.c:70: warning: assignment from incompatible pointer type
psp_audio.c:72: warning: assignment from incompatible pointer type
psp_audio.c:74: warning: assignment from incompatible pointer type
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o mp3player.o mp3player.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_irda.o psp_irda.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o psp_joy.o psp_joy.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/psp/osd_psp_cd.o core/psp/osd_psp_cd.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/psp/osd_psp_mix.o core/psp/osd_psp_mix.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/psp/osd_psp_gfx.o core/psp/osd_psp_gfx.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/psp/osd_psp_snd.o core/psp/osd_psp_snd.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/psp/osd_psp_machine.o core/psp/osd_psp_machine.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -O2 -c -o core/psp/osd_psp_keyboard.o core/psp/osd_psp_keyboard.c
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/psp/include/SDL -Dmain=SDL_main -Icore -Icore/psp -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsingle-precision-constant -DPSP -DPSP_AUDIO -DPSPFW30X -DPSPHUGO_VERSION=\"1.3.1-fw5x\" -DUSE_IRDA_JOY -DUSE_PSP_IRKEYB -DNO_STDIO_REDIRECT -D_PSP_FW_VERSION=500 -L. -LC:/pspsdk/psp/sdk/lib -specs=C:/pspsdk/psp/sdk/lib/prxspecs -Wl,-q,-TC:/pspsdk/psp/sdk/lib/linkfile.prx core/cd.o core/dis.o core/edit_ram.o core/followop.o core/format.o core/gfx.o core/h6280.o core/hard_pce.o core/hugo.o core/list_rom.o core/lsmp3.o core/mix.o core/optable.o core/pce.o core/pcecd.o core/sound.o core/sprite.o core/utils.o core/hcd.o core/miniunz.o core/unzip.o core/bios.o core/cheat.o core/debug.o core/iniconfig.o core/bp.o Hugo.o psp_main.o psp_sdl.o psp_gu.o psp_font.o psp_battery.o psp_kbd.o psp_menu.o psp_danzeff.o psp_menu_set.o psp_menu_help.o psp_menu_cheat.o psp_menu_list.o psp_menu_kbd.o psp_menu_joy.o psp_editor.o psp_irkeyb.o psp_fmgr.o psp_audio.o mp3player.o psp_irda.o psp_joy.o core/psp/osd_psp_cd.o core/psp/osd_psp_mix.o core/psp/osd_psp_gfx.o core/psp/osd_psp_snd.o core/psp/osd_psp_machine.o core/psp/osd_psp_keyboard.o C:/pspsdk/psp/sdk/lib/prxexports.o -lpspirkeyb -lpsppower -lmad -lSDL_image -lSDL -lpng -ljpeg -lpspaudio -lpspgu -lpsphprm -lpspmp3 -lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o psphugo.elf
psp_fmgr.o: In function `psp_file_find_first':
psp_fmgr.c:(.text+0x4c): relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr__'
psp_fmgr.c:(.text+0x27c): relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr__'
psp_fmgr.o: In function `psp_file_request':
psp_fmgr.c:(.text+0x2504): relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr__'
psp_fmgr.c:(.text+0x2718): relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr__'
psp_fmgr.c:(.text+0x2930): relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr__'
psp_fmgr.c:(.text+0x2b40): relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr__'
make: *** [psphugo.elf] Error 1
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: выход из команды "make" с кодом 2.
1>Построение проекта "c:\documents and settings\USER\мои документы\visual studio 2010\Projects\PSPHugo\PSPHugo\PSPHugo.vcxproj" завершено (целевые объекты build) с ошибкой.

СБОЙ построения.

Затраченное время: 00:01:23.71

Vcardpsp
20.12.2011, 23:31
ErikPshat, Там в CFLAGS параметр -G0 есть?

ErikPshat
21.12.2011, 04:18
ErikPshat, Там в CFLAGS параметр -G0 есть?Хех, не было в оригинале. Поставил, скомпилилось )))
Но тут уже компиляция пошла совсем по другому этапу.

#
# HUGO port on PSP
#
TARGET = psphugo
PSPSDK = $(shell psp-config --pspsdk-path)
PSPBIN = $(shell psp-config --psp-prefix)/bin
SDL_CONFIG = $(PSPBIN)/sdl-config

PSP_OBJS = \
Hugo.o \
psp_main.o \
psp_sdl.o \
psp_gu.o \
psp_font.o \
psp_battery.o \
psp_kbd.o \
psp_menu.o \
psp_danzeff.o \
psp_menu_set.o \
psp_menu_help.o \
psp_menu_cheat.o \
psp_menu_list.o \
psp_menu_kbd.o \
psp_menu_joy.o \
psp_editor.o \
psp_irkeyb.o \
psp_fmgr.o \
psp_audio.o \
mp3player.o \
psp_irda.o \
psp_joy.o \
core/psp/osd_psp_cd.o \
core/psp/osd_psp_mix.o \
core/psp/osd_psp_gfx.o \
core/psp/osd_psp_snd.o \
core/psp/osd_psp_machine.o \
core/psp/osd_psp_keyboard.o \

EMU_OBJS= \
core/cd.o \
core/dis.o \
core/edit_ram.o \
core/followop.o \
core/format.o \
core/gfx.o \
core/h6280.o \
core/hard_pce.o \
core/hugo.o \
core/list_rom.o \
core/lsmp3.o \
core/mix.o \
core/optable.o \
core/pce.o \
core/pcecd.o \
core/sound.o \
core/sprite.o \
core/utils.o \
core/hcd.o \
core/miniunz.o \
core/unzip.o \
core/bios.o core/cheat.o core/debug.o core/iniconfig.o core/bp.o

OBJS= $(EMU_OBJS) $(PSP_OBJS)

DEFAULT_CFLAGS = $(shell $(SDL_CONFIG) --cflags)

PSP_FW_VERSION=500
PSPHUGO_VERSION=1.3.1-fw5x

# -fexpensive-optimizations

MORE_CFLAGS = -Icore -Icore/psp \
-funroll-loops -ffast-math -fomit-frame-pointer \
-fno-strength-reduce -finline-functions \
-fsingle-precision-constant \
-DPSP -DPSP_AUDIO \
-DPSPFW30X \
-DPSPHUGO_VERSION=\"$(PSPHUGO_VERSION)\" \
-DUSE_IRDA_JOY -DUSE_PSP_IRKEYB \
-DNO_STDIO_REDIRECT

OPTIM_CFLAGS= -O2

CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS)

LIBS += -lpspirkeyb -lpsppower -lmad -lSDL_image -lSDL -lpng -ljpeg -lpspaudio -lpspgu -lpsphprm -lpspmp3 -lz -lm

BUILD_PRX=1

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSPHUGO-v$(PSPHUGO_VERSION)
PSP_EBOOT_ICON = psphugo.png
PSP_EBOOT_SND0 = psphugo.at3
PSP_EBOOT_PIC1 = psphugo-pic.png

include $(PSPSDK)/lib/build.mak

all: EBOOT.PBP

.c.o:
$(CC) $(CFLAGS) $(OPTIM_CFLAGS) -c -o $@ $<

psp_gu.o : psp_gu.c
$(CC) -c $< $(CFLAGS) -O1 -o $@

core/h6280.o : core/h6280.c
$(CC) -c $< $(CFLAGS) -O3 -o $@

install: all
@mkdir -p /media/usbdisk/psp/game5XX/psphugo/
cp EBOOT.PBP /media/usbdisk/psp/game5XX/psphugo/


realclean:
/bin/rm -f $(OBJS) EBOOT.PBP PARAM.SFO

ctags :
ctags -R
Добавил в строку -G0 -Wall и пошло:

OPTIM_CFLAGS= -O2 -G0 -Wall

Vcardpsp, спасибо тебе! Прямо в точку, всё работает.

ErikPshat
21.12.2011, 06:46
прикрутить функцию вызова меню с кнопки SELECT на кнопку HOME, заюзав для этого homehoock.prx, как это сделано в эмуляторах от NJ, gpSP и Snes9x.Собственно, когда есть исходники, то нет необходимости использовать homehoock.prx.
Вопрос: куда девать кнопку HOME, т.е. чем выходить из игры?
И это, все функции вешать с SELECT на HOME? Там ведь SELECT используется ещё во многих местах по своему.

frostegater
21.12.2011, 07:06
Собственно, когда есть исходники, то нет необходимости использовать homehoock.prx.
Вопрос: куда девать кнопку HOME, т.е. чем выходить из игры?
И это, все функции вешать с SELECT на HOME, там ведь SELECT используется ещё во многих местах по своему.

читать код, разбираться.. ну или тупо подобрать))) кстати... незабудь убрать ExitCallback, а то будет меню выхода вылетать когда :home: нажимать будешь.

ErikPshat
21.12.2011, 07:11
Да это понятно. Вопрос был такой:
т.е. чем выходить из игры?

frostegater
21.12.2011, 08:06
ErikPshat, сделать в меню пункт 'Exit', если его там ещё нет.

ErikPshat
21.12.2011, 08:20
Frostegater, хорошая идея, такой пункт 'Exit' есть при вызове меню из игры. Думаю этого будет достаточно.

А вот думаю, все ресурсы что-ли перемещать с SELECT на HOME?
Эта кнопка используется во многих местах - в клавиатуре, в едиторе, в файлменеджере, в IR Keyboard, в KBD, в меню, в читах, в помощи и т.д.

http://img12.**************/img12/4918/selectt.png

frostegater
21.12.2011, 09:26
ErikPshat, функцию вызова меню с кнопки SELECT на кнопку HOME

Yoti
21.12.2011, 18:21
параметр -G0
Что он делает?

lupus
12.01.2012, 21:48
а где ж ссылка на закачку? :)