1 |
|
/* |
2 |
|
* 1541fs.cpp - 1541 emulation in host file system |
3 |
|
* |
4 |
< |
* Frodo (C) 1994-1997,2002-2003 Christian Bauer |
4 |
> |
* Frodo (C) 1994-1997,2002-2004 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
55 |
|
* Constructor: Prepare emulation |
56 |
|
*/ |
57 |
|
|
58 |
< |
FSDrive::FSDrive(IEC *iec, char *path) : Drive(iec) |
58 |
> |
FSDrive::FSDrive(IEC *iec, const char *path) : Drive(iec) |
59 |
|
{ |
60 |
|
strcpy(orig_dir_path, path); |
61 |
|
dir_path[0] = 0; |
325 |
|
|
326 |
|
// Convert pattern to ASCII |
327 |
|
char ascii_pattern[NAMEBUF_LENGTH]; |
328 |
< |
petscii2ascii(ascii_pattern, (const char *)pattern, NAMEBUF_LENGTH); |
328 |
> |
petscii2ascii(ascii_pattern, pattern, NAMEBUF_LENGTH); |
329 |
|
|
330 |
|
// Open directory for reading and skip '.' and '..' |
331 |
|
if ((dir = opendir(dir_path)) == NULL) { |