Subversion Repositories Tewi

Rev

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

Rev 182 Rev 187
Line 1... Line 1...
1
/* $Id: config.c 182 2024-09-27 12:55:12Z nishi $ */
1
/* $Id: config.c 187 2024-09-28 00:07:34Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "tw_config.h"
5
#include "tw_config.h"
6
#include "tw_module.h"
6
#include "tw_module.h"
Line 99... Line 99...
99
	config.module_count = 0;
99
	config.module_count = 0;
100
	config.extension = NULL;
100
	config.extension = NULL;
101
	config.server_root = cm_strdup(PREFIX);
101
	config.server_root = cm_strdup(PREFIX);
102
	config.server_admin = cm_strdup(SERVER_ADMIN);
102
	config.server_admin = cm_strdup(SERVER_ADMIN);
103
	config.defined[0] = NULL;
103
	config.defined[0] = NULL;
104
#ifdef _PSP
104
#if defined(_PSP)
105
	strcpy(config.hostname, "psp");
105
	strcpy(config.hostname, "psp");
-
 
106
#elif defined(__PPU__)
-
 
107
	strcpy(config.hostname, "ps3");
106
#else
108
#else
107
	gethostname(config.hostname, 1024);
109
	gethostname(config.hostname, 1024);
108
#endif
110
#endif
109
#ifdef HAS_CHROOT
111
#ifdef HAS_CHROOT
110
	tw_add_define("HAS_CHROOT");
112
	tw_add_define("HAS_CHROOT");