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
|
/* 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"
uint32 SVM_timeGetTime(void) {
return g_bs2->_syst->get_msecs();
}
void SVM_VirtualUnlock(uint8 *free_memman, uint32 total_free_memory) {
warning("stub VirtualUnlock");
}
void SVM_GlobalMemoryStatus(SVM_MEMORYSTATUS *memo) {
warning("stub GlobalMemoryStatus");
memo->dwTotalPhys = 16000*1024; // hard code 16mb for now
}
void SVM_SetFileAttributes(char *file, uint32 atrib) {
warning("stub SetFileAttributes");
}
void SVM_DeleteFile(char *file) {
warning("stub DeleteFile");
}
void SVM_GetCurrentDirectory(uint32 max, char* path) {
warning("stub GetCurrentDirectory");
}
int32 SVM_GetVolumeInformation(char *cdPath, char *sCDName, uint32 maxPath, uint8 *, uint32 *dwMaxCompLength, uint32 *dwFSFlags, uint8 *, uint32 a) {
warning("stub GetVolumeInformation %s", cdPath);
strcpy(sCDName, CD1_LABEL);
return 1;
}
// FIXME wrap different platform specific mkdir calls and actually do something
void scumm_mkdir(const char *pathname) {
warning("stub scumm_mkdir %s", pathname);
}
void SVM_GetModuleFileName(void *module, char *destStr, uint32 maxLen) {
warning("stub GetModuleFileName");
}
|