Commit fb9dd3be authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Removed some dubious filetyping logic.

On saving a file if the type was text no filetype information was
saved and instead it relied on the default for unknown filetypes being
text.
The default unknown filetype is now &FE4,plus the above logic would
have conflicted with the MimeMap code if for example a file of type
text was saved but which had an extension which was in the mimemap of
type something other than text.

Version 2.24. Tagged as 'LanManFS-2_24'
parent 49aac30b
/* (2.23) /* (2.24)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.68. * Last processed by srccommit version: 1.68.
* *
*/ */
#define Module_MajorVersion_CMHG 2.23 #define Module_MajorVersion_CMHG 2.24
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 14 Dec 2002 #define Module_Date_CMHG 16 Dec 2002
#define Module_MajorVersion "2.23" #define Module_MajorVersion "2.24"
#define Module_Version 223 #define Module_Version 224
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "14 Dec 2002" #define Module_Date "16 Dec 2002"
#define Module_ApplicationDate "14-Dec-02" #define Module_ApplicationDate "16-Dec-02"
#define Module_ComponentName "LanManFS" #define Module_ComponentName "LanManFS"
#define Module_ComponentPath "RiscOS/Sources/Networking/Omni/Protocols/LanManFS" #define Module_ComponentPath "RiscOS/Sources/Networking/Omni/Protocols/LanManFS"
#define Module_FullVersion "2.23" #define Module_FullVersion "2.24"
#define Module_HelpVersion "2.23 (14 Dec 2002)" #define Module_HelpVersion "2.24 (16 Dec 2002)"
#define Module_LibraryVersionInfo "2:23" #define Module_LibraryVersionInfo "2:24"
...@@ -1331,8 +1331,7 @@ int Xlt_AddROType ( char *leafname, uint loadaddr ) ...@@ -1331,8 +1331,7 @@ int Xlt_AddROType ( char *leafname, uint loadaddr )
} }
else { else {
const int type = GET_FILETYPE(loadaddr); const int type = GET_FILETYPE(loadaddr);
if (type == 0xFFF) *typebuf = '\0'; sprintf(typebuf+1, "%03x", type);
else sprintf(typebuf+1, "%03x", type);
} }
if (Xlt_SplitLeafnameX2 ( leafname, &RA, &terminator) == OK) { if (Xlt_SplitLeafnameX2 ( leafname, &RA, &terminator) == OK) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment