mirror of
https://github.com/jummy0/sb2-decomp
synced 2025-03-15 04:24:48 +01:00
cunk
This commit is contained in:
parent
e06915b0d8
commit
9e84383923
8
.gitignore
vendored
8
.gitignore
vendored
@ -3,3 +3,11 @@
|
||||
################################################################################
|
||||
|
||||
/.vs
|
||||
/Debug
|
||||
/Release
|
||||
/x64
|
||||
/Speedy E.e424a3cb
|
||||
/DATA
|
||||
/IMAGE*
|
||||
/MOVIE
|
||||
/SOUND
|
||||
|
@ -1 +1 @@
|
||||
Benchmark = 30
|
||||
Benchmark = -15725396
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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.
BIN
Debug/blupi.obj
BIN
Debug/blupi.obj
Binary file not shown.
BIN
Debug/button.obj
BIN
Debug/button.obj
Binary file not shown.
BIN
Debug/ddutil.obj
BIN
Debug/ddutil.obj
Binary file not shown.
BIN
Debug/decor.obj
BIN
Debug/decor.obj
Binary file not shown.
BIN
Debug/event.obj
BIN
Debug/event.obj
Binary file not shown.
BIN
Debug/jauge.obj
BIN
Debug/jauge.obj
Binary file not shown.
BIN
Debug/menu.obj
BIN
Debug/menu.obj
Binary file not shown.
BIN
Debug/misc.obj
BIN
Debug/misc.obj
Binary file not shown.
BIN
Debug/movie.obj
BIN
Debug/movie.obj
Binary file not shown.
Binary file not shown.
BIN
Debug/pixmap.obj
BIN
Debug/pixmap.obj
Binary file not shown.
BIN
Debug/sound.obj
BIN
Debug/sound.obj
Binary file not shown.
BIN
Debug/text.obj
BIN
Debug/text.obj
Binary file not shown.
BIN
Debug/vc140.idb
BIN
Debug/vc140.idb
Binary file not shown.
BIN
Debug/vc140.pdb
BIN
Debug/vc140.pdb
Binary file not shown.
@ -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);
|
||||
|
13
decor.cpp
13
decor.cpp
@ -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.
|
||||
|
@ -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;
|
||||
|
2
event.h
2
event.h
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user