From 757809196efffbcace39cb9893b69ee2345442a8 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Sat, 8 Aug 2015 15:41:24 +0200
Subject: [PATCH] Some finishing touch on the CBM retro targets.
---
apps/webbrowser/www.c | 1 +
examples/irc/Makefile.c128.defines | 2 +-
examples/wget/Makefile.c128.defines | 2 +-
platform/c128/lib/pfs.S | 5 ++---
platform/c64/lib/pfs.S | 5 ++---
5 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/apps/webbrowser/www.c b/apps/webbrowser/www.c
index 3e84c7cb9..70af0332b 100644
--- a/apps/webbrowser/www.c
+++ b/apps/webbrowser/www.c
@@ -810,6 +810,7 @@ add_pagewidget(char *text, unsigned char size, char *attrib, unsigned char type,
textptr->name + attriblen + 1, WWW_CONF_MAX_INPUTVALUELEN);
add_forminput((struct inputattrib *)textptr);
textptr->formptr = formptr;
+ petsciiconv_topetscii(text, strlen(text));
strcpy(textptr->textentry.text, text);
strcpy(textptr->name, attrib);
if(size) {
diff --git a/examples/irc/Makefile.c128.defines b/examples/irc/Makefile.c128.defines
index 688d85113..7e0762e68 100644
--- a/examples/irc/Makefile.c128.defines
+++ b/examples/irc/Makefile.c128.defines
@@ -1 +1 @@
-DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI,WITH_PFS
+DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI,WITH_PFS,MTU_SIZE=1000
diff --git a/examples/wget/Makefile.c128.defines b/examples/wget/Makefile.c128.defines
index a4bbe71fb..91a6f26ad 100644
--- a/examples/wget/Makefile.c128.defines
+++ b/examples/wget/Makefile.c128.defines
@@ -1 +1 @@
-DEFINES = WITH_LOGGING,WITH_CLIENT,WITH_DNS,WITH_ARGS
+DEFINES = WITH_LOGGING,WITH_CLIENT,WITH_DNS,WITH_PFS,WITH_ARGS
diff --git a/platform/c128/lib/pfs.S b/platform/c128/lib/pfs.S
index e82a1cb7c..a2edb1cfd 100644
--- a/platform/c128/lib/pfs.S
+++ b/platform/c128/lib/pfs.S
@@ -73,8 +73,7 @@ flags: .res 10
.data
illchr: .byte $3A, $2A, $3F, $3D ;illegal chars
-pw: .byte $2C
-filet: .byte $50, $2C, $57 ;,p,w
+pw: .byte $2C, $50, $2C, $57 ;,p,w
;---------------------------------------------------------------------
.segment "INIT"
@@ -149,7 +148,7 @@ nopath: lda #$3A
lsr ptr2
bcs ro ;read only
lda __filetype
- sta filet ;set filetype
+ sta pw+1 ;set filetype
ldx #252
@L20: lda pw-252,x
sta (sp),y ;write
diff --git a/platform/c64/lib/pfs.S b/platform/c64/lib/pfs.S
index 89eb03ae0..02f9744ec 100644
--- a/platform/c64/lib/pfs.S
+++ b/platform/c64/lib/pfs.S
@@ -73,8 +73,7 @@ flags: .res 10
.data
illchr: .byte $3A, $2A, $3F, $3D ;illegal chars
-pw: .byte $2C
-filet: .byte $50, $2C, $57 ;,p,w
+pw: .byte $2C, $50, $2C, $57 ;,p,w
;---------------------------------------------------------------------
.segment "INIT"
@@ -149,7 +148,7 @@ nopath: lda #$3A
lsr ptr2
bcs ro ;read only
lda __filetype
- sta filet ;set filetype
+ sta pw+1 ;set filetype
ldx #252
@L20: lda pw-252,x
sta (sp),y ;write