From fda46848c7877ec0727a120449527f4524b437e7 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Thu, 29 Jun 2023 11:13:07 -0700 Subject: [PATCH] re-include mxdirectdraw.cpp in project --- LEGO1/mxdirectdraw.cpp | 650 ++++++++++++++++++++--------------------- isle.mak | 477 ++---------------------------- isle.mdp | Bin 78336 -> 78848 bytes 3 files changed, 349 insertions(+), 778 deletions(-) diff --git a/LEGO1/mxdirectdraw.cpp b/LEGO1/mxdirectdraw.cpp index f1c9fc89..c557ef84 100644 --- a/LEGO1/mxdirectdraw.cpp +++ b/LEGO1/mxdirectdraw.cpp @@ -1,325 +1,325 @@ -#pragma comment(lib, "ddraw") - -#include "mxdirectdraw.h" - -// 0x10100c68 -BOOL g_paletteIndexed8 = 0; - -// 0x10100c70 -BOOL DAT_10100c70 = 0; - -// OFFSET: LEGO1 0x1009e7a0 -HRESULT MxDirectDraw::SetEntries() -{ - HRESULT ret; - - if (m_paletteIndexed8) { - if (m_ddpal) { - ret = m_ddpal->SetEntries(0, 0, 256, m_pal1); - if (ret != DD_OK) { - FUN_1009e830("SetEntries failed", ret); - return 0; - } - } - } - - return 1; -} - -// OFFSET: LEGO1 0x1009e7f0 -HRESULT MxDirectDraw::FlipToGDISurface() -{ - HRESULT ret; - - if (m_ddraw) { - ret = m_ddraw->FlipToGDISurface(); - if (ret != DD_OK) { - FUN_1009e830("FlipToGDISurface failed", ret); - } - return !ret; - } - - return 1; -} - -// OFFSET: LEGO1 0x1009e830 -void MxDirectDraw::FUN_1009e830(char *error_msg, HRESULT ret) -{ - if (!DAT_10100c70) { - DAT_10100c70 = 1; - vtable08(); - if (m_unk85c) { - m_unk85c(error_msg, ret, m_unk864); - } - } - - DAT_10100c70 = 0; -} - -// OFFSET: LEGO1 0x1009d570 -int MxDirectDraw::GetPrimaryBitDepth() -{ - DWORD dwRGBBitCount; - LPDIRECTDRAW pDDraw; - DDSURFACEDESC ddsd; - - HRESULT result = DirectDrawCreate(NULL, &pDDraw, NULL); - dwRGBBitCount = 8; - if (!result) - { - memset(&ddsd, 0, sizeof(ddsd)); - ddsd.dwSize = sizeof(ddsd); - - pDDraw->GetDisplayMode(&ddsd); - dwRGBBitCount = ddsd.ddpfPixelFormat.dwRGBBitCount; - g_paletteIndexed8 = (ddsd.ddpfPixelFormat.dwFlags & DDPF_PALETTEINDEXED8) != 0; - pDDraw->Release(); - } - - return dwRGBBitCount; -} - -// OFFSET: LEGO1 0x1009e6a0 -int MxDirectDraw::Pause(int param_1) -{ - if (param_1) { - m_unk86c++; - - if (m_unk86c > 1) { - return 1; - } - - if (!SetEntries()) { - return 0; - } - - if (m_fullScreen) { - if (!FlipToGDISurface()) { - return 0; - } - - DrawMenuBar(hWindow); - RedrawWindow(hWindow, NULL, NULL, RDW_FRAME); - } - - return 1; - } else { - m_unk86c--; - if (m_unk86c > 0) { - return 1; - } else if (m_unk86c < 0) { - m_unk86c = 0; - } - FUN_1009e750(); - } - return 0; -} - -// OFFSET: LEGO1 0x1009e750 -HRESULT MxDirectDraw::FUN_1009e750() -{ - HRESULT ret; - - if (m_fullScreen && m_paletteIndexed8) { - if (m_ddpal) { - ret = m_ddpal->SetEntries(0, 0, 256, m_pal0); - if (ret != DD_OK) { - FUN_1009e830("SetEntries failed", ret); - return 0; - } - } - } - - return 1; -} - -// OFFSET: LEGO1 0x1009e880 -char * MxDirectDraw::ErrorToString(HRESULT error) -{ - switch(error) { - case DD_OK: - return "No error.\0"; - case DDERR_ALREADYINITIALIZED: - return "This object is already initialized.\0"; - case DDERR_BLTFASTCANTCLIP: - return "Return if a clipper object is attached to the source surface passed into a BltFast call.\0"; - case DDERR_CANNOTATTACHSURFACE: - return "This surface can not be attached to the requested surface.\0"; - case DDERR_CANNOTDETACHSURFACE: - return "This surface can not be detached from the requested surface.\0"; - case DDERR_CANTCREATEDC: - return "Windows can not create any more DCs.\0"; - case DDERR_CANTDUPLICATE: - return "Can't duplicate primary & 3D surfaces, or surfaces that are implicitly created.\0"; - case DDERR_CLIPPERISUSINGHWND: - return "An attempt was made to set a cliplist for a clipper object that is already monitoring an hwnd.\0"; - case DDERR_COLORKEYNOTSET: - return "No src color key specified for this operation.\0"; - case DDERR_CURRENTLYNOTAVAIL: - return "Support is currently not available.\0"; - case DDERR_DIRECTDRAWALREADYCREATED: - return "A DirectDraw object representing this driver has already been created for this process.\0"; - case DDERR_EXCEPTION: - return "An exception was encountered while performing the requested operation.\0"; - case DDERR_EXCLUSIVEMODEALREADYSET: - return "An attempt was made to set the cooperative level when it was already set to exclusive.\0"; - case DDERR_GENERIC: - return "Generic failure.\0"; - case DDERR_HEIGHTALIGN: - return "Height of rectangle provided is not a multiple of reqd alignment.\0"; - case DDERR_HWNDALREADYSET: - return "The CooperativeLevel HWND has already been set. It can not be reset while the process has surfaces or palettes created.\0"; - case DDERR_HWNDSUBCLASSED: - return "HWND used by DirectDraw CooperativeLevel has been subclassed, this prevents DirectDraw from restoring state.\0"; - case DDERR_IMPLICITLYCREATED: - return "This surface can not be restored because it is an implicitly created surface.\0"; - case DDERR_INCOMPATIBLEPRIMARY: - return "Unable to match primary surface creation request with existing primary surface.\0"; - case DDERR_INVALIDCAPS: - return "One or more of the caps bits passed to the callback are incorrect.\0"; - case DDERR_INVALIDCLIPLIST: - return "DirectDraw does not support the provided cliplist.\0"; - case DDERR_INVALIDDIRECTDRAWGUID: - return "The GUID passed to DirectDrawCreate is not a valid DirectDraw driver identifier.\0"; - case DDERR_INVALIDMODE: - return "DirectDraw does not support the requested mode.\0"; - case DDERR_INVALIDOBJECT: - return "DirectDraw received a pointer that was an invalid DIRECTDRAW object.\0"; - case DDERR_INVALIDPARAMS: - return "One or more of the parameters passed to the function are incorrect.\0"; - case DDERR_INVALIDPIXELFORMAT: - return "The pixel format was invalid as specified.\0"; - case DDERR_INVALIDPOSITION: - return "Returned when the position of the overlay on the destination is no longer legal for that destination.\0"; - case DDERR_INVALIDRECT: - return "Rectangle provided was invalid.\0"; - case DDERR_LOCKEDSURFACES: - return "Operation could not be carried out because one or more surfaces are locked.\0"; - case DDERR_NO3D: - return "There is no 3D present.\0"; - case DDERR_NOALPHAHW: - return "Operation could not be carried out because there is no alpha accleration hardware present or available.\0"; - case DDERR_NOBLTHW: - return "No blitter hardware present.\0"; - case DDERR_NOCLIPLIST: - return "No cliplist available.\0"; - case DDERR_NOCLIPPERATTACHED: - return "No clipper object attached to surface object.\0"; - case DDERR_NOCOLORCONVHW: - return "Operation could not be carried out because there is no color conversion hardware present or available.\0"; - case DDERR_NOCOLORKEY: - return "Surface doesn't currently have a color key\0"; - case DDERR_NOCOLORKEYHW: - return "Operation could not be carried out because there is no hardware support of the destination color key.\0"; - case DDERR_NOCOOPERATIVELEVELSET: - return "Create function called without DirectDraw object method SetCooperativeLevel being called.\0"; - case DDERR_NODC: - return "No DC was ever created for this surface.\0"; - case DDERR_NODDROPSHW: - return "No DirectDraw ROP hardware.\0"; - case DDERR_NODIRECTDRAWHW: - return "A hardware-only DirectDraw object creation was attempted but the driver did not support any hardware.\0"; - case DDERR_NOEMULATION: - return "Software emulation not available.\0"; - case DDERR_NOEXCLUSIVEMODE: - return "Operation requires the application to have exclusive mode but the application does not have exclusive mode.\0"; - case DDERR_NOFLIPHW: - return "Flipping visible surfaces is not supported.\0"; - case DDERR_NOGDI: - return "There is no GDI present.\0"; - case DDERR_NOHWND: - return "Clipper notification requires an HWND or no HWND has previously been set as the CooperativeLevel HWND.\0"; - case DDERR_NOMIRRORHW: - return "Operation could not be carried out because there is no hardware present or available.\0"; - case DDERR_NOOVERLAYDEST: - return "Returned when GetOverlayPosition is called on an overlay that UpdateOverlay has never been called on to establish a destination.\0"; - case DDERR_NOOVERLAYHW: - return "Operation could not be carried out because there is no overlay hardware present or available.\0"; - case DDERR_NOPALETTEATTACHED: - return "No palette object attached to this surface.\0"; - case DDERR_NOPALETTEHW: - return "No hardware support for 16 or 256 color palettes.\0"; - case DDERR_NORASTEROPHW: - return "Operation could not be carried out because there is no appropriate raster op hardware present or available.\0"; - case DDERR_NOROTATIONHW: - return "Operation could not be carried out because there is no rotation hardware present or available.\0"; - case DDERR_NOSTRETCHHW: - return "Operation could not be carried out because there is no hardware support for stretching.\0"; - case DDERR_NOT4BITCOLOR: - return "DirectDrawSurface is not in 4 bit color palette and the requested operation requires 4 bit color palette.\0"; - case DDERR_NOT4BITCOLORINDEX: - return "DirectDrawSurface is not in 4 bit color index palette and the requested operation requires 4 bit color index palette.\0"; - case DDERR_NOT8BITCOLOR: - return "DirectDrawSurface is not in 8 bit color mode and the requested operation requires 8 bit color.\0"; - case DDERR_NOTAOVERLAYSURFACE: - return "Returned when an overlay member is called for a non-overlay surface.\0"; - case DDERR_NOTEXTUREHW: - return "Operation could not be carried out because there is no texture mapping hardware present or available.\0"; - case DDERR_NOTFLIPPABLE: - return "An attempt has been made to flip a surface that is not flippable.\0"; - case DDERR_NOTFOUND: - return "Requested item was not found.\0"; - case DDERR_NOTLOCKED: - return "Surface was not locked. An attempt to unlock a surface that was not locked at all, or by this process, has been attempted.\0"; - case DDERR_NOTPALETTIZED: - return "The surface being used is not a palette-based surface.\0"; - case DDERR_NOVSYNCHW: - return "Operation could not be carried out because there is no hardware support for vertical blank synchronized operations.\0"; - case DDERR_NOZBUFFERHW: - return "Operation could not be carried out because there is no hardware support for zbuffer blitting.\0"; - case DDERR_NOZOVERLAYHW: - return "Overlay surfaces could not be z layered based on their BltOrder because the hardware does not support z layering of overlays.\0"; - case DDERR_OUTOFCAPS: - return "The hardware needed for the requested operation has already been allocated.\0"; - case DDERR_OUTOFMEMORY: - return "DirectDraw does not have enough memory to perform the operation.\0"; - case DDERR_OUTOFVIDEOMEMORY: - return "DirectDraw does not have enough memory to perform the operation.\0"; - case DDERR_OVERLAYCANTCLIP: - return "The hardware does not support clipped overlays.\0"; - case DDERR_OVERLAYCOLORKEYONLYONEACTIVE: - return "Can only have ony color key active at one time for overlays.\0"; - case DDERR_OVERLAYNOTVISIBLE: - return "Returned when GetOverlayPosition is called on a hidden overlay.\0"; - case DDERR_PALETTEBUSY: - return "Access to this palette is being refused because the palette is already locked by another thread.\0"; - case DDERR_PRIMARYSURFACEALREADYEXISTS: - return "This process already has created a primary surface.\0"; - case DDERR_REGIONTOOSMALL: - return "Region passed to Clipper::GetClipList is too small.\0"; - case DDERR_SURFACEALREADYATTACHED: - return "This surface is already attached to the surface it is being attached to.\0"; - case DDERR_SURFACEALREADYDEPENDENT: - return "This surface is already a dependency of the surface it is being made a dependency of.\0"; - case DDERR_SURFACEBUSY: - return "Access to this surface is being refused because the surface is already locked by another thread.\0"; - case DDERR_SURFACEISOBSCURED: - return "Access to surface refused because the surface is obscured.\0"; - case DDERR_SURFACELOST: - return "Access to this surface is being refused because the surface memory is gone. The DirectDrawSurface object representing this surface should have Restore called on it.\0"; - case DDERR_SURFACENOTATTACHED: - return "The requested surface is not attached.\0"; - case DDERR_TOOBIGHEIGHT: - return "Height requested by DirectDraw is too large.\0"; - case DDERR_TOOBIGSIZE: - return "Size requested by DirectDraw is too large, but the individual height and width are OK.\0"; - case DDERR_TOOBIGWIDTH: - return "Width requested by DirectDraw is too large.\0"; - case DDERR_UNSUPPORTED: - return "Action not supported.\0"; - case DDERR_UNSUPPORTEDFORMAT: - return "FOURCC format requested is unsupported by DirectDraw.\0"; - case DDERR_UNSUPPORTEDMASK: - return "Bitmask in the pixel format requested is unsupported by DirectDraw.\0"; - case DDERR_VERTICALBLANKINPROGRESS: - return "Vertical blank is in progress.\0"; - case DDERR_WASSTILLDRAWING: - return "Informs DirectDraw that the previous Blt which is transfering information to or from this Surface is incomplete.\0"; - case DDERR_WRONGMODE: - return "This surface can not be restored because it was created in a different mode.\0"; - case DDERR_XALIGN: - return "Rectangle provided was not horizontally aligned on required boundary.\0"; - default: - return "Unrecognized error value.\0"; - } -} +#pragma comment(lib, "ddraw") + +#include "mxdirectdraw.h" + +// 0x10100c68 +BOOL g_paletteIndexed8 = 0; + +// 0x10100c70 +BOOL DAT_10100c70 = 0; + +// OFFSET: LEGO1 0x1009e7a0 +HRESULT MxDirectDraw::SetEntries() +{ + HRESULT ret; + + if (m_paletteIndexed8) { + if (m_ddpal) { + ret = m_ddpal->SetEntries(0, 0, 256, m_pal1); + if (ret != DD_OK) { + FUN_1009e830("SetEntries failed", ret); + return 0; + } + } + } + + return 1; +} + +// OFFSET: LEGO1 0x1009e7f0 +HRESULT MxDirectDraw::FlipToGDISurface() +{ + HRESULT ret; + + if (m_ddraw) { + ret = m_ddraw->FlipToGDISurface(); + if (ret != DD_OK) { + FUN_1009e830("FlipToGDISurface failed", ret); + } + return !ret; + } + + return 1; +} + +// OFFSET: LEGO1 0x1009e830 +void MxDirectDraw::FUN_1009e830(char *error_msg, HRESULT ret) +{ + if (!DAT_10100c70) { + DAT_10100c70 = 1; + vtable08(); + if (m_unk85c) { + m_unk85c(error_msg, ret, m_unk864); + } + } + + DAT_10100c70 = 0; +} + +// OFFSET: LEGO1 0x1009d570 +int MxDirectDraw::GetPrimaryBitDepth() +{ + DWORD dwRGBBitCount; + LPDIRECTDRAW pDDraw; + DDSURFACEDESC ddsd; + + HRESULT result = DirectDrawCreate(NULL, &pDDraw, NULL); + dwRGBBitCount = 8; + if (!result) + { + memset(&ddsd, 0, sizeof(ddsd)); + ddsd.dwSize = sizeof(ddsd); + + pDDraw->GetDisplayMode(&ddsd); + dwRGBBitCount = ddsd.ddpfPixelFormat.dwRGBBitCount; + g_paletteIndexed8 = (ddsd.ddpfPixelFormat.dwFlags & DDPF_PALETTEINDEXED8) != 0; + pDDraw->Release(); + } + + return dwRGBBitCount; +} + +// OFFSET: LEGO1 0x1009e6a0 +int MxDirectDraw::Pause(int param_1) +{ + if (param_1) { + m_unk86c++; + + if (m_unk86c > 1) { + return 1; + } + + if (!SetEntries()) { + return 0; + } + + if (m_fullScreen) { + if (!FlipToGDISurface()) { + return 0; + } + + DrawMenuBar(hWindow); + RedrawWindow(hWindow, NULL, NULL, RDW_FRAME); + } + + return 1; + } else { + m_unk86c--; + if (m_unk86c > 0) { + return 1; + } else if (m_unk86c < 0) { + m_unk86c = 0; + } + FUN_1009e750(); + } + return 0; +} + +// OFFSET: LEGO1 0x1009e750 +HRESULT MxDirectDraw::FUN_1009e750() +{ + HRESULT ret; + + if (m_fullScreen && m_paletteIndexed8) { + if (m_ddpal) { + ret = m_ddpal->SetEntries(0, 0, 256, m_pal0); + if (ret != DD_OK) { + FUN_1009e830("SetEntries failed", ret); + return 0; + } + } + } + + return 1; +} + +// OFFSET: LEGO1 0x1009e880 +char * MxDirectDraw::ErrorToString(HRESULT error) +{ + switch(error) { + case DD_OK: + return "No error.\0"; + case DDERR_ALREADYINITIALIZED: + return "This object is already initialized.\0"; + case DDERR_BLTFASTCANTCLIP: + return "Return if a clipper object is attached to the source surface passed into a BltFast call.\0"; + case DDERR_CANNOTATTACHSURFACE: + return "This surface can not be attached to the requested surface.\0"; + case DDERR_CANNOTDETACHSURFACE: + return "This surface can not be detached from the requested surface.\0"; + case DDERR_CANTCREATEDC: + return "Windows can not create any more DCs.\0"; + case DDERR_CANTDUPLICATE: + return "Can't duplicate primary & 3D surfaces, or surfaces that are implicitly created.\0"; + case DDERR_CLIPPERISUSINGHWND: + return "An attempt was made to set a cliplist for a clipper object that is already monitoring an hwnd.\0"; + case DDERR_COLORKEYNOTSET: + return "No src color key specified for this operation.\0"; + case DDERR_CURRENTLYNOTAVAIL: + return "Support is currently not available.\0"; + case DDERR_DIRECTDRAWALREADYCREATED: + return "A DirectDraw object representing this driver has already been created for this process.\0"; + case DDERR_EXCEPTION: + return "An exception was encountered while performing the requested operation.\0"; + case DDERR_EXCLUSIVEMODEALREADYSET: + return "An attempt was made to set the cooperative level when it was already set to exclusive.\0"; + case DDERR_GENERIC: + return "Generic failure.\0"; + case DDERR_HEIGHTALIGN: + return "Height of rectangle provided is not a multiple of reqd alignment.\0"; + case DDERR_HWNDALREADYSET: + return "The CooperativeLevel HWND has already been set. It can not be reset while the process has surfaces or palettes created.\0"; + case DDERR_HWNDSUBCLASSED: + return "HWND used by DirectDraw CooperativeLevel has been subclassed, this prevents DirectDraw from restoring state.\0"; + case DDERR_IMPLICITLYCREATED: + return "This surface can not be restored because it is an implicitly created surface.\0"; + case DDERR_INCOMPATIBLEPRIMARY: + return "Unable to match primary surface creation request with existing primary surface.\0"; + case DDERR_INVALIDCAPS: + return "One or more of the caps bits passed to the callback are incorrect.\0"; + case DDERR_INVALIDCLIPLIST: + return "DirectDraw does not support the provided cliplist.\0"; + case DDERR_INVALIDDIRECTDRAWGUID: + return "The GUID passed to DirectDrawCreate is not a valid DirectDraw driver identifier.\0"; + case DDERR_INVALIDMODE: + return "DirectDraw does not support the requested mode.\0"; + case DDERR_INVALIDOBJECT: + return "DirectDraw received a pointer that was an invalid DIRECTDRAW object.\0"; + case DDERR_INVALIDPARAMS: + return "One or more of the parameters passed to the function are incorrect.\0"; + case DDERR_INVALIDPIXELFORMAT: + return "The pixel format was invalid as specified.\0"; + case DDERR_INVALIDPOSITION: + return "Returned when the position of the overlay on the destination is no longer legal for that destination.\0"; + case DDERR_INVALIDRECT: + return "Rectangle provided was invalid.\0"; + case DDERR_LOCKEDSURFACES: + return "Operation could not be carried out because one or more surfaces are locked.\0"; + case DDERR_NO3D: + return "There is no 3D present.\0"; + case DDERR_NOALPHAHW: + return "Operation could not be carried out because there is no alpha accleration hardware present or available.\0"; + case DDERR_NOBLTHW: + return "No blitter hardware present.\0"; + case DDERR_NOCLIPLIST: + return "No cliplist available.\0"; + case DDERR_NOCLIPPERATTACHED: + return "No clipper object attached to surface object.\0"; + case DDERR_NOCOLORCONVHW: + return "Operation could not be carried out because there is no color conversion hardware present or available.\0"; + case DDERR_NOCOLORKEY: + return "Surface doesn't currently have a color key\0"; + case DDERR_NOCOLORKEYHW: + return "Operation could not be carried out because there is no hardware support of the destination color key.\0"; + case DDERR_NOCOOPERATIVELEVELSET: + return "Create function called without DirectDraw object method SetCooperativeLevel being called.\0"; + case DDERR_NODC: + return "No DC was ever created for this surface.\0"; + case DDERR_NODDROPSHW: + return "No DirectDraw ROP hardware.\0"; + case DDERR_NODIRECTDRAWHW: + return "A hardware-only DirectDraw object creation was attempted but the driver did not support any hardware.\0"; + case DDERR_NOEMULATION: + return "Software emulation not available.\0"; + case DDERR_NOEXCLUSIVEMODE: + return "Operation requires the application to have exclusive mode but the application does not have exclusive mode.\0"; + case DDERR_NOFLIPHW: + return "Flipping visible surfaces is not supported.\0"; + case DDERR_NOGDI: + return "There is no GDI present.\0"; + case DDERR_NOHWND: + return "Clipper notification requires an HWND or no HWND has previously been set as the CooperativeLevel HWND.\0"; + case DDERR_NOMIRRORHW: + return "Operation could not be carried out because there is no hardware present or available.\0"; + case DDERR_NOOVERLAYDEST: + return "Returned when GetOverlayPosition is called on an overlay that UpdateOverlay has never been called on to establish a destination.\0"; + case DDERR_NOOVERLAYHW: + return "Operation could not be carried out because there is no overlay hardware present or available.\0"; + case DDERR_NOPALETTEATTACHED: + return "No palette object attached to this surface.\0"; + case DDERR_NOPALETTEHW: + return "No hardware support for 16 or 256 color palettes.\0"; + case DDERR_NORASTEROPHW: + return "Operation could not be carried out because there is no appropriate raster op hardware present or available.\0"; + case DDERR_NOROTATIONHW: + return "Operation could not be carried out because there is no rotation hardware present or available.\0"; + case DDERR_NOSTRETCHHW: + return "Operation could not be carried out because there is no hardware support for stretching.\0"; + case DDERR_NOT4BITCOLOR: + return "DirectDrawSurface is not in 4 bit color palette and the requested operation requires 4 bit color palette.\0"; + case DDERR_NOT4BITCOLORINDEX: + return "DirectDrawSurface is not in 4 bit color index palette and the requested operation requires 4 bit color index palette.\0"; + case DDERR_NOT8BITCOLOR: + return "DirectDrawSurface is not in 8 bit color mode and the requested operation requires 8 bit color.\0"; + case DDERR_NOTAOVERLAYSURFACE: + return "Returned when an overlay member is called for a non-overlay surface.\0"; + case DDERR_NOTEXTUREHW: + return "Operation could not be carried out because there is no texture mapping hardware present or available.\0"; + case DDERR_NOTFLIPPABLE: + return "An attempt has been made to flip a surface that is not flippable.\0"; + case DDERR_NOTFOUND: + return "Requested item was not found.\0"; + case DDERR_NOTLOCKED: + return "Surface was not locked. An attempt to unlock a surface that was not locked at all, or by this process, has been attempted.\0"; + case DDERR_NOTPALETTIZED: + return "The surface being used is not a palette-based surface.\0"; + case DDERR_NOVSYNCHW: + return "Operation could not be carried out because there is no hardware support for vertical blank synchronized operations.\0"; + case DDERR_NOZBUFFERHW: + return "Operation could not be carried out because there is no hardware support for zbuffer blitting.\0"; + case DDERR_NOZOVERLAYHW: + return "Overlay surfaces could not be z layered based on their BltOrder because the hardware does not support z layering of overlays.\0"; + case DDERR_OUTOFCAPS: + return "The hardware needed for the requested operation has already been allocated.\0"; + case DDERR_OUTOFMEMORY: + return "DirectDraw does not have enough memory to perform the operation.\0"; + case DDERR_OUTOFVIDEOMEMORY: + return "DirectDraw does not have enough memory to perform the operation.\0"; + case DDERR_OVERLAYCANTCLIP: + return "The hardware does not support clipped overlays.\0"; + case DDERR_OVERLAYCOLORKEYONLYONEACTIVE: + return "Can only have ony color key active at one time for overlays.\0"; + case DDERR_OVERLAYNOTVISIBLE: + return "Returned when GetOverlayPosition is called on a hidden overlay.\0"; + case DDERR_PALETTEBUSY: + return "Access to this palette is being refused because the palette is already locked by another thread.\0"; + case DDERR_PRIMARYSURFACEALREADYEXISTS: + return "This process already has created a primary surface.\0"; + case DDERR_REGIONTOOSMALL: + return "Region passed to Clipper::GetClipList is too small.\0"; + case DDERR_SURFACEALREADYATTACHED: + return "This surface is already attached to the surface it is being attached to.\0"; + case DDERR_SURFACEALREADYDEPENDENT: + return "This surface is already a dependency of the surface it is being made a dependency of.\0"; + case DDERR_SURFACEBUSY: + return "Access to this surface is being refused because the surface is already locked by another thread.\0"; + case DDERR_SURFACEISOBSCURED: + return "Access to surface refused because the surface is obscured.\0"; + case DDERR_SURFACELOST: + return "Access to this surface is being refused because the surface memory is gone. The DirectDrawSurface object representing this surface should have Restore called on it.\0"; + case DDERR_SURFACENOTATTACHED: + return "The requested surface is not attached.\0"; + case DDERR_TOOBIGHEIGHT: + return "Height requested by DirectDraw is too large.\0"; + case DDERR_TOOBIGSIZE: + return "Size requested by DirectDraw is too large, but the individual height and width are OK.\0"; + case DDERR_TOOBIGWIDTH: + return "Width requested by DirectDraw is too large.\0"; + case DDERR_UNSUPPORTED: + return "Action not supported.\0"; + case DDERR_UNSUPPORTEDFORMAT: + return "FOURCC format requested is unsupported by DirectDraw.\0"; + case DDERR_UNSUPPORTEDMASK: + return "Bitmask in the pixel format requested is unsupported by DirectDraw.\0"; + case DDERR_VERTICALBLANKINPROGRESS: + return "Vertical blank is in progress.\0"; + case DDERR_WASSTILLDRAWING: + return "Informs DirectDraw that the previous Blt which is transfering information to or from this Surface is incomplete.\0"; + case DDERR_WRONGMODE: + return "This surface can not be restored because it was created in a different mode.\0"; + case DDERR_XALIGN: + return "Rectangle provided was not horizontally aligned on required boundary.\0"; + default: + return "Unrecognized error value.\0"; + } +} diff --git a/isle.mak b/isle.mak index 90a2cead..84edc9a1 100644 --- a/isle.mak +++ b/isle.mak @@ -137,6 +137,7 @@ CLEAN : -@erase "$(INTDIR)\mxcontrolpresenter.obj" -@erase "$(INTDIR)\mxcore.obj" -@erase "$(INTDIR)\mxcriticalsection.obj" + -@erase "$(INTDIR)\mxdirectdraw.obj" -@erase "$(INTDIR)\mxdiskstreamcontroller.obj" -@erase "$(INTDIR)\mxdiskstreamprovider.obj" -@erase "$(INTDIR)\mxdsaction.obj" @@ -342,6 +343,7 @@ LINK32_OBJS= \ "$(INTDIR)\mxcontrolpresenter.obj" \ "$(INTDIR)\mxcore.obj" \ "$(INTDIR)\mxcriticalsection.obj" \ + "$(INTDIR)\mxdirectdraw.obj" \ "$(INTDIR)\mxdiskstreamcontroller.obj" \ "$(INTDIR)\mxdiskstreamprovider.obj" \ "$(INTDIR)\mxdsaction.obj" \ @@ -513,6 +515,7 @@ CLEAN : -@erase "$(INTDIR)\mxcontrolpresenter.obj" -@erase "$(INTDIR)\mxcore.obj" -@erase "$(INTDIR)\mxcriticalsection.obj" + -@erase "$(INTDIR)\mxdirectdraw.obj" -@erase "$(INTDIR)\mxdiskstreamcontroller.obj" -@erase "$(INTDIR)\mxdiskstreamprovider.obj" -@erase "$(INTDIR)\mxdsaction.obj" @@ -720,6 +723,7 @@ LINK32_OBJS= \ "$(INTDIR)\mxcontrolpresenter.obj" \ "$(INTDIR)\mxcore.obj" \ "$(INTDIR)\mxcriticalsection.obj" \ + "$(INTDIR)\mxdirectdraw.obj" \ "$(INTDIR)\mxdiskstreamcontroller.obj" \ "$(INTDIR)\mxdiskstreamprovider.obj" \ "$(INTDIR)\mxdsaction.obj" \ @@ -2502,9 +2506,6 @@ DEP_CPP_LEGOT=\ # Begin Source File SOURCE=.\LEGO1\legoworld.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_LEGOW=\ ".\LEGO1\legoentity.h"\ ".\LEGO1\legoworld.h"\ @@ -2517,22 +2518,6 @@ DEP_CPP_LEGOW=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_LEGOW=\ - ".\LEGO1\legoentity.h"\ - ".\LEGO1\legoworld.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxentity.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\legoworld.obj" : $(SOURCE) $(DEP_CPP_LEGOW) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File @@ -2714,9 +2699,6 @@ DEP_CPP_MXFLC=\ # Begin Source File SOURCE=.\LEGO1\mxloopingsmkpresenter.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXLOO=\ ".\LEGO1\mxcore.h"\ ".\LEGO1\mxcriticalsection.h"\ @@ -2732,25 +2714,6 @@ DEP_CPP_MXLOO=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXLOO=\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxcriticalsection.h"\ - ".\LEGO1\mxloopingsmkpresenter.h"\ - ".\LEGO1\mxmediapresenter.h"\ - ".\LEGO1\mxpresenter.h"\ - ".\LEGO1\mxsmkpresenter.h"\ - ".\LEGO1\mxtypes.h"\ - ".\LEGO1\mxvideopresenter.h"\ - - -"$(INTDIR)\mxloopingsmkpresenter.obj" : $(SOURCE) $(DEP_CPP_MXLOO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File @@ -3345,9 +3308,6 @@ DEP_CPP_MXDSS=\ # Begin Source File SOURCE=.\LEGO1\act3state.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_ACT3ST=\ ".\LEGO1\act3state.h"\ ".\LEGO1\legostate.h"\ @@ -3359,29 +3319,11 @@ DEP_CPP_ACT3ST=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_ACT3ST=\ - ".\LEGO1\act3state.h"\ - ".\LEGO1\legostate.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\act3state.obj" : $(SOURCE) $(DEP_CPP_ACT3ST) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\helicopterstate.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_HELICO=\ ".\LEGO1\helicopterstate.h"\ ".\LEGO1\legostate.h"\ @@ -3393,29 +3335,11 @@ DEP_CPP_HELICO=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_HELICO=\ - ".\LEGO1\helicopterstate.h"\ - ".\LEGO1\legostate.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\helicopterstate.obj" : $(SOURCE) $(DEP_CPP_HELICO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\jukeboxstate.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_JUKEBOX=\ ".\LEGO1\jukeboxstate.h"\ ".\LEGO1\legostate.h"\ @@ -3427,29 +3351,11 @@ DEP_CPP_JUKEBOX=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_JUKEBOX=\ - ".\LEGO1\jukeboxstate.h"\ - ".\LEGO1\legostate.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\jukeboxstate.obj" : $(SOURCE) $(DEP_CPP_JUKEBOX) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\legoact2state.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_LEGOAC=\ ".\LEGO1\legoact2state.h"\ ".\LEGO1\legostate.h"\ @@ -3461,29 +3367,11 @@ DEP_CPP_LEGOAC=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_LEGOAC=\ - ".\LEGO1\legoact2state.h"\ - ".\LEGO1\legostate.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\legoact2state.obj" : $(SOURCE) $(DEP_CPP_LEGOAC) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\legopathcontroller.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_LEGOPATH=\ ".\LEGO1\legopathcontroller.h"\ ".\LEGO1\mxcore.h"\ @@ -3494,28 +3382,11 @@ DEP_CPP_LEGOPATH=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_LEGOPATH=\ - ".\LEGO1\legopathcontroller.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\legopathcontroller.obj" : $(SOURCE) $(DEP_CPP_LEGOPATH) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\legovideomanager.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_LEGOV=\ ".\LEGO1\lego3dmanager.h"\ ".\LEGO1\lego3dview.h"\ @@ -3537,39 +3408,11 @@ DEP_CPP_LEGOV=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_LEGOV=\ - ".\LEGO1\lego3dmanager.h"\ - ".\LEGO1\lego3dview.h"\ - ".\LEGO1\legovideomanager.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxcriticalsection.h"\ - ".\LEGO1\mxpalette.h"\ - ".\LEGO1\mxrect32.h"\ - ".\LEGO1\mxtypes.h"\ - ".\LEGO1\mxunknown100dc6b0.h"\ - ".\LEGO1\mxvariabletable.h"\ - ".\LEGO1\mxvideomanager.h"\ - ".\LEGO1\mxvideoparam.h"\ - ".\LEGO1\mxvideoparamflags.h"\ - ".\LEGO1\viewmanager.h"\ - - -"$(INTDIR)\legovideomanager.obj" : $(SOURCE) $(DEP_CPP_LEGOV) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxbackgroundaudiomanager.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXBAC=\ ".\LEGO1\mxbackgroundaudiomanager.h"\ ".\LEGO1\mxcore.h"\ @@ -3581,29 +3424,11 @@ DEP_CPP_MXBAC=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXBAC=\ - ".\LEGO1\mxbackgroundaudiomanager.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxbackgroundaudiomanager.obj" : $(SOURCE) $(DEP_CPP_MXBAC)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdiskstreamprovider.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDISK=\ ".\LEGO1\mxcore.h"\ ".\LEGO1\mxdiskstreamprovider.h"\ @@ -3615,29 +3440,11 @@ DEP_CPP_MXDISK=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDISK=\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdiskstreamprovider.h"\ - ".\LEGO1\mxstreamprovider.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdiskstreamprovider.obj" : $(SOURCE) $(DEP_CPP_MXDISK) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsaction.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSA=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3650,30 +3457,11 @@ DEP_CPP_MXDSA=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSA=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsaction.obj" : $(SOURCE) $(DEP_CPP_MXDSA) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsanim.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSAN=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3688,32 +3476,11 @@ DEP_CPP_MXDSAN=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSAN=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsanim.h"\ - ".\LEGO1\mxdsmediaaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsanim.obj" : $(SOURCE) $(DEP_CPP_MXDSAN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsevent.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSE=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3728,32 +3495,11 @@ DEP_CPP_MXDSE=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSE=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsevent.h"\ - ".\LEGO1\mxdsmediaaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsevent.obj" : $(SOURCE) $(DEP_CPP_MXDSE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsmediaaction.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSM=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3767,31 +3513,11 @@ DEP_CPP_MXDSM=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSM=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsmediaaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsmediaaction.obj" : $(SOURCE) $(DEP_CPP_MXDSM) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsmultiaction.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSMU=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3805,31 +3531,11 @@ DEP_CPP_MXDSMU=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSMU=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsmultiaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsmultiaction.obj" : $(SOURCE) $(DEP_CPP_MXDSMU) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsobjectaction.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSOB=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3844,32 +3550,11 @@ DEP_CPP_MXDSOB=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSOB=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsmediaaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxdsobjectaction.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsobjectaction.obj" : $(SOURCE) $(DEP_CPP_MXDSOB) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsparallelaction.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSP=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3884,32 +3569,11 @@ DEP_CPP_MXDSP=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSP=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsmultiaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxdsparallelaction.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsparallelaction.obj" : $(SOURCE) $(DEP_CPP_MXDSP) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsselectaction.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSSE=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3925,33 +3589,11 @@ DEP_CPP_MXDSSE=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSSE=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsmultiaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxdsparallelaction.h"\ - ".\LEGO1\mxdsselectaction.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsselectaction.obj" : $(SOURCE) $(DEP_CPP_MXDSSE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsserialaction.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSSER=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -3966,32 +3608,11 @@ DEP_CPP_MXDSSER=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSSER=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsmultiaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxdsserialaction.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsserialaction.obj" : $(SOURCE) $(DEP_CPP_MXDSSER) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdssound.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSSO=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -4006,32 +3627,11 @@ DEP_CPP_MXDSSO=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSSO=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsmediaaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxdssound.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdssound.obj" : $(SOURCE) $(DEP_CPP_MXDSSO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdsstill.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSST=\ ".\LEGO1\mxatomid.h"\ ".\LEGO1\mxcore.h"\ @@ -4046,32 +3646,11 @@ DEP_CPP_MXDSST=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSST=\ - ".\LEGO1\mxatomid.h"\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdsaction.h"\ - ".\LEGO1\mxdsmediaaction.h"\ - ".\LEGO1\mxdsobject.h"\ - ".\LEGO1\mxdsstill.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdsstill.obj" : $(SOURCE) $(DEP_CPP_MXDSST) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxdssubscriber.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXDSSU=\ ".\LEGO1\mxcore.h"\ ".\LEGO1\mxdssubscriber.h"\ @@ -4082,28 +3661,11 @@ DEP_CPP_MXDSSU=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" - -DEP_CPP_MXDSSU=\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxdssubscriber.h"\ - ".\LEGO1\mxtypes.h"\ - - -"$(INTDIR)\mxdssubscriber.obj" : $(SOURCE) $(DEP_CPP_MXDSSU) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - # End Source File ################################################################################ # Begin Source File SOURCE=.\LEGO1\mxloopingflcpresenter.cpp - -!IF "$(CFG)" == "LEGO1 - Win32 Release" - DEP_CPP_MXLOOP=\ ".\LEGO1\mxcore.h"\ ".\LEGO1\mxcriticalsection.h"\ @@ -4119,20 +3681,29 @@ DEP_CPP_MXLOOP=\ $(CPP) $(CPP_PROJ) $(SOURCE) -!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" +# End Source File +################################################################################ +# Begin Source File -DEP_CPP_MXLOOP=\ - ".\LEGO1\mxcore.h"\ - ".\LEGO1\mxcriticalsection.h"\ - ".\LEGO1\mxflcpresenter.h"\ - ".\LEGO1\mxloopingflcpresenter.h"\ - ".\LEGO1\mxmediapresenter.h"\ - ".\LEGO1\mxpresenter.h"\ - ".\LEGO1\mxtypes.h"\ - ".\LEGO1\mxvideopresenter.h"\ +SOURCE=.\LEGO1\mxdirectdraw.cpp + +!IF "$(CFG)" == "LEGO1 - Win32 Release" + +DEP_CPP_MXDIR=\ + ".\LEGO1\mxdirectdraw.h"\ -"$(INTDIR)\mxloopingflcpresenter.obj" : $(SOURCE) $(DEP_CPP_MXLOOP) "$(INTDIR)" +"$(INTDIR)\mxdirectdraw.obj" : $(SOURCE) $(DEP_CPP_MXDIR) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +!ELSEIF "$(CFG)" == "LEGO1 - Win32 Debug" + +DEP_CPP_MXDIR=\ + ".\LEGO1\mxdirectdraw.h"\ + + +"$(INTDIR)\mxdirectdraw.obj" : $(SOURCE) $(DEP_CPP_MXDIR) "$(INTDIR)" $(CPP) $(CPP_PROJ) $(SOURCE) diff --git a/isle.mdp b/isle.mdp index a5fc4336c047d2ec813b3d9e4b9a8ed8026f48de..2f25d801ccbe31385d14fa4175576709c469d739 100644 GIT binary patch delta 409 zcmZp8!qV`9g~uz{-GG^ag<%#01Jm}6+>Bos7csF2^fTx%%w$kvkYM-^1bhse8JRvX zPT~+|`~zgYVVuMzuzeplqZ8jog>{Vln^$uKmAWy`V3@=Z!7>SC%16dcG6GE7w{kOj z1Jx|WrN$tMY5QhwMqi+sKwN5Eh)@&Zp~9#$`Cx(kNJ*AREEFk_gfNsKQ6r1LyFaFz)7`(_ z3owvnOR{K7mTAi#Z}iongAY3RsDqb_BCH7O;_wnaNj~Uc%knPUvcq9IGi&|-*U$Rn z2rU$;e=nOXnYm8VZ^6Whh_2yv5$pBqjCZ^X|Ht%1L}p?e=Y|109S zcwM|r+$vBP`{=(>D>se?JR9Es-Z;IFJ>4#L<)*++`oHsY;&*plJpFgq8t;8NVs9aQpb{j5w=m_IMTB51B;vvE5Go>N#6*aq@nQ2hH!p2rIE z>_T8KTUuI@_(KZ+Rgee!d%A$X1@Y>G{0}R6_QCJ?y)+v(r&)9H%xpZ##&UitILUKF z@jvztvcK>3^w-7TqWGg7!0$>rZ9boFOq(myWSS0An3=ixa8&Vs75IPesZH^?k{@aD zgZh-e$^PD|`0MqEGk#G{`3Wfn!1^cl_cq1AHl|DB4zo)1rF%@?yK z&g#h|9klw_6&8OW{w~G;ON#$t5C2!3^?SGCKM%C{mHf?AGy44NzrEJ@L->0`%x?Pq z?_O(wn4iM-@FRapJACIq$$l+ByJ(l(e!25p+j-ru7qhiBumjKaHquV>xvY~y%fwvq z*LMCjnCEDh-s0((nA&x%?fjQPp5ME;DV_#Ae*Q%MF#W>+Mfu6j!_On?iw1HE+fKGP z9D=%f*-+0Ci6=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