Ignore:
Timestamp:
Nov 14, 1999, 11:16:32 PM (26 years ago)
Author:
hugh
Message:

Fixes to let RA run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2UTIL.CPP

    r1568 r1746  
    1 /* $Id: OS2UTIL.CPP,v 1.7 1999-11-02 22:41:23 hugh Exp $ */
     1/* $Id: OS2UTIL.CPP,v 1.8 1999-11-14 22:16:32 hugh Exp $ */
    22
    33/*
     
    1010 */
    1111#define INCL_DOSMEMMGR
     12#define INCL_DOSDEVICES
    1213#include <os2wrap.h>
    1314#include <misc.h>
    1415#include "os2util.h"
    15 
     16#include "cio2.h"
    1617
    1718//******************************************************************************
     
    4546  WinSetWindowPos(hwndClient, HWND_TOP, 0, 0, 0, 0, SWP_MAXIMIZE);
    4647}
     48//******************************************************************************
     49//******************************************************************************
    4750
     51int InitIO()
     52{
     53  WORD  gdt;
     54  HRESULT rc;
     55  HFILE  device;
     56  ULONG  ulAction;
     57
     58  rc = DosOpen( "\\dev\\fastio$",
     59                &device,
     60                &ulAction,
     61                0,0,1,
     62                OPEN_ACCESS_READWRITE|OPEN_SHARE_DENYNONE,
     63                0);
     64  if(rc)
     65    return rc;
     66
     67  rc = DosDevIOCtl( device, 118, 100, 0,0,0,&gdt,2,&ulAction);
     68
     69  DosClose(device);
     70
     71  if(rc)
     72  {
     73    return rc;
     74  }
     75
     76  io_init2(gdt);
     77
     78  return 0;
     79}
     80
Note: See TracChangeset for help on using the changeset viewer.