|
|
#21 |
|
Member
![]() Join Date: Jun 2011
Posts: 96
Likes: 43
Liked 14 Times in 12 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
|
I'm trying to make an homebrew with PSl1GHT but i get an error..
This is what i do: create the "main.c": Code:
#include <C:\ps3dev\psl1ght\ppu\include\lv2\process.h>
#include <C:\ps3dev\ppu\ppu\include\sys\string.h>
int main(void){
sysProcessExitSpawn2( "/dev_usb000/file.self", NULL, NULL, NULL, 0, 1001, SYS_PROCESS_SPAWN_STACK_SIZE_1M );
return 0;
}
Code:
ppu-cpp main.c main.cpp Code:
# 1 "main.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "main.c"
# 1 "C:\\ps3dev\\psl1ght\\ppu\\include\\lv2\\process.h" 1
# 1 "C:\\ps3dev\\psl1ght\\ppu\\include\\ppu-types.h" 1
# 1 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 1 3
# 45 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef signed char int8_t ;
typedef unsigned char uint8_t ;
typedef signed char int_least8_t;
typedef unsigned char uint_least8_t;
typedef signed short int16_t;
typedef unsigned short uint16_t;
# 71 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef int16_t int_least16_t;
typedef uint16_t uint_least16_t;
# 87 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef signed int int32_t;
typedef unsigned int uint32_t;
# 101 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef int32_t int_least32_t;
typedef uint32_t uint_least32_t;
# 119 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef signed long int64_t;
typedef unsigned long uint64_t;
# 133 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef int64_t int_least64_t;
typedef uint64_t uint_least64_t;
# 163 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef signed int int_fast8_t;
typedef unsigned int uint_fast8_t;
typedef signed int int_fast16_t;
typedef unsigned int uint_fast16_t;
typedef signed int int_fast32_t;
typedef unsigned int uint_fast32_t;
# 217 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef int_least64_t int_fast64_t;
typedef uint_least64_t uint_fast64_t;
typedef long int intmax_t;
# 235 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef long unsigned int uintmax_t;
# 247 "/../../../../.././ps3dev/ppu/ppu/include/stdint.h" 3
typedef signed long int intptr_t;
typedef unsigned long int uintptr_t;
# 5 "C:\\ps3dev\\psl1ght\\ppu\\include\\ppu-types.h" 2
# 1 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/stdbool.h" 1 3 4
# 6 "C:\\ps3dev\\psl1ght\\ppu\\include\\ppu-types.h" 2
# 1 "/../../../../.././ps3dev/ppu/ppu/include/stdlib.h" 1 3
# 10 "/../../../../.././ps3dev/ppu/ppu/include/stdlib.h" 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/_ansi.h" 1 3
# 15 "/../../../../.././ps3dev/ppu/ppu/include/_ansi.h" 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/newlib.h" 1 3
# 16 "/../../../../.././ps3dev/ppu/ppu/include/_ansi.h" 2 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/sys/config.h" 1 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/machine/ieeefp.h" 1 3
# 5 "/../../../../.././ps3dev/ppu/ppu/include/sys/config.h" 2 3
# 17 "/../../../../.././ps3dev/ppu/ppu/include/_ansi.h" 2 3
# 11 "/../../../../.././ps3dev/ppu/ppu/include/stdlib.h" 2 3
# 1 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/stddef.h" 1 3 4
# 214 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/stddef.h" 3 4
typedef long unsigned int size_t;
# 326 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/stddef.h" 3 4
typedef int wchar_t;
# 15 "/../../../../.././ps3dev/ppu/ppu/include/stdlib.h" 2 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 1 3
# 13 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/_ansi.h" 1 3
# 14 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 2 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/sys/_types.h" 1 3
# 12 "/../../../../.././ps3dev/ppu/ppu/include/sys/_types.h" 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/sys/lock.h" 1 3
typedef struct __libc_lock_s
{
void *lock;
}
__libc_lock_t;
typedef struct __libc_lock_recursive_s
{
void *lock;
}
__libc_lock_recursive_t;
int __libc_lock_init(__libc_lock_t *lock);
int __libc_lock_init_recursive(__libc_lock_recursive_t *lock);
int __libc_lock_close(__libc_lock_t *lock);
int __libc_lock_close_recursive(__libc_lock_recursive_t *lock);
int __libc_lock_acquire(__libc_lock_t *lock);
int __libc_lock_acquire_recursive(__libc_lock_recursive_t *lock);
int __libc_lock_try_acquire(__libc_lock_t *lock);
int __libc_lock_try_acquire_recursive(__libc_lock_recursive_t *lock);
int __libc_lock_release(__libc_lock_t *lock);
int __libc_lock_release_recursive(__libc_lock_recursive_t *lock);
typedef __libc_lock_t _LOCK_T;
typedef __libc_lock_recursive_t _LOCK_RECURSIVE_T;
# 13 "/../../../../.././ps3dev/ppu/ppu/include/sys/_types.h" 2 3
typedef long _off_t;
__extension__ typedef long long _off64_t;
typedef int _ssize_t;
# 1 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/stddef.h" 1 3 4
# 355 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/stddef.h" 3 4
typedef unsigned int wint_t;
# 25 "/../../../../.././ps3dev/ppu/ppu/include/sys/_types.h" 2 3
typedef struct
{
int __count;
union
{
wint_t __wch;
unsigned char __wchb[4];
} __value;
} _mbstate_t;
typedef _LOCK_RECURSIVE_T _flock_t;
typedef void *_iconv_t;
# 15 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 2 3
# 24 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
typedef unsigned int __ULong;
# 42 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
struct _Bigint
{
struct _Bigint *_next;
int _k, _maxwds, _sign, _wds;
__ULong _x[1];
};
struct __tm
{
int __tm_sec;
int __tm_min;
int __tm_hour;
int __tm_mday;
int __tm_mon;
int __tm_year;
int __tm_wday;
int __tm_yday;
int __tm_isdst;
};
struct _on_exit_args {
void * _fnargs[32];
void * _dso_handle[32];
__ULong _fntypes;
__ULong _is_cxa;
};
# 87 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
struct _atexit {
struct _atexit *_next;
int _ind;
void (*_fns[32])(void);
struct _on_exit_args _on_exit_args;
};
# 103 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
struct __sbuf {
unsigned char *_base;
int _size;
};
typedef long _fpos_t;
# 168 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
struct __sFILE {
unsigned char *_p;
int _r;
int _w;
short _flags;
short _file;
struct __sbuf _bf;
int _lbfsize;
void * _cookie;
int (*_read) (void * _cookie, char *_buf, int _n);
int (*_write) (void * _cookie, const char *_buf, int _n);
_fpos_t (*_seek) (void * _cookie, _fpos_t _offset, int _whence);
int (*_close) (void * _cookie);
struct __sbuf _ub;
unsigned char *_up;
int _ur;
unsigned char _ubuf[3];
unsigned char _nbuf[1];
struct __sbuf _lb;
int _blksize;
int _offset;
struct _reent *_data;
_flock_t _lock;
};
# 261 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
typedef struct __sFILE __FILE;
struct _glue
{
struct _glue *_next;
int _niobs;
__FILE *_iobs;
};
# 292 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
struct _rand48 {
unsigned short _seed[3];
unsigned short _mult[3];
unsigned short _add;
};
# 561 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
struct _reent
{
int _errno;
__FILE *_stdin, *_stdout, *_stderr;
int _inc;
char _emergency[25];
int _current_category;
const char *_current_locale;
int __sdidinit;
void (*__cleanup) (struct _reent *);
struct _Bigint *_result;
int _result_k;
struct _Bigint *_p5s;
struct _Bigint **_freelist;
int _cvtlen;
char *_cvtbuf;
union
{
struct
{
unsigned int _unused_rand;
char * _strtok_last;
char _asctime_buf[26];
struct __tm _localtime_buf;
int _gamma_signgam;
__extension__ unsigned long long _rand_next;
struct _rand48 _r48;
_mbstate_t _mblen_state;
_mbstate_t _mbtowc_state;
_mbstate_t _wctomb_state;
char _l64a_buf[8];
char _signal_buf[24];
int _getdate_err;
_mbstate_t _mbrlen_state;
_mbstate_t _mbrtowc_state;
_mbstate_t _mbsrtowcs_state;
_mbstate_t _wcrtomb_state;
_mbstate_t _wcsrtombs_state;
} _reent;
struct
{
unsigned char * _nextf[30];
unsigned int _nmalloc[30];
} _unused;
} _new;
struct _atexit *_atexit;
struct _atexit _atexit0;
void (**(_sig_func))(int);
struct _glue __sglue;
__FILE __sf[3];
};
# 793 "/../../../../.././ps3dev/ppu/ppu/include/sys/reent.h" 3
extern struct _reent *_impure_ptr ;
extern struct _reent *const _global_impure_ptr ;
void _reclaim_reent (struct _reent *);
# 17 "/../../../../.././ps3dev/ppu/ppu/include/stdlib.h" 2 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/machine/stdlib.h" 1 3
# 18 "/../../../../.././ps3dev/ppu/ppu/include/stdlib.h" 2 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/alloca.h" 1 3
# 20 "/../../../../.././ps3dev/ppu/ppu/include/stdlib.h" 2 3
typedef struct
{
int quot;
int rem;
} div_t;
typedef struct
{
long quot;
long rem;
} ldiv_t;
typedef struct
{
long long int quot;
long long int rem;
} lldiv_t;
# 57 "/../../../../.././ps3dev/ppu/ppu/include/stdlib.h" 3
extern int __mb_cur_max;
void abort (void) __attribute__ ((noreturn));
int abs (int);
int atexit (void (*__func)(void));
double atof (const char *__nptr);
float atoff (const char *__nptr);
int atoi (const char *__nptr);
int _atoi_r (struct _reent *, const char *__nptr);
long atol (const char *__nptr);
long _atol_r (struct _reent *, const char *__nptr);
void * bsearch (const void * __key, const void * __base, size_t __nmemb, size_t __size, int (* _compar) (const void *, const void *));
void * calloc (size_t __nmemb, size_t __size);
div_t div (int __numer, int __denom);
void exit (int __status) __attribute__ ((noreturn));
void free (void *);
char * getenv (const char *__string);
char * _getenv_r (struct _reent *, const char *__string);
char * _findenv (const char *, int *);
char * _findenv_r (struct _reent *, const char *, int *);
long labs (long);
ldiv_t ldiv (long __numer, long __denom);
void * malloc (size_t __size);
int mblen (const char *, size_t);
int _mblen_r (struct _reent *, const char *, size_t, _mbstate_t *);
int mbtowc (wchar_t *, const char *, size_t);
int _mbtowc_r (struct _reent *, wchar_t *, const char *, size_t, _mbstate_t *);
int wctomb (char *, wchar_t);
int _wctomb_r (struct _reent *, char *, wchar_t, _mbstate_t *);
size_t mbstowcs (wchar_t *, const char *, size_t);
size_t _mbstowcs_r (struct _reent *, wchar_t *, const char *, size_t, _mbstate_t *);
size_t wcstombs (char *, const wchar_t *, size_t);
size_t _wcstombs_r (struct _reent *, char *, const wchar_t *, size_t, _mbstate_t *);
int mkstemp (char *);
char * mktemp (char *);
void qsort (void * __base, size_t __nmemb, size_t __size, int(*_compar)(const void *, const void *));
int rand (void);
void * realloc (void * __r, size_t __size);
void srand (unsigned __seed);
double strtod (const char *__n, char **__end_PTR);
double _strtod_r (struct _reent *,const char *__n, char **__end_PTR);
float strtof (const char *__n, char **__end_PTR);
long strtol (const char *__n, char **__end_PTR, int __base);
long _strtol_r (struct _reent *,const char *__n, char **__end_PTR, int __base);
unsigned long strtoul (const char *__n, char **__end_PTR, int __base);
unsigned long _strtoul_r (struct _reent *,const char *__n, char **__end_PTR, int __base);
int system (const char *__string);
long a64l (const char *__input);
char * l64a (long __input);
char * _l64a_r (struct _reent *,long __input);
int on_exit (void (*__func)(int, void *),void * __arg);
void _Exit (int __status) __attribute__ ((noreturn));
int putenv (char *__string);
int _putenv_r (struct _reent *, char *__string);
int setenv (const char *__string, const char *__value, int __overwrite);
int _setenv_r (struct _reent *, const char *__string, const char *__value, int __overwrite);
char * gcvt (double,int,char *);
char * gcvtf (float,int,char *);
char * fcvt (double,int,int *,int *);
char * fcvtf (float,int,int *,int *);
char * ecvt (double,int,int *,int *);
char * ecvtbuf (double, int, int*, int*, char *);
char * fcvtbuf (double, int, int*, int*, char *);
char * ecvtf (float,int,int *,int *);
char * dtoa (double, int, int, int *, int*, char**);
int rand_r (unsigned *__seed);
double drand48 (void);
double _drand48_r (struct _reent *);
double erand48 (unsigned short [3]);
double _erand48_r (struct _reent *, unsigned short [3]);
long jrand48 (unsigned short [3]);
long _jrand48_r (struct _reent *, unsigned short [3]);
void lcong48 (unsigned short [7]);
void _lcong48_r (struct _reent *, unsigned short [7]);
long lrand48 (void);
long _lrand48_r (struct _reent *);
long mrand48 (void);
long _mrand48_r (struct _reent *);
long nrand48 (unsigned short [3]);
long _nrand48_r (struct _reent *, unsigned short [3]);
unsigned short *
seed48 (unsigned short [3]);
unsigned short *
_seed48_r (struct _reent *, unsigned short [3]);
void srand48 (long);
void _srand48_r (struct _reent *, long);
long long atoll (const char *__nptr);
long long _atoll_r (struct _reent *, const char *__nptr);
long long llabs (long long);
lldiv_t lldiv (long long __numer, long long __denom);
long long strtoll (const char *__n, char **__end_PTR, int __base);
long long _strtoll_r (struct _reent *, const char *__n, char **__end_PTR, int __base);
unsigned long long strtoull (const char *__n, char **__end_PTR, int __base);
unsigned long long _strtoull_r (struct _reent *, const char *__n, char **__end_PTR, int __base);
void cfree (void *);
void unsetenv (const char *__string);
void _unsetenv_r (struct _reent *, const char *__string);
char * _dtoa_r (struct _reent *, double, int, int, int *, int*, char**);
void * _malloc_r (struct _reent *, size_t);
void * _calloc_r (struct _reent *, size_t, size_t);
void _free_r (struct _reent *, void *);
void * _realloc_r (struct _reent *, void *, size_t);
void _mstats_r (struct _reent *, char *);
int _system_r (struct _reent *, const char *);
void __eprintf (const char *, const char *, unsigned int, const char *);
# 7 "C:\\ps3dev\\psl1ght\\ppu\\include\\ppu-types.h" 2
# 1 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 1 3
# 25 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/machine/_types.h" 1 3
# 22 "/../../../../.././ps3dev/ppu/ppu/include/machine/_types.h" 3
# 1 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/limits.h" 1 3 4
# 23 "/../../../../.././ps3dev/ppu/ppu/include/machine/_types.h" 2 3
typedef signed char __int8_t ;
typedef unsigned char __uint8_t ;
# 36 "/../../../../.././ps3dev/ppu/ppu/include/machine/_types.h" 3
typedef signed short __int16_t;
typedef unsigned short __uint16_t;
# 46 "/../../../../.././ps3dev/ppu/ppu/include/machine/_types.h" 3
typedef __int16_t __int_least16_t;
typedef __uint16_t __uint_least16_t;
# 58 "/../../../../.././ps3dev/ppu/ppu/include/machine/_types.h" 3
typedef signed int __int32_t;
typedef unsigned int __uint32_t;
# 76 "/../../../../.././ps3dev/ppu/ppu/include/machine/_types.h" 3
typedef __int32_t __int_least32_t;
typedef __uint32_t __uint_least32_t;
# 93 "/../../../../.././ps3dev/ppu/ppu/include/machine/_types.h" 3
typedef signed long __int64_t;
typedef unsigned long __uint64_t;
# 26 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 2 3
# 69 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 3
# 1 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/stddef.h" 1 3 4
# 152 "c:/ps3dev/ppu/bin/../lib/gcc/ppu/4.2.0/include/stddef.h" 3 4
typedef long int ptrdiff_t;
# 70 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 2 3
# 1 "/../../../../.././ps3dev/ppu/ppu/include/machine/types.h" 1 3
# 19 "/../../../../.././ps3dev/ppu/ppu/include/machine/types.h" 3
typedef long int __off_t;
typedef int __pid_t;
__extension__ typedef long long int __loff_t;
# 71 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 2 3
# 92 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 3
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long clock_t;
typedef long time_t;
struct timespec {
time_t tv_sec;
long tv_nsec;
};
struct itimerspec {
struct timespec it_interval;
struct timespec it_value;
};
typedef long daddr_t;
typedef char * caddr_t;
typedef unsigned short ino_t;
# 166 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 3
typedef short dev_t;
typedef long off_t;
typedef unsigned short uid_t;
typedef unsigned short gid_t;
typedef int pid_t;
typedef long key_t;
typedef _ssize_t ssize_t;
# 195 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 3
typedef unsigned int mode_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned short nlink_t;
# 222 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 3
typedef long fd_mask;
typedef struct _types_fd_set {
fd_mask fds_bits[(((64)+(((sizeof (fd_mask) * 8))-1))/((sizeof (fd_mask) * 8)))];
} _types_fd_set;
# 253 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 3
typedef unsigned long clockid_t;
typedef unsigned long timer_t;
typedef unsigned long useconds_t;
typedef long suseconds_t;
# 1 "/../../../../.././ps3dev/ppu/ppu/include/sys/features.h" 1 3
# 266 "/../../../../.././ps3dev/ppu/ppu/include/sys/types.h" 2 3
# 8 "C:\\ps3dev\\psl1ght\\ppu\\include\\ppu-types.h" 2
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
typedef volatile u8 vu8;
typedef volatile u16 vu16;
typedef volatile u32 vu32;
typedef volatile u64 vu64;
typedef volatile s8 vs8;
typedef volatile s16 vs16;
typedef volatile s32 vs32;
typedef volatile s64 vs64;
typedef float f32;
typedef double f64;
typedef volatile f32 vf32;
typedef volatile f64 vf64;
typedef u32 sys_pid_t;
typedef u32 sys_program_segment_t;
typedef u32 sys_overlay_t;
typedef u32 sys_addr_t;
typedef u32 sys_mem_id_t;
typedef u32 sys_mem_addr_t;
typedef u32 sys_mem_container_t;
typedef u32 sys_raw_spu_t;
typedef u32 sys_spu_group_t;
typedef u32 sys_spu_thread_t;
typedef s64 system_time_t;
typedef u64 sys_ppu_thread_t;
typedef u64 sys_ppu_thread_icontext_t;
typedef u32 sys_interrupt_tag_t;
typedef u64 sys_irqoutlet_id_t;
typedef u32 sys_hw_thread_t;
typedef u32 sys_interrupt_thread_handle_t;
typedef u32 sys_interrupt_handler_handle_t;
typedef u32 sys_cond_t;
typedef s32 sys_mutex_t;
typedef u32 sys_event_queue_t;
typedef u32 sys_event_port_t;
typedef u64 sys_ipc_key_t;
typedef u32 sys_sem_t;
typedef struct _opd64
{
void *func;
void *rtoc;
u64 zero;
} opd64;
typedef struct _opd32
{
u32 func;
u32 rtoc;
} opd32;
typedef union _ieee32
{
u32 u;
f32 f;
} ieee32;
# 9 "C:\\ps3dev\\psl1ght\\ppu\\include\\lv2\\process.h" 2
# 19 "C:\\ps3dev\\psl1ght\\ppu\\include\\lv2\\process.h"
void sysProcessExit(int status) __attribute__((noreturn));
# 40 "C:\\ps3dev\\psl1ght\\ppu\\include\\lv2\\process.h"
void sysProcessExitSpawn2(const char *path,const char *argv[],const char *envp[],void *data,size_t size,int priority,u64 flags);
# 2 "main.c" 2
# 1 "C:\\ps3dev\\ppu\\ppu\\include\\sys\\string.h" 1
# 3 "main.c" 2
int main(void){
sysProcessExitSpawn2( "/dev_usb000/file.self", ((void *)0), ((void *)0), ((void *)0), 0, 1001, SYS_PROCESS_SPAWN_STACK_SIZE_1M );
return 0;
}
Code:
TARGET = test FINAL_TARGET = test.elf OBJS = main.o INCDIR = CFLAGS = -O2 -G0 -Wall CXXFLAGS = $(CFLAGS) ASFLAGS = $(CFLAGS) LIBDIR = LDFLAGS = PS3SDK=$(PS3DEV)/ps3sdk include $(PS3SDK)/build.mak ![]() Does anyone know how to solve this? i take the info from this page on psxbrew wiki (suggested by zecoxao). Thanks and sorry for my english. |
|
|
|
|
|
#23 | ||
|
Homebrew Developer
![]() Join Date: Oct 2011
Location: dev_hdd0/home/
Posts: 498
Likes: 239
Liked 502 Times in 211 Posts
Mentioned: 100 Post(s)
Tagged: 0 Thread(s)
|
His structure is documented here ---> http://www.ps3devwiki.com/wiki/PARAM..._Disc_contents *Is the last structure of the list, i hope this helps |
||
|
|
|
|
|
#24 |
|
Homebrew Developer
![]() Join Date: Oct 2011
Location: dev_hdd0/home/
Posts: 498
Likes: 239
Liked 502 Times in 211 Posts
Mentioned: 100 Post(s)
Tagged: 0 Thread(s)
|
Ohh btw... there is another 2 types of "selector"
One is used in games that are "ps2 remastered collections in blu-ray" like "god of war HD collection" 1 & 2.... or "ico + shadow of the colosus" This ones uses a main menu (the eboot.bin).. where you see the titles of each game (each game points to an .self)... when you select the game in the main menu you are "jumping" to this .self and the real game boots (usually there is no way to return back to the main selector menu) ------------ The other type i think is very similar... is used in games like "call of duty black ops" The main menu (the room where you are tied to a chair) is the EBOOT.BIN... in this room if you click "zombie mode" the rooms changes to a bloody red atmosphere (it seems to be the same room, but is not... actually you have "jumped" to a .self) The 3 menues are together (1 eboot.bin + 2 .self's).... normal game, zombie mode, online Last edited by sandungas; 08-22-2012 at 06:01 PM. |
|
|
|
|
|
#25 | ||
|
Homebrew Developer
![]() Join Date: Feb 2010
Posts: 1,070
Likes: 578
Liked 613 Times in 304 Posts
Mentioned: 76 Post(s)
Tagged: 0 Thread(s)
|
__________________
Last edited by samson; 08-23-2012 at 05:17 AM. |
||
|
|
|
|
|
#26 | |
|
Member
![]() |
you need to include the header that contains the definition of SYS_PROCESS_SPAWN_STACK_SIZE_1M oh, and.. use this: Code:
#include "C:\ps3dev\psl1ght\ppu\include\lv2\process.h" #include "C:\ps3dev\ppu\ppu\include\sys\string.h"
__________________
PlayStation 3 (CECH-3004A) - OFW 4.25 (160gb)
XBox 360 - Lite-On DG-16D5S - LT Ultimate 1.2 Fixes|MinFWChecker|Emulators Last edited by Goldeneye; 08-23-2012 at 05:22 AM. |
|
|
|
|
|
Likes: (1) |
|
|
#27 | ||
|
Member
![]() Join Date: Aug 2007
Location: Portugal
Posts: 587
Likes: 527
Liked 208 Times in 135 Posts
Mentioned: 19 Post(s)
Tagged: 0 Thread(s)
|
Ya, the demo disc I have is probably using one of these selectors. probably the 1st. one eboot.bin and then self files to launch the demos. You have the menu where you can select the demo or video to watch. you can watch the videos and get back to the main menu but once you launch a demo(self) then you have to quit the disc. to play a different demo you have to restart the demo disc. I only have 1 or 2 demo discs like this and then Sony changed the demo discs to pkg installers. These discs were cool when I was still om fW 1.5 because I could use the old resistance/F1 trick to play demos that required FW higher than 1.5 That ended once they switched to pkgs. heres a screen of the disc ![]() Uploaded with ImageShack.us
__________________
PS3 EU 60gb CFW DEX 4.30, PS3 EU 60gb 4.30 Rebug
Last edited by aries2k; 08-23-2012 at 06:28 PM. |
||
|
|
|
|
Likes: (3) |
|
|
#28 | |
|
Homebrew Developer
![]() Join Date: Oct 2011
Location: dev_hdd0/home/
Posts: 498
Likes: 239
Liked 502 Times in 211 Posts
Mentioned: 100 Post(s)
Tagged: 0 Thread(s)
|
But now that i see your screen capture you are making me think if is using a "not documented" structure Is long to explain, but basically... in 1 disc you can only have 1 executable (the selector) The selector boots simply because is in a reserved path (PS3_GAME/USRDIR) and has a reserved name (EBOOT.BIN)... and one flag in PS3DISC.FSB, but this flag is mandatory I think the selector can boot a self for any path... but is a bit weird you have a folder named BLES00072 This is not standard at all... in fact... this TITLE_ID means is a disc (BLES00072) inside otrer disc (BCED00084) *The "S" means is a blu-ray disc game... and the "D" means a blu-ray disc demo It can be simply because the EBOOT.BIN has this path hardcoded (pointing to the other .self inside BLES00072)... or maybe is working in combination with other "features" (usually managed with flags inside PARAM.SFO's) --------------- I cant say too much about it, but in few words... it can be usefull if you take more screencaptures of other folder contents... maybe we can find something new for the wiki ![]() -one of the BCED00084 folder <---- i would like to see if there is a complete disc structure inside it -one of the PS3_GAME folder <---- just to verify all is correct and there is no other "rare" folders Also... if you make a copy of all the PARAM.SFO's and send it to me (use a private message if you want) i can talk a bit more about if, im very used to PARAM.SFO's and disc structures, i will recognize if there is "rare" flags or structures in few minutes Last edited by sandungas; 08-23-2012 at 08:19 PM. |
|
|
|
|
|
Likes: (2) |
|
|
#29 | |
|
Member
![]() Join Date: Aug 2007
Location: Portugal
Posts: 587
Likes: 527
Liked 208 Times in 135 Posts
Mentioned: 19 Post(s)
Tagged: 0 Thread(s)
|
heres a shot of the PS3_Game folder ![]() Uploaded with ImageShack.us did you mean the BLES00072 folder? ![]() Uploaded with ImageShack.us The BCED folder just has the PS3_GAME, PS3_UPDATE folders and the PS3Disc.sfb file Hereīs something interesting. BLES00072 is ninja gaiden. although thereīs an NGSBS.SELF file in the USR directory theres also an ELF file in the BLES00072. the NGSBS.SELF is only 256kb. the NPEA90011 has the Ridge RACER7 data but I canīt find any self or elf to launch it.? Iīve had this disc since I 1st got my ps3. I always thought it was interesting but Iīm no DEV so if you can get anything useful from this great. and if something new gets added to the WiKi I can feel like I helped the ps3 scene in a very tiny, tiny way, lol
__________________
PS3 EU 60gb CFW DEX 4.30, PS3 EU 60gb 4.30 Rebug
Last edited by aries2k; 08-23-2012 at 09:19 PM. |
|
|
|
|
|
Likes: (2) |
|
|
#30 | |
|
Homebrew Developer
![]() Join Date: Oct 2011
Location: dev_hdd0/home/
Posts: 498
Likes: 239
Liked 502 Times in 211 Posts
Mentioned: 100 Post(s)
Tagged: 0 Thread(s)
|
Ok, this is how the disc is loaded by the PS3 (in few words... is a "normal disc" with no special features... but i will explain a bit more because i know there is people interested in it like ada)
The first file loaded is PS3_DISC.SFB... it contains the TITLE_ID (BCED00084) and 2 flags (at offset 0x200) "g" = game = activates the path PS3_GAME\USRDIR\PARAM.SFO & PS3_GAME/USRDIR/EBOOT.BIN (this flag is mandatory for a bootable game) "u"- activates the folder PS3_UPDATE\UPDATE.PUP *i thought maybe the disc was using "rare" flag here, but are not The second file loaded is PARAM.SFO... inside his ATTRIBUTE can be activated more features with "flags"... but is filled with zeroes There is nothing more interesting inside the PARAM.SFO So basically... is a "normal" disc... there is nothing speciall in his structure All i can say is all the "magic" is done by the EBOOT.BIN and the .SELF's
So you have the selector that is loaded by default (EBOOT.BIN)... and points to 2 .SELF's: NGSBS.SELF ----> BLES00072 folder MSDEMO.SELF --> NPEA90011 folder The other folders inside USRDIR (audio, content, fonts, gfx, gui, sfx, shaders) seems to be common so probably are the "resources" for the selector (EBOOT.BIN), and i bet the paths to the BLES00072 & NPEA90011 are hardcoded inside it So basically... if you remove the folders BLES00072 & NPEA90011 the selector will work normally (obviously it will crash it you try to launch any of this games) If you want to keep a copy of this backup i suggest to do this, its the minimal structure to work with ------------------ Btw... the move demo disc TITLE_ID i have keeps the same naming (BCED01063) than yours (BCED00084)... both are the same media, the same license, same region, and same type. This names are assigned chronologically, this means there are around 1000 discs of this type for europe (probably some numbers was reserved and never used... maybe not 1000 but at least some hundreds)... so the only explain i see is they keeped manufacturing this type of discs for some magazine (1000 are a lot, and move demo disc is like 2 years old... maybe now they are around 15000... and this is only in region europe) Last edited by sandungas; 08-24-2012 at 10:56 AM. |
|
|
|
|
|
Likes: (1) |
![]() |
| Bookmarks |
| Thread Tools | |
|
|