1
0
Fork 0

Use new MCB class

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@618
This commit is contained in:
Sjoerd van der Berg 2002-12-31 13:33:38 +00:00
parent bba62a21b4
commit 6a3be16d00

View file

@ -249,9 +249,10 @@ void SHELL_Init() {
SegSet16(ss,stack_seg);
reg_sp=2046;
/* Setup MCB and the environment */
MCB * env_mcb=(MCB *)HostMake(env_seg-1,0);
env_mcb->psp_segment=psp_seg;
env_mcb->size=4096/16;
DOS_MCB envmcb((Bit16u)(env_seg-1));
envmcb.SetPSPSeg(psp_seg);
envmcb.SetSize(4096/16);
PhysPt env_write=PhysMake(env_seg,0);
MEM_BlockWrite(env_write,path_string,strlen(path_string)+1);
env_write+=strlen(path_string)+1;