Changeset 182 in Main for trunk/Server/main.c
- Timestamp:
- Sep 27, 2024, 9:55:12 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/main.c
r168 r182 24 24 #ifdef __MINGW32__ 25 25 #include <windows.h> 26 #endif 27 28 #ifdef _PSP 29 #include <pspkernel.h> 30 #include <pspdebug.h> 31 32 PSP_MODULE_INFO("Tewi HTTPd", PSP_MODULE_USER, 1, 1); 33 PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER); 34 35 #define printf(...) pspDebugScreenPrintf(__VA_ARGS__) 26 36 #endif 27 37 … … 83 93 StartServiceCtrlDispatcher(table); 84 94 #else 95 #ifdef _PSP 96 pspDebugScreenInit(); 97 pspDebugScreenSetXY(0, 0); 98 #endif 85 99 int st = startup(argc, argv); 86 100 if(st != -1) return st; … … 114 128 } 115 129 confpath = argv[i]; 130 #ifndef _PSP 116 131 } else if(strcmp(argv[i], "--logfile") == 0 || strcmp(argv[i], "-l") == 0) { 117 132 i++; … … 128 143 return 1; 129 144 } 145 #endif 130 146 } else if(strcmp(argv[i], "--version") == 0 || strcmp(argv[i], "-V") == 0) { 131 147 printf("Tewi HTTPd Tewi/%s\n", tw_get_version()); … … 135 151 printf("Usage: %s [--config|-C config] [--verbose|-v] [--version|-V]\n", argv[0]); 136 152 printf("--config | -C config : Specify config\n"); 153 #ifndef _PSP 137 154 printf("--logfile | -l logfile : Specify logfile\n"); 155 #endif 138 156 printf("--verbose | -v : Verbose mode\n"); 139 157 printf("--version | -V : Version information\n");
Note:
See TracChangeset
for help on using the changeset viewer.