mem ->63. List more options
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1956
This commit is contained in:
parent
25ab0c147a
commit
c15193d8f5
2 changed files with 9 additions and 8 deletions
|
@ -479,9 +479,10 @@ void MEM_Init(Section * sec) {
|
|||
Bitu memsize=section->Get_int("memsize");
|
||||
|
||||
if (memsize<1) memsize=1;
|
||||
if (memsize>MAX_MEMORY) {
|
||||
LOG_MSG("Maximum memory size is %d MB",MAX_MEMORY);
|
||||
memsize=MAX_MEMORY;
|
||||
/* max 63 to solve problems with certain xms handlers */
|
||||
if (memsize>MAX_MEMORY - 1) {
|
||||
LOG_MSG("Maximum memory size is %d MB",MAX_MEMORY - 1);
|
||||
memsize=MAX_MEMORY - 1;
|
||||
}
|
||||
MemBase=(HostPt)malloc(memsize*1024*1024);
|
||||
if (!MemBase) E_Exit("Can't allocate main memory of %d MB",memsize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue