aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver/misc.cpp
blob: 4819be7d49f3675ff9f316d7798bac49e612ec92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* Copyright (C) 2003 The ScummVM project
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * $Header$
 */

#include "stdafx.h"
#include "driver96.h"
#include "../sword2.h"

#ifndef WIN32
uint32 timeGetTime(void) {
	return g_bs2->_syst->get_msecs();
}
#endif

void VirtualUnlock(uint8 *free_memman, uint32 total_free_memory) {
	warning("stub VirtualUnlock");
}

void GlobalMemoryStatus(MEMORYSTATUS *memo) {
	warning("stub GlobalMemoryStatus");
	memo->dwTotalPhys = 16000*1024; // hard code 16mb for now
}

void SetFileAttributes(char *file, uint32 atrib) {
	warning("stub SetFileAttributes");
}

void DeleteFile(char *file) {
	warning("stub DeleteFile");
}

void GetCurrentDirectory(uint32 max, char* path) {
	warning("stub GetCurrentDirectory");
}

int32 GetVolumeInformation(char *cdPath, char *sCDName, uint32 maxPath, uint8 *, DWORD *dwMaxCompLength, DWORD *dwFSFlags, uint8 *, uint32 a) {
	warning("stub GetVolumeInformation %s", cdPath);
	strcpy(sCDName, CD1_LABEL);
	return 1;
}

#ifndef WIN32
// FIXME wrap different platform specific mkdir calls and actually do something
void _mkdir(const char *pathname) {
	warning("stub _mkdir %s", pathname);
}
#endif

void GetModuleFileName(void *module, char *destStr, uint32 maxLen) {
	warning("stub GetModuleFileName");
}