Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
e22c46992f | |||
d1b807ea50 | |||
1992190e80 | |||
dec2cb70fc |
7
.gitignore
vendored
7
.gitignore
vendored
@ -19,3 +19,10 @@
|
||||
/msvc5/sb2decomp/Debug
|
||||
/msvc5/sb2decomp/Release
|
||||
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"
|
||||
|
||||
Set the Platform to x86 and debugging to Win32.
|
||||
Set the Platform to x86 and Debugging to Win32.
|
||||
|
||||
#### Set "Additional Options"
|
||||
|
||||
@ -78,6 +78,10 @@ Properties / Configuration Properties / C/C++ / Command Line / Additional Option
|
||||
|
||||
Add : /wd4700 /wd4703
|
||||
|
||||
#### Platform Toolset - v140
|
||||
|
||||
Project Properties > General > change Platform Toolset from v140_xp to v140,
|
||||
|
||||
#### Build
|
||||
|
||||
Click with the right mouse button on "Speedy Eggbert 2 Source.sln"
|
||||
|
@ -23,14 +23,13 @@
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{e424a3cb-c8b8-447c-be63-41a57e65b449}</ProjectGuid>
|
||||
<RootNamespace>SpeedyEggbert2Source</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>
|
||||
</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
@ -84,6 +83,7 @@
|
||||
<FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<IntrinsicFunctions>false</IntrinsicFunctions>
|
||||
<AdditionalOptions>/wd4700 /wd4703 %(AdditionalOptions)</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#include <WTypes.h>
|
||||
|
@ -6,6 +6,8 @@
|
||||
//#include <stdio.h>
|
||||
//#include <ddraw.h>
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#ifndef POINT
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
@ -6,6 +6,9 @@
|
||||
* Content: Routines for loading bitmap and palettes from resources
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
@ -1,6 +1,9 @@
|
||||
// DecBlock.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include "def.h"
|
||||
#include "decor.h"
|
||||
#include "misc.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
// DecBlupi.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#include "misc.h"
|
||||
#include "decor.h"
|
||||
#include "text.h" // debug
|
||||
|
@ -1,6 +1,9 @@
|
||||
// DecDesign.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include "def.h"
|
||||
#include "decor.h"
|
||||
#include "misc.h"
|
||||
|
@ -1,6 +1,9 @@
|
||||
// DecIO.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include "def.h"
|
||||
#include "decor.h"
|
||||
#include "misc.h"
|
||||
|
@ -1,6 +1,9 @@
|
||||
// DecMove.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include "def.h"
|
||||
#include "decor.h"
|
||||
#include "misc.h"
|
||||
|
@ -1,6 +1,9 @@
|
||||
// DecNet.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include "def.h"
|
||||
#include "decor.h"
|
||||
#include "misc.h"
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Decor.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
//#include <windows.h>
|
||||
//#include <stdlib.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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
return POINT( p.x *= a, p.y *= a );
|
||||
p.x *= a;
|
||||
p.y *= a;
|
||||
return p;
|
||||
}
|
||||
|
||||
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)
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Event.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@ -2423,7 +2426,7 @@ BOOL CEvent::DrawButtons()
|
||||
|
||||
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)
|
||||
@ -2909,7 +2912,7 @@ BOOL CEvent::DrawButtons()
|
||||
// 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.
|
||||
{
|
||||
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
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
//#include <stdlib.h>
|
||||
//#include <stdio.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
// Menu.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Misc.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include <dsound.h>
|
||||
#include <ddraw.h>
|
||||
#include <stdio.h>
|
||||
|
@ -1,6 +1,9 @@
|
||||
// movie.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#include <commdlg.h>
|
||||
@ -33,7 +36,7 @@ BOOL CMovie::initAVI()
|
||||
// set up the open parameters
|
||||
mciOpen.dwCallback = 0L;
|
||||
mciOpen.wDeviceID = 0;
|
||||
mciOpen.lpstrDeviceType = AVI_VIDEO;
|
||||
mciOpen.lpstrDeviceType = const_cast<char*>(AVI_VIDEO);
|
||||
mciOpen.lpstrElementName = NULL;
|
||||
mciOpen.lpstrAlias = NULL;
|
||||
mciOpen.dwStyle = 0;
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Network.cpp
|
||||
//
|
||||
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
#include "dplay.h"
|
||||
|
@ -1,6 +1,9 @@
|
||||
// CPixmap.cpp
|
||||
//
|
||||
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -1,5 +1,8 @@
|
||||
// sound.cpp
|
||||
//
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#include "def.h"
|
||||
|
||||
#if _BASS && !_LEGACY
|
||||
|
@ -1,5 +1,8 @@
|
||||
// Text.cpp
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
|
||||
//#include <windows.h>
|
||||
//#include <stdlib.h>
|
||||
//#include <stdio.h>
|
||||
|
@ -9,6 +9,8 @@
|
||||
*
|
||||
******************************************************************/
|
||||
|
||||
typedef struct IUnknown IUnknown;
|
||||
|
||||
#include <windows.h>
|
||||
#include "wave.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user