1
0
mirror of https://github.com/jummy0/sb2-decomp synced 2025-03-15 04:24:48 +01:00
This commit is contained in:
jummy 2024-08-16 21:09:59 -05:00
parent e06915b0d8
commit 9e84383923
27 changed files with 47 additions and 40 deletions

8
.gitignore vendored
View File

@ -3,3 +3,11 @@
################################################################################
/.vs
/Debug
/Release
/x64
/Speedy E.e424a3cb
/DATA
/IMAGE*
/MOVIE
/SOUND

View File

@ -1 +1 @@
Benchmark = 30
Benchmark = -15725396

Binary file not shown.

View File

@ -1,4 +1,4 @@
 blupi.cpp
 decor.cpp
c:\users\jimmy\documents\github\sb2-decomp\def.h(241): warning C4005: 'MAXMOVEOBJECT': macro redefinition
c:\users\jimmy\documents\github\sb2-decomp\def.h(83): note: see previous definition of 'MAXMOVEOBJECT'
c:\users\jimmy\documents\github\sb2-decomp\def.h(480): warning C4005: 'WM_PHASE_PRIVATE': macro redefinition
@ -8,21 +8,34 @@ c:\users\jimmy\documents\github\sb2-decomp\resource.h(106): warning C4005: 'TX_S
c:\users\jimmy\documents\github\sb2-decomp\decor.h(29): warning C4005: 'MAXMOVEOBJECT': macro redefinition
c:\users\jimmy\documents\github\sb2-decomp\def.h(241): note: see previous definition of 'MAXMOVEOBJECT'
c:\users\jimmy\documents\github\sb2-decomp\event.h(100): warning C4091: 'typedef ': ignored on left of '' when no variable is declared
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(242): warning C4101: 'targetlevel': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(238): warning C4101: 'rcRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(238): warning C4101: 'clip': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(242): warning C4101: 'i': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(241): warning C4101: 'posMouse': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(354): warning C4293: '<<': shift count negative or too big, undefined behavior
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(363): warning C4293: '<<': shift count negative or too big, undefined behavior
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(345): warning C4101: 'posMouse': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(615): warning C4101: 'num2': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(619): warning C4101: 'open': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(663): warning C4101: 'rcRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\blupi.cpp(798): warning C4101: 'timeStep': unreferenced local variable
Generating Code...
Skipping... (no relevant changes detected)
pixmap.cpp
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(132): warning C4101: 'i': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(543): warning C4554: '&': check operator precedence for possible error; use parentheses to clarify precedence
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(568): warning C4101: 'text': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(997): warning C4101: 'tinyRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(1033): warning C4553: '==': operator has no effect; did you intend '='?
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(1266): warning C4553: '==': operator has no effect; did you intend '='?
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(1519): warning C4553: '==': operator has no effect; did you intend '='?
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(6521): warning C4101: 'type2': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(6554): warning C4244: '=': conversion from 'LONG' to 'short', possible loss of data
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(6577): warning C4101: 'players': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(6692): warning C4101: 'rect2': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(6691): warning C4101: 'rect1': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(6693): warning C4101: 'rect3': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(6774): warning C4101: 'moveObject': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(6789): warning C4101: 'tinyRect2': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(7855): warning C4101: 'tinyRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8097): warning C4101: 'tinyRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8152): warning C4101: 'tinyRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8174): warning C4101: 'tinyRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8210): warning C4101: 'src3': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8240): warning C4101: 'tinyRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8268): warning C4101: 'tinyRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8296): warning C4101: 'tinyRect': unreferenced local variable
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8775): warning C4553: '==': operator has no effect; did you intend '='?
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(9008): warning C4129: '%': unrecognized character escape sequence
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(9012): warning C4129: 'w': unrecognized character escape sequence
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(5295): warning C4715: 'CDecor::BlupiIsGround': not all control paths return a value
c:\users\jimmy\documents\github\sb2-decomp\decor.cpp(8218): warning C4715: 'CDecor::MoveObjectDetect': not all control paths return a value
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
blupi.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification
pixmap.obj : warning LNK4006: "int __cdecl Benchmark(void)" (?Benchmark@@YAHXZ) already defined in blupi.obj; second definition ignored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -752,7 +752,6 @@ static BOOL DoInit(HINSTANCE hInstance, LPSTR lpCmdLine, int nCmdShow)
if (!g_pPixmap->CacheAll(TRUE, g_hWnd, g_bFullScreen, g_bTrueColor, g_bTrueColorDecor, g_mouseType, "init.blp", 0))
return FALSE;
OutputDebug("SavePalette\n");
g_pPixmap->SavePalette();
OutputDebug("InitSysPalette\n");
@ -778,7 +777,7 @@ static BOOL DoInit(HINSTANCE hInstance, LPSTR lpCmdLine, int nCmdShow)
g_pEvent = new CEvent;
if (g_pEvent == NULL) return InitFail("New event", FALSE);
g_pEvent->Create(g_hWnd, g_pPixmap, g_pDecor, g_pSound, g_pMovie, g_pNetwork);
g_pEvent->Create(hInstance, g_hWnd, g_pPixmap, g_pDecor, g_pSound, g_pNetwork, g_pMovie);
g_pEvent->SetFullScreen(g_bFullScreen);
g_pEvent->SetMouseType(g_mouseType);
g_pEvent->ChangePhase(WM_PHASE_INIT);

View File

@ -121,19 +121,8 @@ BOOL CDecor::LoadImages()
void CDecor::InitGamer()
{
int i;
BYTE* door;
m_nbVies = 3;
door = m_doors;
for (i != 0; i = 50; i++)
{
*(int*)door = 0x1010101;
door = door + 4;
}
return;
ZeroMemory(m_doors, sizeof(m_doors));
}
// The only seemingly sane function.

View File

@ -1286,7 +1286,7 @@ CEvent::CEvent()
m_bCtrlDown = FALSE;
m_input = 0;
for (i != 0; i = 20; i++)
for (i = 0; i < 20; i++)
{
m_menuIndex = 0;
m_menuIndex++;
@ -1309,10 +1309,9 @@ CEvent::~CEvent()
return;
}
void CEvent::Create(HWND hWnd, CPixmap *pPixmap, CDecor *pDecor,
CSound *pSound, CMovie *pMovie, CNetwork *pNetwork)
void CEvent::Create(HINSTANCE hInstance, HWND hWnd, CPixmap *pPixmap, CDecor *pDecor,
CSound *pSound, CNetwork *pNetwork, CMovie *pMovie)
{
HINSTANCE hInstance;
POINT pos;
m_hInstance = hInstance;

View File

@ -108,7 +108,7 @@ public:
void OutputNetDebug(const char* str);
POINT GetMousePos();
void Create(HWND hWnd, CPixmap *pPixmap, CDecor *pDecor, CSound *pSound, CMovie *pMovie, CNetwork *pNetwork);
void Create(HINSTANCE hInstance, HWND hWnd, CPixmap *pPixmap, CDecor *pDecor, CSound *pSound, CNetwork *pNetwork, CMovie *pMovie);
void SetFullScreen(BOOL bFullScreen);
void SetMouseType(int mouseType);
int GetWorld();

View File

@ -857,6 +857,7 @@ LABEL1:
BOOL CPixmap::CacheAll(BOOL cache, HWND hWnd, BOOL bFullScreen, BOOL bTrueColor, BOOL bTrueColorDecor, int mouseType, const char* pFilename, int region)
{
SetDebug(TRUE); //
char filename[100];
char image[12];
POINT totalDim;
@ -898,7 +899,7 @@ BOOL CPixmap::CacheAll(BOOL cache, HWND hWnd, BOOL bFullScreen, BOOL bTrueColor,
SavePalette();
OutputDebug("InitSysPalette\n");
InitSysPalette();
SetDebug(FALSE);
//SetDebug(FALSE);
if (cache == FALSE)
{
@ -979,7 +980,6 @@ BOOL CPixmap::CacheAll(BOOL cache, HWND hWnd, BOOL bFullScreen, BOOL bTrueColor,
SetTransparent(CHJAUGE, RGB(0, 0, 255));
if (BackgroundCache(CHTEXT, "text.blp", totalDim, iconDim, FALSE) != FALSE)
{
return FALSE;
SetTransparent(CHTEXT, RGB(0, 0, 255));
if (BackgroundCache(CHLITTLE, "little.blp", totalDim, iconDim, FALSE) != FALSE)
{
@ -987,7 +987,6 @@ BOOL CPixmap::CacheAll(BOOL cache, HWND hWnd, BOOL bFullScreen, BOOL bTrueColor,
Benchmark();
return TRUE;
}
return FALSE;
}
return FALSE;
}
@ -1027,7 +1026,7 @@ int CPixmap::Benchmark()
pos.x = 13;
pos.y = 13;
QuickIcon(1, 1, pos);
num5++;
num5--;
} while (num5);
ftime(time);
i = (int)time;