Use new MCB class
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@618
This commit is contained in:
parent
bba62a21b4
commit
6a3be16d00
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue