Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
e22c46992f | |||
d1b807ea50 | |||
1992190e80 | |||
dec2cb70fc |
9
.gitignore
vendored
9
.gitignore
vendored
@ -18,4 +18,11 @@
|
|||||||
/msvc5/sb2decomp/*.plg
|
/msvc5/sb2decomp/*.plg
|
||||||
/msvc5/sb2decomp/Debug
|
/msvc5/sb2decomp/Debug
|
||||||
/msvc5/sb2decomp/Release
|
/msvc5/sb2decomp/Release
|
||||||
Speedy Eggbert 2 Source.vcxproj.user
|
Speedy Eggbert 2 Source.vcxproj.user
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DATA/*
|
||||||
|
IMAGE08/*
|
||||||
|
IMAGE16/*
|
||||||
|
SOUND/*
|
||||||
|
@ -70,7 +70,7 @@ https://drive.openeggbert.com/other/Visual_Studio_Community_2017.exe
|
|||||||
|
|
||||||
Click on "Speedy Eggbert 2 Source.sln" and select Open with "Microsoft Visual Studio 2017"
|
Click on "Speedy Eggbert 2 Source.sln" and select Open with "Microsoft Visual Studio 2017"
|
||||||
|
|
||||||
Set the Platform to x86 and debugging to Win32.
|
Set the Platform to x86 and Debugging to Win32.
|
||||||
|
|
||||||
#### Set "Additional Options"
|
#### Set "Additional Options"
|
||||||
|
|
||||||
@ -78,6 +78,10 @@ Properties / Configuration Properties / C/C++ / Command Line / Additional Option
|
|||||||
|
|
||||||
Add : /wd4700 /wd4703
|
Add : /wd4700 /wd4703
|
||||||
|
|
||||||
|
#### Platform Toolset - v140
|
||||||
|
|
||||||
|
Project Properties > General > change Platform Toolset from v140_xp to v140,
|
||||||
|
|
||||||
#### Build
|
#### Build
|
||||||
|
|
||||||
Click with the right mouse button on "Speedy Eggbert 2 Source.sln"
|
Click with the right mouse button on "Speedy Eggbert 2 Source.sln"
|
||||||
|
@ -23,14 +23,13 @@
|
|||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<ProjectGuid>{e424a3cb-c8b8-447c-be63-41a57e65b449}</ProjectGuid>
|
<ProjectGuid>{e424a3cb-c8b8-447c-be63-41a57e65b449}</ProjectGuid>
|
||||||
<RootNamespace>SpeedyEggbert2Source</RootNamespace>
|
<RootNamespace>SpeedyEggbert2Source</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||||
</WindowsTargetPlatformVersion>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v140_xp</PlatformToolset>
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
<CharacterSet>NotSet</CharacterSet>
|
<CharacterSet>NotSet</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
@ -84,6 +83,7 @@
|
|||||||
<FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
|
<FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
<IntrinsicFunctions>false</IntrinsicFunctions>
|
<IntrinsicFunctions>false</IntrinsicFunctions>
|
||||||
|
<AdditionalOptions>/wd4700 /wd4703 %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
#include <WTypes.h>
|
#include <WTypes.h>
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
//#include <stdio.h>
|
//#include <stdio.h>
|
||||||
//#include <ddraw.h>
|
//#include <ddraw.h>
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#ifndef POINT
|
#ifndef POINT
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
* Content: Routines for loading bitmap and palettes from resources
|
* Content: Routines for loading bitmap and palettes from resources
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// DecBlock.cpp
|
// DecBlock.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "decor.h"
|
#include "decor.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// DecBlupi.cpp
|
// DecBlupi.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "decor.h"
|
#include "decor.h"
|
||||||
#include "text.h" // debug
|
#include "text.h" // debug
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// DecDesign.cpp
|
// DecDesign.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "decor.h"
|
#include "decor.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// DecIO.cpp
|
// DecIO.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "decor.h"
|
#include "decor.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// DecMove.cpp
|
// DecMove.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "decor.h"
|
#include "decor.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// DecNet.cpp
|
// DecNet.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "decor.h"
|
#include "decor.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// Decor.cpp
|
// Decor.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
//#include <windows.h>
|
//#include <windows.h>
|
||||||
//#include <stdlib.h>
|
//#include <stdlib.h>
|
||||||
//#include <stdio.h>
|
//#include <stdio.h>
|
||||||
|
24
src/def.h
24
src/def.h
@ -1363,32 +1363,44 @@ POINT operator/(POINT p, const int& a)
|
|||||||
|
|
||||||
POINT& operator+=(POINT& p, const POINT& a)
|
POINT& operator+=(POINT& p, const POINT& a)
|
||||||
{
|
{
|
||||||
return POINT( p.x += a.x, p.y += a.y );
|
p.x += a.x;
|
||||||
|
p.y += a.y;
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
POINT& operator-=(POINT& p, const POINT& a)
|
POINT& operator-=(POINT& p, const POINT& a)
|
||||||
{
|
{
|
||||||
return POINT( p.x -= a.x, p.y -= a.y );
|
p.x -= a.x;
|
||||||
|
p.y -= a.y;
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
POINT& operator*=(POINT& p, const POINT& a)
|
POINT& operator*=(POINT& p, const POINT& a)
|
||||||
{
|
{
|
||||||
return POINT( p.x *= a.x, p.y *= a.y );
|
p.x *= a.x;
|
||||||
|
p.y *= a.y;
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
POINT& operator/=(POINT& p, const POINT& a)
|
POINT& operator/=(POINT& p, const POINT& a)
|
||||||
{
|
{
|
||||||
return POINT( p.x /= a.x, p.y /= a.y );
|
p.x /= a.x;
|
||||||
|
p.y /= a.y;
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
POINT& operator*=(POINT& p, const int& a)
|
POINT& operator*=(POINT& p, const int& a)
|
||||||
{
|
{
|
||||||
return POINT( p.x *= a, p.y *= a );
|
p.x *= a;
|
||||||
|
p.y *= a;
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
POINT& operator/=(POINT& p, const int& a)
|
POINT& operator/=(POINT& p, const int& a)
|
||||||
{
|
{
|
||||||
return POINT( p.x /= a, p.y /= a );
|
p.x /= a;
|
||||||
|
p.y /= a;
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(POINT a, const POINT& b)
|
bool operator!=(POINT a, const POINT& b)
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// Event.cpp
|
// Event.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -2423,7 +2426,7 @@ BOOL CEvent::DrawButtons()
|
|||||||
|
|
||||||
if (m_phase == WM_PHASE_INIT)
|
if (m_phase == WM_PHASE_INIT)
|
||||||
{
|
{
|
||||||
DrawText(m_pPixmap, POINT( 414, 446 ), "Version 2.2", FONTLITTLE);
|
DrawText(m_pPixmap, POINT( 414, 446 ), const_cast<char*>("Version 2.2"), FONTLITTLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_phase == WM_PHASE_GAMER)
|
if (m_phase == WM_PHASE_GAMER)
|
||||||
@ -2909,7 +2912,7 @@ BOOL CEvent::DrawButtons()
|
|||||||
// now that the decomp is looking convincingly like the retail game,
|
// now that the decomp is looking convincingly like the retail game,
|
||||||
// we should clearly differentiate the two when sharing WIP screenshots/videos to reduce confusion.
|
// we should clearly differentiate the two when sharing WIP screenshots/videos to reduce confusion.
|
||||||
{
|
{
|
||||||
DrawTextLeft(m_pPixmap, POINT(LXIMAGE - GetTextWidth("DECOMP -- " __DATE__), 0), "DECOMP -- " __DATE__, FONTGOLD);
|
DrawTextLeft(m_pPixmap, POINT(LXIMAGE - GetTextWidth(const_cast<char*>("DECOMP -- " __DATE__)), 0), const_cast<char*>("DECOMP -- " __DATE__), FONTGOLD);
|
||||||
}
|
}
|
||||||
///////
|
///////
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// Jauge.cpp
|
// Jauge.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
//#include <stdlib.h>
|
//#include <stdlib.h>
|
||||||
//#include <stdio.h>
|
//#include <stdio.h>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Menu.cpp
|
// Menu.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// Misc.cpp
|
// Misc.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include <dsound.h>
|
#include <dsound.h>
|
||||||
#include <ddraw.h>
|
#include <ddraw.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// movie.cpp
|
// movie.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
#include <commdlg.h>
|
#include <commdlg.h>
|
||||||
@ -33,7 +36,7 @@ BOOL CMovie::initAVI()
|
|||||||
// set up the open parameters
|
// set up the open parameters
|
||||||
mciOpen.dwCallback = 0L;
|
mciOpen.dwCallback = 0L;
|
||||||
mciOpen.wDeviceID = 0;
|
mciOpen.wDeviceID = 0;
|
||||||
mciOpen.lpstrDeviceType = AVI_VIDEO;
|
mciOpen.lpstrDeviceType = const_cast<char*>(AVI_VIDEO);
|
||||||
mciOpen.lpstrElementName = NULL;
|
mciOpen.lpstrElementName = NULL;
|
||||||
mciOpen.lpstrAlias = NULL;
|
mciOpen.lpstrAlias = NULL;
|
||||||
mciOpen.dwStyle = 0;
|
mciOpen.dwStyle = 0;
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// Network.cpp
|
// Network.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include "dplay.h"
|
#include "dplay.h"
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// CPixmap.cpp
|
// CPixmap.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// sound.cpp
|
// sound.cpp
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
|
|
||||||
#if _BASS && !_LEGACY
|
#if _BASS && !_LEGACY
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// Text.cpp
|
// Text.cpp
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
|
|
||||||
//#include <windows.h>
|
//#include <windows.h>
|
||||||
//#include <stdlib.h>
|
//#include <stdlib.h>
|
||||||
//#include <stdio.h>
|
//#include <stdio.h>
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
*
|
*
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
|
typedef struct IUnknown IUnknown;
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include "wave.h"
|
#include "wave.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user