|
|
| version 1.10, 2005/03/09 19:31:35 | version 1.11, 2005/03/24 04:40:33 |
|---|---|
| Line 226 void file_setcd(const OEMCHAR *exepath) | Line 226 void file_setcd(const OEMCHAR *exepath) |
| *curfilep = '\0'; | *curfilep = '\0'; |
| } | } |
| char *file_getcd(const OEMCHAR *path) { | OEMCHAR *file_getcd(const OEMCHAR *path) { |
| file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); |
| return(curpath); | return(curpath); |
| Line 414 void file_cutseparator(OEMCHAR *path) { | Line 414 void file_cutseparator(OEMCHAR *path) { |
| int pos; | int pos; |
| pos = strlen(path) - 1; | pos = OEMSTRLEN(path) - 1; |
| if ((pos > 0) && // 2文字以上でー | if ((pos > 0) && // 2文字以上でー |
| (path[pos] == '\\') && // ケツが \ でー | (path[pos] == '\\') && // ケツが \ でー |
| (!milstr_kanji2nd(path, pos)) && // 漢字の2バイト目ぢゃなくてー | (!milstr_kanji2nd(path, pos)) && // 漢字の2バイト目ぢゃなくてー |
| Line 428 void file_setseparator(OEMCHAR *path, in | Line 428 void file_setseparator(OEMCHAR *path, in |
| int pos; | int pos; |
| pos = strlen(path) - 1; | pos = OEMSTRLEN(path) - 1; |
| if ((pos < 0) || | if ((pos < 0) || |
| ((pos == 1) && (path[1] == ':')) || | ((pos == 1) && (path[1] == ':')) || |
| ((path[pos] == '\\') && (!milstr_kanji2nd(path, pos))) || | ((path[pos] == '\\') && (!milstr_kanji2nd(path, pos))) || |