mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 23:58:04 -04:00
First PS2 compilation
This commit is contained in:
parent
089f516d6c
commit
cb77495873
5 changed files with 177 additions and 1 deletions
27
platform/ps2/Makefile
Normal file
27
platform/ps2/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
# ----------- release -----------
|
||||
ifneq ($(findstring rel,$(MAKECMDGOALS)),)
|
||||
ifeq ($(VER),)
|
||||
$(error need VER)
|
||||
endif
|
||||
endif
|
||||
|
||||
../../tools/textfilter: ../../tools/textfilter.c
|
||||
make -C ../../tools/ textfilter
|
||||
|
||||
readme.txt: ../../tools/textfilter ../base_readme.txt ../../ChangeLog
|
||||
../../tools/textfilter ../base_readme.txt $@ PS2
|
||||
|
||||
# ?
|
||||
rel: ../../PicoDrive readme.txt ../game_def.cfg
|
||||
mkdir -p PicoDrive/skin/
|
||||
cp $^ PicoDrive/
|
||||
cp ../../skin/* PicoDrive/skin/
|
||||
zip -9 -r ../../PicoDrive_ps2_$(VER).zip PicoDrive
|
||||
rm -rf PicoDrive
|
||||
mkdir bin_to_cso_mp3
|
||||
cp ../../tools/bin_to_cso_mp3/* bin_to_cso_mp3/
|
||||
zip -9 -r ../../PicoDrive_ps2_$(VER).zip bin_to_cso_mp3
|
||||
rm -rf bin_to_cso_mp3
|
||||
|
||||
|
108
platform/ps2/plat.c
Normal file
108
platform/ps2/plat.c
Normal file
|
@ -0,0 +1,108 @@
|
|||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "../libpicofe/plat.h"
|
||||
|
||||
const char *renderer_names[] = { "Software", "Hardware" };
|
||||
const char *renderer_names32x[] = { "Software", "Hardware", "Hardware (fast)" };
|
||||
|
||||
struct plat_target plat_target = {};
|
||||
|
||||
int plat_parse_arg(int argc, char *argv[], int *x) { return 1; }
|
||||
|
||||
void plat_early_init(void) {}
|
||||
|
||||
int plat_target_init(void) { return 0; }
|
||||
|
||||
void plat_init(void) {}
|
||||
|
||||
void plat_video_menu_enter(int is_rom_loaded) {}
|
||||
|
||||
void plat_video_menu_leave(void) {}
|
||||
|
||||
void plat_finish(void) {}
|
||||
|
||||
void plat_target_finish(void) {}
|
||||
|
||||
void plat_video_menu_begin(void) {}
|
||||
|
||||
void plat_video_menu_end(void) {}
|
||||
|
||||
int plat_get_root_dir(char *dst, int len) { return 0; }
|
||||
|
||||
|
||||
unsigned int plat_get_ticks_ms(void) { return 0; }
|
||||
|
||||
unsigned int plat_get_ticks_us(void) { return 0; }
|
||||
|
||||
void plat_sleep_ms(int ms) {}
|
||||
|
||||
void plat_video_toggle_renderer(int change, int menu_call) {}
|
||||
|
||||
void plat_update_volume(int has_changed, int is_up) {}
|
||||
|
||||
int plat_is_dir(const char *path) { return 0; }
|
||||
|
||||
void plat_status_msg_busy_first(const char *msg) {}
|
||||
|
||||
void pemu_prep_defconfig(void) {}
|
||||
|
||||
void pemu_validate_config(void) {}
|
||||
|
||||
void plat_status_msg_clear(void) {}
|
||||
|
||||
void plat_status_msg_busy_next(const char *msg) {}
|
||||
|
||||
void plat_video_loop_prepare(void) {}
|
||||
|
||||
int plat_get_data_dir(char *dst, int len) { return 0; }
|
||||
|
||||
void plat_video_flip(void) {}
|
||||
|
||||
void plat_video_wait_vsync(void) {}
|
||||
|
||||
void plat_wait_till_us(unsigned int us) {}
|
||||
|
||||
int plat_get_skin_dir(char *dst, int len) { return 0; }
|
||||
|
||||
void plat_debug_cat(char *str) {}
|
||||
|
||||
int plat_wait_event(int *fds_hnds, int count, int timeout_ms) { return 0; }
|
||||
|
||||
void pemu_loop_prep(void) {}
|
||||
|
||||
void pemu_sound_start(void) {}
|
||||
|
||||
void pemu_loop_end(void) {}
|
||||
|
||||
void *plat_mem_get_for_drc(size_t size) { return NULL; }
|
||||
|
||||
void *plat_mmap(unsigned long addr, size_t size, int need_exec, int is_fixed) { return NULL; }
|
||||
|
||||
void *plat_mremap(void *ptr, size_t oldsize, size_t newsize) { return NULL; }
|
||||
|
||||
void plat_munmap(void *ptr, size_t size) {}
|
||||
|
||||
int plat_mem_set_exec(void *ptr, size_t size) { return 0; }
|
||||
|
||||
void emu_video_mode_change(int start_line, int line_count, int start_col, int col_count) {}
|
||||
|
||||
void pemu_forced_frame(int no_scale, int do_emu) {}
|
||||
|
||||
void pemu_finalize_frame(const char *fps, const char *notice_msg) {}
|
||||
|
||||
int _flush_cache (char *addr, const int size, const int op) { return 0; }
|
||||
|
||||
/* lprintf */
|
||||
void lprintf(const char *fmt, ...)
|
||||
{
|
||||
va_list vl;
|
||||
|
||||
va_start(vl, fmt);
|
||||
#if defined(LOG_TO_FILE)
|
||||
vfprintf(logFile, fmt, vl);
|
||||
#else
|
||||
vprintf(fmt, vl);
|
||||
#endif
|
||||
va_end(vl);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue