Add beta2 patch: Some hack to make SKYRICA work. (allocate a zero xms page to get a pointer to xms memory area)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2736
This commit is contained in:
parent
0cca0c96cf
commit
779ab9f715
3 changed files with 16 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: memory.cpp,v 1.46 2007-01-08 19:45:40 qbix79 Exp $ */
|
||||
/* $Id: memory.cpp,v 1.47 2007-01-08 21:40:15 qbix79 Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
#include "mem.h"
|
||||
|
@ -291,6 +291,10 @@ MemHandle MEM_AllocatePages(Bitu pages,bool sequence) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
MemHandle MEM_GetNextFreePage(void) {
|
||||
return (MemHandle)BestMatch(1);
|
||||
}
|
||||
|
||||
void MEM_ReleasePages(MemHandle handle) {
|
||||
while (handle>0) {
|
||||
MemHandle next=memory.mhandles[handle];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue