myPS2 1.2 + some ps2 libs (02-26-2006)
I have spent the last couple of weeks porting libsmb from SAMBA
to the PS2 and integrating it into myPS2.
See the myPS2 Readme.html file in /docs/ for instructions how to
access Windows network shares from myPS2.
-fonts now use a 4-bit CLUT
-timezone can now be configured
-rewrote directory browsing for "My Pictures" menu
-hdd partitions now show up in the menu with their
names instead of mountpoints
I have also put up libps2time, a small ee time library that implements
most of the c standard library time functions.
This is a ps2 port of the libsmb library of the SAMBA
Instructions how to build the library with PS2SDK can be found in the
README.ps2 file. The port requires the libps2time library.
An example program can be found under /examples/ps2smbtest/.
The library provides the following functions additionally to the libsmbclient
void ps2_smb_setInterface( char* ip, char* subnet )
Sets the ethernet interface
void ps2_smb_getInterface( char *ip, char *subnet )
Retrieves the ethernet interface settings
void ps2_smb_setWorkgroup( char *workgroup )
Sets the SMB Workgroup
void ps2_smb_setLogCallback( ps2_smb_log_callback fn )
Sets a callback for debug logging
libps2time is a time library for the PS2. It provides time functions similar to
those of the c standard library. The library uses one of the EE timers (T1)
so the real time clock has to be queried only once when the library is
int ps2time_init( void )
Initializes the library, returns 0 on success.
time_t ps2time_time( time_t *t )
Retrieves the time in seconds since the epoch.
u64 ps2time_time_msec( u64 *t )
Retrieves the time in milliseconds since the epoch.
time_t ps2time_mktime( struct tm *t )
Converts tm structure to time_t value.
struct tm *ps2time_gmtime( const time_t *timep )
Converts time_t value to tm structure as UTC time.
struct tm *ps2time_localtime( const time_t *timep )
Converts time_t value to tm structure as local time.
char *ps2time_asctime( const struct tm *timeptr )
Converts tm structure to string.
char *ps2time_ctime( const time_t *timer )
Converts time_t value to string.
double ps2time_difftime( time_t t1, time_t t0 )
Returns difference between two times.
size_t ps2time_strftime( char *str, size_t maxsize, const char *fmt, const struct tm *ts )
Formats a local time/date according to locale settings.
int ps2time_gettimeofday( struct timeval *tv, void *tzp )
Obtains the current time, expressed as seconds and microseconds since epoch.
tzp is ignored.
void ps2time_setTimezone( s32 offset )
Sets the timezone as offset in minutes from GMT.