~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to engines/scumm/he/script_v60he.cpp

  • Committer: Package Import Robot
  • Author(s): Moritz Muehlenhoff
  • Date: 2011-11-05 10:29:43 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20111105102943-zfm3dhlvy5b01u7v
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
20
 *
21
 
 * $URL$
22
 
 * $Id$
23
 
 *
24
21
 */
25
22
 
26
23
#include "common/archive.h"
97
94
        debug(1, "convertFilePath: original filePath is %s", dst);
98
95
 
99
96
        int len = resStrLen(dst);
 
97
 
 
98
        // Switch all \ to / for portablity
 
99
        for (int i = 0; i < len; i++)
 
100
                if (dst[i] == '\\')
 
101
                        dst[i] = '/';
 
102
 
100
103
        if (_game.platform == Common::kPlatformMacintosh) {
101
104
                // Remove : prefix in HE71 games
102
105
                if (dst[0] == ':') {
110
113
                        if (dst[i] == ':')
111
114
                                dst[i] = '/';
112
115
                }
113
 
        } else {
114
 
                // Switch all \ to / for portablity
115
 
                for (int i = 0; i < len; i++) {
116
 
                        if (dst[i] == '\\')
117
 
                                dst[i] = '/';
118
 
                }
119
116
        }
120
117
 
121
118
        // Strip path
747
744
                        _hOutFileTable[slot] = 0;
748
745
                }
749
746
 
750
 
                delete _hInFileTable[slot];             
 
747
                delete _hInFileTable[slot];
751
748
                _hInFileTable[slot] = 0;
752
749
        }
753
750
}