Changeset 193 in Main
- Timestamp:
- Sep 29, 2024, 2:55:18 PM (7 weeks ago)
- Location:
- trunk
- Files:
-
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Platform/ps3.mk
r191 r193 1 1 # $Id$ 2 2 3 PREFIX = /dev_hdd0/ httpd3 PREFIX = /dev_hdd0/game/TEWI_00-0/USRDIR 4 4 5 5 CC = ppu-gcc -
trunk/Server/Makefile
r191 r193 29 29 tewi.pkg: tewi.self 30 30 mkdir -p pkg/USRDIR 31 cp /usr/local/ps3dev/bin/ICON0.PNGpkg/ICON0.PNG32 make_self_npdrm tewi .elfpkg/USRDIR/EBOOT.BIN UP0001-TEWI_00-000000000000000031 cp ../Binary/ps3.png pkg/ICON0.PNG 32 make_self_npdrm tewi_strip$(EXEC) pkg/USRDIR/EBOOT.BIN UP0001-TEWI_00-0000000000000000 33 33 sfo.py --title "Tewi HTTPd" --appid "TEWI" -f /usr/local/ps3dev/bin/sfo.xml pkg/PARAM.SFO 34 34 pkg.py --contentid UP0001-TEWI_00-0000000000000000 pkg/ $@ -
trunk/Server/main.c
r191 r193 309 309 void tt_putstr(const char* str) { 310 310 int i; 311 for(i = 0; str[i] != 0; i++) {311 for(i = 0; str[i] != 0; i++) { 312 312 tvram[tt_y * tt_width + tt_x] = str[i]; 313 if(str[i] == '\n') {313 if(str[i] == '\n') { 314 314 tt_x = 0; 315 315 tt_y++; 316 } else{316 } else { 317 317 tt_x++; 318 if(tt_x == tt_width) {318 if(tt_x == tt_width) { 319 319 tt_x = 0; 320 320 tt_y++; 321 321 } 322 322 } 323 if(tt_y == tt_height) {323 if(tt_y == tt_height) { 324 324 tt_y--; 325 325 int x, y; 326 for(y = 0; y < tt_height - 1; y++) {327 for(x = 0; x < tt_width; x++) {326 for(y = 0; y < tt_height - 1; y++) { 327 for(x = 0; x < tt_width; x++) { 328 328 tvram[y * tt_width + x] = tvram[(y + 1) * tt_width + x]; 329 329 } 330 330 } 331 for(x = 0; x < tt_width; x++) {331 for(x = 0; x < tt_width; x++) { 332 332 tvram[(tt_height - 1) * tt_width + x] = 0; 333 333 } … … 336 336 } 337 337 338 void tt_putchar(struct rsx_buffer* buffer, int x, int y, uint8_t c) {338 void tt_putchar(struct rsx_buffer* buffer, int x, int y, uint8_t c) { 339 339 int i, j; 340 340 if(c < 0x20) c = 0x20; 341 341 if(c >= 0x7f) c = 0x20; 342 for(i = 0; i < 7; i++) {342 for(i = 0; i < 7; i++) { 343 343 uint8_t l = font[(c - 0x20) * 8 + i]; 344 for(j = 0; j < 5; j++) {344 for(j = 0; j < 5; j++) { 345 345 uint32_t c = 0; 346 if(l & (1 << 7)) {346 if(l & (1 << 7)) { 347 347 c = 0xffffff; 348 348 } … … 388 388 if(tmpl[i] == '%') { 389 389 i++; 390 if(tmpl[i] == 's') {390 if(tmpl[i] == 's') { 391 391 char* tmp = log; 392 392 log = cm_strcat(tmp, va_arg(va, char*)); 393 393 free(tmp); 394 } else if(tmpl[i] == 'd'){394 } else if(tmpl[i] == 'd') { 395 395 char buf[513]; 396 396 sprintf(buf, "%d", va_arg(va, int)); … … 398 398 log = cm_strcat(tmp, buf); 399 399 free(tmp); 400 } else if(tmpl[i] == '%'){400 } else if(tmpl[i] == '%') { 401 401 char* tmp = log; 402 402 log = cm_strcat(tmp, "%"); -
trunk/Server/tw_version.h
r186 r193 8 8 #endif 9 9 10 #define TW_VERSION "2.0 2-wip\0"10 #define TW_VERSION "2.03\0" 11 11 12 12 const char* tw_get_version(void); -
trunk/ps3.sh
r192 r193 4 4 export PATH=$PATH:/usr/local/pspdev/bin 5 5 cat config.h.tmpl | sed -E 's/#undef (NO_SSL)/#define \1/g' > config.h 6 rm -rf httpd 7 make PLATFORM=psp DESTDIR=httpd/ install 8 mv httpd/ms0:/PSP/GAME/httpd/* httpd/ 9 rm -rf httpd/lib httpd/bin 10 rm -rf httpd/ms0: 11 cp Server/tewi.pbp httpd/EBOOT.PBP 12 echo "Tewi HTTPd $(make get-version) for PSP" > httpd/README 13 echo "========================" >> httpd/README 14 echo "To install, just copy this \`httpd' folder into your /PSP/GAME of the PSP memorystick." >> httpd/README 15 cat httpd/readme 6 rm -rf TEWI_00-0 7 make PLATFORM=ps3 DESTDIR=TEWI_00-0/ install || exit 1 8 mkdir -p TEWI_00-0/USRDIR 9 mv TEWI_00-0/dev_hdd0/game/TEWI_00-0/USRDIR/* TEWI_00-0/USRDIR/ 10 rm -rf TEWI_00-0/USRDIR/lib TEWI_00-0/USRDIR/bin 11 rm -rf TEWI_00-0/dev_hdd0 12 make_self_npdrm Server/tewi_strip.elf TEWI_00-0/USRDIR/EBOOT.BIN UP0001-TEWI_00-0000000000000000 13 sfo.py --title "Tewi HTTPd" --appid "TEWI" -f /usr/local/ps3dev/bin/sfo.xml TEWI_00-0/PARAM.SFO 14 cp Binary/ps3.png TEWI_00-0/ICON0.PNG 15 echo "Tewi HTTPd $(make get-version) for PS3" > TEWI_00-0/README 16 echo "========================" >> TEWI_00-0/README 17 echo "To install, just copy this \`TEWI_00-0' folder into your /game of PS3 HDD0." >> TEWI_00-0/README 18 cat TEWI_00-0/README 16 19 rm -f tewidist.zip 17 zip -rv tewidist.zip httpd18 rm -rf httpd20 zip -rv tewidist.zip TEWI_00-0 21 rm -rf TEWI_00-0 -
trunk/psp.sh
r187 r193 5 5 cat config.h.tmpl | sed -E 's/#undef (NO_SSL)/#define \1/g' > config.h 6 6 rm -rf httpd 7 make PLATFORM=psp DESTDIR=httpd/ install 7 make PLATFORM=psp DESTDIR=httpd/ install || exit 1 8 8 mv httpd/ms0:/PSP/GAME/httpd/* httpd/ 9 9 rm -rf httpd/lib httpd/bin … … 13 13 echo "========================" >> httpd/README 14 14 echo "To install, just copy this \`httpd' folder into your /PSP/GAME of the PSP memorystick." >> httpd/README 15 cat httpd/ readme15 cat httpd/README 16 16 rm -f tewidist.zip 17 17 zip -rv tewidist.zip httpd
Note:
See TracChangeset
for help on using the changeset viewer.