diff options
author | Ole Loots <ole@monochrom.net> | 2011-01-30 22:17:15 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-01-30 22:17:15 +0000 |
commit | 2fbc3bd4a09438b4494fe1a1443ba7fbbc6102e7 (patch) | |
tree | dfd4baf8afdfcaab3906f59f21374ab241bdfa04 /atari/findfile.c | |
parent | 8895e0a0bca1f6f4926061fdb828253828c54cc5 (diff) | |
download | netsurf-2fbc3bd4a09438b4494fe1a1443ba7fbbc6102e7.tar.gz netsurf-2fbc3bd4a09438b4494fe1a1443ba7fbbc6102e7.tar.bz2 |
Cleanup of TOS fixes.
svn path=/trunk/netsurf/; revision=11545
Diffstat (limited to 'atari/findfile.c')
-rwxr-xr-x | atari/findfile.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/atari/findfile.c b/atari/findfile.c index 3a90c026d..ee2fc615b 100755 --- a/atari/findfile.c +++ b/atari/findfile.c @@ -30,8 +30,9 @@ #include "atari/findfile.h" #include "atari/gui.h" #include "atari/misc.h" +#include "atari/osspec.h" + -extern unsigned short gdosversion; static void fix_path(char * path); @@ -56,8 +57,7 @@ char *url_to_path(const char *url) char *path; /* return the absolute path including leading / */ - /* TODO: fix path seperator */ - if(gdosversion > TOS4VER ) { + if( atari_sysinfo.gdosversion > TOS4VER ) { path = strdup(url_path + (FILE_SCHEME_PREFIX_LEN - 1)); } else { /* do not include / within ulr_path */ @@ -68,10 +68,10 @@ char *url_to_path(const char *url) if( path[i] == '/' ){ path[i] = 0x5C; } - } + } + LOG(("%s", path)); } curl_free(url_path); - LOG(("%s", path)); return path; } @@ -110,7 +110,7 @@ char * gdos_realpath(const char * path, char * rpath) if( rpath == NULL ){ return( NULL ); } - if( gdosversion > TOS4VER ){ + if( atari_sysinfo.gdosversion > TOS4VER ){ return( realpath(path, rpath) ); } |