Subversion Repositories Tewi

Rev

Rev 197 | Rev 206 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 197 Rev 200
Line 1... Line 1...
1
/* $Id: main.c 197 2024-09-29 07:13:35Z nishi $ */
1
/* $Id: main.c 200 2024-09-29 07:50:59Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 40... Line 40...
40
 
40
 
41
#define printf(...) pspDebugScreenPrintf(__VA_ARGS__)
41
#define printf(...) pspDebugScreenPrintf(__VA_ARGS__)
42
#define STDERR_LOG(...) pspDebugScreenPrintf(__VA_ARGS__)
42
#define STDERR_LOG(...) pspDebugScreenPrintf(__VA_ARGS__)
43
#elif defined(__ps2sdk__)
43
#elif defined(__ps2sdk__)
44
#include <debug.h>
44
#include <debug.h>
-
 
45
#include <iopcontrol.h>
45
#include <sifrpc.h>
46
#include <sifrpc.h>
-
 
47
#include <kernel.h>
46
 
48
 
47
#define printf(...) scr_printf(__VA_ARGS__)
49
#define printf(...) scr_printf(__VA_ARGS__)
48
#define STDERR_LOG(...) scr_printf(__VA_ARGS__)
50
#define STDERR_LOG(...) scr_printf(__VA_ARGS__)
49
#elif defined(__PPU__)
51
#elif defined(__PPU__)
50
#include <rsx/gcm_sys.h>
52
#include <rsx/gcm_sys.h>
Line 624... Line 626...
624
	printf("PS3 Bootstrap, Tewi/%s\n", tw_get_version());
626
	printf("PS3 Bootstrap, Tewi/%s\n", tw_get_version());
625
	show_png();
627
	show_png();
626
	netInitialize();
628
	netInitialize();
627
#elif defined(__ps2sdk__)
629
#elif defined(__ps2sdk__)
628
	SifInitRpc(0);
630
	SifInitRpc(0);
-
 
631
	while(!SifIopReset("", 0))
-
 
632
		;
-
 
633
	while(!SifIopSync())
-
 
634
		;
629
	init_scr();
635
	init_scr();
630
	scr_printf("PS2 Bootstrap, Tewi/%s\n", tw_get_version());
636
	scr_printf("PS2 Bootstrap, Tewi/%s\n", tw_get_version());
631
	while(1)
637
	SleepThread();
632
		;
-
 
633
#endif
638
#endif
634
	int st = startup(argc, argv);
639
	int st = startup(argc, argv);
635
	if(st != -1) {
640
	if(st != -1) {
636
#ifdef _PSP
641
#ifdef _PSP
637
		printf("Error code %d\n", st);
642
		printf("Error code %d\n", st);