refactor windows.cpp
This commit is contained in:
1 parent
acfb040b36
commit
f2632e2986
3 files changed
+701
-710
No files matched your search
@@ -1410,7 +1410,7 @@ float ball_speed_limit; // weak
|
|||||||
_UNKNOWN pb_state; // weak
|
_UNKNOWN pb_state; // weak
|
||||||
CHAR byte_102543C[300]; // idb
|
CHAR byte_102543C[300]; // idb
|
||||||
int dword_1025568; // weak
|
int dword_1025568; // weak
|
||||||
int dword_102556C; // weak
|
int play_midi_music; // weak
|
||||||
int dword_1025570; // weak
|
int dword_1025570; // weak
|
||||||
int dword_1025574; // weak
|
int dword_1025574; // weak
|
||||||
CHAR byte_1025578[32]; // idb
|
CHAR byte_1025578[32]; // idb
|
||||||
|
|||||||
@@ -103,6 +103,33 @@ int __stdcall Sound_Init(HINSTANCE hInstance, int a2, int a3)
|
|||||||
// 1024F68: using guessed type int (__stdcall *dword_1024F68)(_DWORD, _DWORD, _DWORD);
|
// 1024F68: using guessed type int (__stdcall *dword_1024F68)(_DWORD, _DWORD, _DWORD);
|
||||||
// 1028208: using guessed type int num_channels;
|
// 1028208: using guessed type int num_channels;
|
||||||
|
|
||||||
|
//----- (010076BF) --------------------------------------------------------
|
||||||
|
int __stdcall make_path_name(LPSTR lpFilename, LPCSTR lpString2, DWORD nSize)
|
||||||
|
{
|
||||||
|
CHAR* i; // ecx
|
||||||
|
|
||||||
|
DWORD ModuleFileName = GetModuleFileNameA(hinst, lpFilename, nSize);
|
||||||
|
if (ModuleFileName && ModuleFileName != nSize)
|
||||||
|
{
|
||||||
|
for (i = &lpFilename[ModuleFileName]; i > lpFilename; --i)
|
||||||
|
{
|
||||||
|
if (*i == 92 || *i == 58)
|
||||||
|
{
|
||||||
|
i[1] = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
--ModuleFileName;
|
||||||
|
}
|
||||||
|
if ((ModuleFileName + 13) < nSize)
|
||||||
|
{
|
||||||
|
lstrcatA(lpFilename, lpString2);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
lstrcatA(lpFilename, "?");
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
//----- (01006AF6) --------------------------------------------------------
|
//----- (01006AF6) --------------------------------------------------------
|
||||||
HLOCAL __stdcall Sound_Close()
|
HLOCAL __stdcall Sound_Close()
|
||||||
{
|
{
|
||||||
|
|||||||
+673
-709
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user