commit
f5b6b51070
|
@ -113,6 +113,9 @@ void MMC3RegReset(void) {
|
||||||
DRegBuf[6] = 0;
|
DRegBuf[6] = 0;
|
||||||
DRegBuf[7] = 1;
|
DRegBuf[7] = 1;
|
||||||
|
|
||||||
|
// KT-008 boards hack 2-in-1, TODO assign to new ines mapper, most dump of KT-boards on the net are mapper 4, so need database or goodnes fix support
|
||||||
|
kt_extra = 0;
|
||||||
|
|
||||||
FixMMC3PRG(0);
|
FixMMC3PRG(0);
|
||||||
FixMMC3CHR(0);
|
FixMMC3CHR(0);
|
||||||
}
|
}
|
||||||
|
@ -187,7 +190,14 @@ DECLFW(MMC3_IRQWrite) {
|
||||||
DECLFW(KT008HackWrite) {
|
DECLFW(KT008HackWrite) {
|
||||||
// FCEU_printf("%04x:%04x\n",A,V);
|
// FCEU_printf("%04x:%04x\n",A,V);
|
||||||
switch (A & 3) {
|
switch (A & 3) {
|
||||||
case 0: kt_extra = V; FixMMC3PRG(MMC3_cmd); break;
|
case 0: {
|
||||||
|
if (V == 0x27) // FF Xn hack! one more mapper in one
|
||||||
|
kt_extra = 0;
|
||||||
|
else
|
||||||
|
kt_extra = V;
|
||||||
|
FixMMC3PRG(MMC3_cmd);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 1: break; // unk
|
case 1: break; // unk
|
||||||
case 2: break; // unk
|
case 2: break; // unk
|
||||||
case 3: break; // unk
|
case 3: break; // unk
|
||||||
|
|
|
@ -198,7 +198,7 @@ INT_PTR CWin32InputBox::InputBoxEx(WIN32INPUTBOX_PARAM *param)
|
||||||
CWin32InputBox inputbox(param);
|
CWin32InputBox inputbox(param);
|
||||||
|
|
||||||
// Resize dialog and SHOW or HIDE multiline
|
// Resize dialog and SHOW or HIDE multiline
|
||||||
INT_PTR r = ::DialogBoxIndirectParam(param->hInstance, dlgTemplate, param->hwndOwner, (DLGPROC)DlgProc, (LPARAM)&inputbox);
|
INT_PTR r = ::DialogBoxIndirectParam(param->hInstance, dlgTemplate, param->hwndOwner, DlgProc, (LPARAM)&inputbox);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
@ -310,16 +310,16 @@ void CWin32InputBox::InitDialog()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Message handler for about box.
|
// Message handler for about box.
|
||||||
LRESULT CALLBACK CWin32InputBox::DlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK CWin32InputBox::DlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
CWin32InputBox *_this = (CWin32InputBox *) ::GetWindowLong(hDlg, GWL_USERDATA);
|
CWin32InputBox *_this = (CWin32InputBox *) ::GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
||||||
WIN32INPUTBOX_PARAM *param = _this ? _this->GetParam() : 0;
|
WIN32INPUTBOX_PARAM *param = _this ? _this->GetParam() : 0;
|
||||||
|
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
{
|
{
|
||||||
::SetWindowLong(hDlg, GWL_USERDATA, (LONG) lParam);
|
::SetWindowLongPtr(hDlg, GWLP_USERDATA, lParam);
|
||||||
|
|
||||||
_this = (CWin32InputBox *) lParam;
|
_this = (CWin32InputBox *) lParam;
|
||||||
_this->_param->hDlg = hDlg;
|
_this->_param->hDlg = hDlg;
|
||||||
|
|
|
@ -73,7 +73,7 @@ class CWin32InputBox
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
WIN32INPUTBOX_PARAM *_param;
|
WIN32INPUTBOX_PARAM *_param;
|
||||||
static LRESULT CALLBACK DlgProc(HWND, UINT, WPARAM, LPARAM);
|
static INT_PTR CALLBACK DlgProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
HWND _hwndEditCtrl;
|
HWND _hwndEditCtrl;
|
||||||
|
|
||||||
void InitDialog();
|
void InitDialog();
|
||||||
|
|
|
@ -275,7 +275,7 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static BOOL CALLBACK ArchiveFileSelectorCallback(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static INT_PTR CALLBACK ArchiveFileSelectorCallback(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -60,7 +60,7 @@ bool autoloadCDL = true;
|
||||||
bool autoresumeCDLogging = false;
|
bool autoresumeCDLogging = false;
|
||||||
char loadedcdfile[2048] = {0};
|
char loadedcdfile[2048] = {0};
|
||||||
|
|
||||||
BOOL CALLBACK CDLoggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK CDLoggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,7 +41,7 @@ void SetupCheatFont(HWND hDlg);
|
||||||
void DeleteCheatFont();
|
void DeleteCheatFont();
|
||||||
extern POINT CalcSubWindowPos(HWND hDlg, POINT* conf);
|
extern POINT CalcSubWindowPos(HWND hDlg, POINT* conf);
|
||||||
|
|
||||||
extern BOOL CALLBACK GGConvCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
extern INT_PTR CALLBACK GGConvCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
extern LRESULT APIENTRY FilterEditCtrlProc(HWND hDlg, UINT msg, WPARAM wP, LPARAM lP);
|
extern LRESULT APIENTRY FilterEditCtrlProc(HWND hDlg, UINT msg, WPARAM wP, LPARAM lP);
|
||||||
extern WNDPROC DefaultEditCtrlProc;
|
extern WNDPROC DefaultEditCtrlProc;
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,6 @@ public:
|
||||||
} *debugSystem;
|
} *debugSystem;
|
||||||
|
|
||||||
// extern WNDPROC DefaultEditCtrlProc;
|
// extern WNDPROC DefaultEditCtrlProc;
|
||||||
// extern LRESULT APIENTRY FilterEditCtrlProc(HWND hwnd, UINT msg, WPARAM wP, LPARAM lP);
|
// extern INT_PTR APIENTRY FilterEditCtrlProc(HWND hwnd, UINT msg, WPARAM wP, LPARAM lP);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -62,7 +62,7 @@ int debuggerWasActive = 0;
|
||||||
char temp_chr[40] = {0};
|
char temp_chr[40] = {0};
|
||||||
char delimiterChar[2] = "#";
|
char delimiterChar[2] = "#";
|
||||||
|
|
||||||
extern BOOL CALLBACK nameBookmarkCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
extern INT_PTR CALLBACK nameBookmarkCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
extern char bookmarkDescription[];
|
extern char bookmarkDescription[];
|
||||||
|
|
||||||
MemoryMappedRegister RegNames[] = {
|
MemoryMappedRegister RegNames[] = {
|
||||||
|
@ -919,7 +919,7 @@ void GoToDebuggerBookmark(HWND hwnd)
|
||||||
Disassemble(hwnd, IDC_DEBUGGER_DISASSEMBLY, IDC_DEBUGGER_DISASSEMBLY_VSCR, n);
|
Disassemble(hwnd, IDC_DEBUGGER_DISASSEMBLY, IDC_DEBUGGER_DISASSEMBLY_VSCR, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK SymbolicNamingCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK SymbolicNamingCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ bool GetComboBoxListItemData(HWND hwnd, UINT id, int* value, char* buf, bool exa
|
||||||
bool SaveINESFile(HWND hwnd, char* path, iNES_HEADER* header);
|
bool SaveINESFile(HWND hwnd, char* path, iNES_HEADER* header);
|
||||||
|
|
||||||
|
|
||||||
LRESULT CALLBACK HeaderEditorProc(HWND hDlg, UINT uMsg, WPARAM wP, LPARAM lP);
|
INT_PTR CALLBACK HeaderEditorProc(HWND hDlg, UINT uMsg, WPARAM wP, LPARAM lP);
|
||||||
extern WNDPROC DefaultEditCtrlProc;
|
extern WNDPROC DefaultEditCtrlProc;
|
||||||
extern LRESULT APIENTRY FilterEditCtrlProc(HWND hwnd, UINT msg, WPARAM wP, LPARAM lP);
|
extern LRESULT APIENTRY FilterEditCtrlProc(HWND hwnd, UINT msg, WPARAM wP, LPARAM lP);
|
||||||
|
|
||||||
|
|
|
@ -842,7 +842,7 @@ static const uint8 *DWBText;
|
||||||
|
|
||||||
static HWND die;
|
static HWND die;
|
||||||
|
|
||||||
static BOOL CALLBACK DWBCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static INT_PTR CALLBACK DWBCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
|
||||||
switch(uMsg) {
|
switch(uMsg) {
|
||||||
|
@ -1060,7 +1060,7 @@ static const char *DoTBTitle=0;
|
||||||
static int DoTBMax=0;
|
static int DoTBMax=0;
|
||||||
static int DoTBType=0,DoTBPort=0;
|
static int DoTBType=0,DoTBPort=0;
|
||||||
|
|
||||||
static BOOL CALLBACK DoTBCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static INT_PTR CALLBACK DoTBCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch(uMsg) {
|
switch(uMsg) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
@ -1208,7 +1208,7 @@ static void UpdateFourscoreState(HWND dlg)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Callback function of the input configuration dialog.
|
//Callback function of the input configuration dialog.
|
||||||
BOOL CALLBACK InputConCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK InputConCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -73,7 +73,7 @@ void RedoText(void)
|
||||||
/**
|
/**
|
||||||
* Callback function for the log window.
|
* Callback function for the log window.
|
||||||
**/
|
**/
|
||||||
BOOL CALLBACK LogCon(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK LogCon(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
RECT wrect; //For remembering window position
|
RECT wrect; //For remembering window position
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
|
|
|
@ -142,7 +142,7 @@ int GetHexScreenCoordy(int offset);
|
||||||
int GetAddyFromCoord(int x,int y);
|
int GetAddyFromCoord(int x,int y);
|
||||||
void AutoScrollFromCoord(int x,int y);
|
void AutoScrollFromCoord(int x,int y);
|
||||||
LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
|
LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
BOOL CALLBACK MemFindCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
INT_PTR CALLBACK MemFindCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
void FindNext();
|
void FindNext();
|
||||||
void OpenFindDialog();
|
void OpenFindDialog();
|
||||||
static int GetFileData(uint32 offset);
|
static int GetFileData(uint32 offset);
|
||||||
|
@ -2218,7 +2218,7 @@ void DoMemView()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK MemFindCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
INT_PTR CALLBACK MemFindCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
||||||
|
|
||||||
switch(uMsg) {
|
switch(uMsg) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
|
|
@ -57,7 +57,7 @@ char bookmarkDescription[51] = {0};
|
||||||
BOOL CenterWindow(HWND hwndDlg);
|
BOOL CenterWindow(HWND hwndDlg);
|
||||||
|
|
||||||
/// Callback function for the name bookmark dialog
|
/// Callback function for the name bookmark dialog
|
||||||
BOOL CALLBACK nameBookmarkCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK nameBookmarkCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -219,7 +219,7 @@ unsigned int ruleBox_to_ruleInput(unsigned int ruleBox)
|
||||||
return ruleBox - RULE_BOX_1 + RULE_INPUT_1;
|
return ruleBox - RULE_BOX_1 + RULE_INPUT_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK MonitorCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK MonitorCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch(uMsg) {
|
switch(uMsg) {
|
||||||
case WM_MOVE: {
|
case WM_MOVE: {
|
||||||
|
|
|
@ -53,7 +53,7 @@ void CloseMovieOptionsDialog(HWND hwndDlg)
|
||||||
/**
|
/**
|
||||||
* Callback function of the Timing configuration dialog.
|
* Callback function of the Timing configuration dialog.
|
||||||
**/
|
**/
|
||||||
BOOL CALLBACK MovieOptionsCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK MovieOptionsCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -393,7 +393,7 @@ CFGSTRUCT NetplayConfig[]={
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static BOOL CALLBACK NetCon(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static INT_PTR CALLBACK NetCon(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -435,7 +435,7 @@ void KillNTView() {
|
||||||
NTViewSkip=0;
|
NTViewSkip=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK NTViewCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
INT_PTR CALLBACK NTViewCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
||||||
RECT wrect;
|
RECT wrect;
|
||||||
char str[50];
|
char str[50];
|
||||||
int TileID, TileX, TileY, NameTable, PPUAddress, AttAddress, Attrib;
|
int TileID, TileX, TileY, NameTable, PPUAddress, AttAddress, Attrib;
|
||||||
|
|
|
@ -364,7 +364,7 @@ void KillPPUView()
|
||||||
PPUViewSkip=0;
|
PPUViewSkip=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK PPUViewCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK PPUViewCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
RECT wrect;
|
RECT wrect;
|
||||||
char str[20];
|
char str[20];
|
||||||
|
|
|
@ -1113,15 +1113,15 @@ void ReopenRamWindows() //Reopen them when a new Rom is loaded
|
||||||
if(!RamSearchHWnd)
|
if(!RamSearchHWnd)
|
||||||
{
|
{
|
||||||
reset_address_info();
|
reset_address_info();
|
||||||
LRESULT CALLBACK RamSearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
INT_PTR CALLBACK RamSearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
RamSearchHWnd = CreateDialog(hInst, MAKEINTRESOURCE(IDD_RAMSEARCH), hWnd, (DLGPROC) RamSearchProc);
|
RamSearchHWnd = CreateDialog(hInst, MAKEINTRESOURCE(IDD_RAMSEARCH), hWnd, RamSearchProc);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AutoRWLoad)
|
if (AutoRWLoad)
|
||||||
OpenRWRecentFile(0);
|
OpenRWRecentFile(0);
|
||||||
|
|
||||||
if (!RamWatchHWnd)
|
if (!RamWatchHWnd)
|
||||||
RamWatchHWnd = CreateDialog(hInst, MAKEINTRESOURCE(IDD_RAMWATCH), hWnd, (DLGPROC) RamWatchProc);
|
RamWatchHWnd = CreateDialog(hInst, MAKEINTRESOURCE(IDD_RAMWATCH), hWnd, RamWatchProc);
|
||||||
|
|
||||||
if (hwnd == hWnd && hwnd != GetActiveWindow())
|
if (hwnd == hWnd && hwnd != GetActiveWindow())
|
||||||
SetActiveWindow(hWnd); // restore focus to the main window if it had it before
|
SetActiveWindow(hWnd); // restore focus to the main window if it had it before
|
||||||
|
@ -1407,7 +1407,7 @@ static BOOL SelectingByKeyboard()
|
||||||
return (a | b | c | d) & 0x80;
|
return (a | b | c | d) & 0x80;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CALLBACK RamSearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK RamSearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
|
||||||
static int watchIndex=0;
|
static int watchIndex=0;
|
||||||
|
@ -1550,7 +1550,7 @@ LRESULT CALLBACK RamSearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
|
||||||
{
|
{
|
||||||
case NM_CUSTOMDRAW:
|
case NM_CUSTOMDRAW:
|
||||||
{
|
{
|
||||||
SetWindowLong(hDlg, DWL_MSGRESULT, CustomDraw(lParam));
|
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CustomDraw(lParam));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ void SetSearchType(int SearchType); //Set the search type
|
||||||
void DoRamSearchOperation(); //Perform a search
|
void DoRamSearchOperation(); //Perform a search
|
||||||
|
|
||||||
extern HWND RamSearchHWnd;
|
extern HWND RamSearchHWnd;
|
||||||
extern LRESULT CALLBACK RamSearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
extern INT_PTR CALLBACK RamSearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
extern POINT CalcSubWindowPos(HWND hDlg, POINT* conf);
|
extern POINT CalcSubWindowPos(HWND hDlg, POINT* conf);
|
||||||
|
|
||||||
// Too much work to do for resorting the values, and finding the biggest number
|
// Too much work to do for resorting the values, and finding the biggest number
|
||||||
|
|
|
@ -155,7 +155,7 @@ bool InsertWatch(const AddressWatcher& Watch, HWND parent)
|
||||||
|
|
||||||
rswatches[tmpWatchIndex] = Watch;
|
rswatches[tmpWatchIndex] = Watch;
|
||||||
rswatches[tmpWatchIndex].CurValue = GetCurrentValue(rswatches[tmpWatchIndex]);
|
rswatches[tmpWatchIndex].CurValue = GetCurrentValue(rswatches[tmpWatchIndex]);
|
||||||
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), parent, (DLGPROC)EditWatchProc, tmpWatchIndex);
|
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), parent, EditWatchProc, tmpWatchIndex);
|
||||||
rswatches.erase(tmpWatchIndex);
|
rswatches.erase(tmpWatchIndex);
|
||||||
|
|
||||||
return WatchCount > prevWatchCount;
|
return WatchCount > prevWatchCount;
|
||||||
|
@ -171,7 +171,7 @@ bool InsertWatches(const AddressWatcher* watches, HWND parent, const int count)
|
||||||
char comment[256];
|
char comment[256];
|
||||||
rswatches[-1] = watches[0];
|
rswatches[-1] = watches[0];
|
||||||
rswatches[-1].comment = comment;
|
rswatches[-1].comment = comment;
|
||||||
if(DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), parent, (DLGPROC)EditWatchProc, (LPARAM)-1))
|
if(DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), parent, EditWatchProc, (LPARAM)-1))
|
||||||
for (int i = 0; i < count; ++i)
|
for (int i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
AddressWatcher watcher = watches[i];
|
AddressWatcher watcher = watches[i];
|
||||||
|
@ -776,7 +776,7 @@ void RefreshWatchListSelectedItemControlStatus(HWND hDlg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CALLBACK EditWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) //Gets info for a RAM Watch, and then inserts it into the Watch List
|
INT_PTR CALLBACK EditWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) //Gets info for a RAM Watch, and then inserts it into the Watch List
|
||||||
{
|
{
|
||||||
|
|
||||||
// since there are 3 windows can pops up the add watch dialog, we should store them separately.
|
// since there are 3 windows can pops up the add watch dialog, we should store them separately.
|
||||||
|
@ -1020,7 +1020,7 @@ void RefreshWatchListSelectedCountControlStatus(HWND hDlg, int newComer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
static int watchIndex = 0; // current watch index
|
static int watchIndex = 0; // current watch index
|
||||||
static bool listFocus;
|
static bool listFocus;
|
||||||
|
@ -1185,7 +1185,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
// disable search by keyboard typing,
|
// disable search by keyboard typing,
|
||||||
// because it interferes with some of the accelerators
|
// because it interferes with some of the accelerators
|
||||||
// and it isn't very useful here anyway
|
// and it isn't very useful here anyway
|
||||||
SetWindowLong(hDlg, DWL_MSGRESULT, ListView_GetSelectionMark(GetDlgItem(hDlg,IDC_WATCHLIST)));
|
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, ListView_GetSelectionMark(GetDlgItem(hDlg,IDC_WATCHLIST)));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
case NM_SETFOCUS:
|
case NM_SETFOCUS:
|
||||||
|
@ -1202,12 +1202,12 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
switch (nmcd->dwDrawStage)
|
switch (nmcd->dwDrawStage)
|
||||||
{
|
{
|
||||||
case CDDS_PREPAINT:
|
case CDDS_PREPAINT:
|
||||||
SetWindowLong(hDlg, DWL_MSGRESULT, CDRF_NOTIFYITEMDRAW);
|
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_NOTIFYITEMDRAW);
|
||||||
break;
|
break;
|
||||||
case CDDS_ITEMPREPAINT:
|
case CDDS_ITEMPREPAINT:
|
||||||
if (rswatches[nmcd->dwItemSpec].Type == 'S')
|
if (rswatches[nmcd->dwItemSpec].Type == 'S')
|
||||||
// A separator looks very different from normal watches, it should be drawn in another space while I want to use the highlight bar and the focus frame from the system.
|
// A separator looks very different from normal watches, it should be drawn in another space while I want to use the highlight bar and the focus frame from the system.
|
||||||
SetWindowLong(hDlg, DWL_MSGRESULT, CDRF_NOTIFYPOSTPAINT);
|
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_NOTIFYPOSTPAINT);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NMLVCUSTOMDRAW* lplvcd = (NMLVCUSTOMDRAW*)lParam;
|
NMLVCUSTOMDRAW* lplvcd = (NMLVCUSTOMDRAW*)lParam;
|
||||||
|
@ -1215,7 +1215,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case 0:
|
case 0:
|
||||||
SetWindowLong(hDlg, DWL_MSGRESULT, CDRF_DODEFAULT);
|
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_DODEFAULT);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
case 1:
|
case 1:
|
||||||
lplvcd->clrTextBk = RGB(216, 203, 253); break;
|
lplvcd->clrTextBk = RGB(216, 203, 253); break;
|
||||||
|
@ -1227,7 +1227,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
lplvcd->clrTextBk = RGB(175, 94, 253);
|
lplvcd->clrTextBk = RGB(175, 94, 253);
|
||||||
lplvcd->clrText = RGB(255, 255, 255); break; // use a more visual color in dark background
|
lplvcd->clrText = RGB(255, 255, 255); break; // use a more visual color in dark background
|
||||||
}
|
}
|
||||||
SetWindowLong(hDlg, DWL_MSGRESULT, CDRF_NEWFONT);
|
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_NEWFONT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CDDS_ITEMPOSTPAINT:
|
case CDDS_ITEMPOSTPAINT:
|
||||||
|
@ -1306,7 +1306,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
watchIndex = ListView_GetSelectionMark(GetDlgItem(hDlg,IDC_WATCHLIST));
|
watchIndex = ListView_GetSelectionMark(GetDlgItem(hDlg,IDC_WATCHLIST));
|
||||||
if(watchIndex != -1)
|
if(watchIndex != -1)
|
||||||
{
|
{
|
||||||
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), hDlg, (DLGPROC)EditWatchProc, watchIndex);
|
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), hDlg, EditWatchProc, watchIndex);
|
||||||
SetFocus(GetDlgItem(hDlg,IDC_WATCHLIST));
|
SetFocus(GetDlgItem(hDlg,IDC_WATCHLIST));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -1317,7 +1317,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
target.WrongEndian = 0;
|
target.WrongEndian = 0;
|
||||||
target.Size = 'b';
|
target.Size = 'b';
|
||||||
target.Type = 's';
|
target.Type = 's';
|
||||||
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), hDlg, (DLGPROC)EditWatchProc, WatchCount);
|
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), hDlg, EditWatchProc, WatchCount);
|
||||||
SetFocus(GetDlgItem(hDlg, IDC_WATCHLIST));
|
SetFocus(GetDlgItem(hDlg, IDC_WATCHLIST));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1331,7 +1331,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
AddressWatcher* source = &rswatches[watchIndex];
|
AddressWatcher* source = &rswatches[watchIndex];
|
||||||
memcpy(target, source, sizeof(AddressWatcher));
|
memcpy(target, source, sizeof(AddressWatcher));
|
||||||
target->comment = strcpy(str_tmp, source->comment);
|
target->comment = strcpy(str_tmp, source->comment);
|
||||||
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), hDlg, (DLGPROC)EditWatchProc, WatchCount);
|
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), hDlg, EditWatchProc, WatchCount);
|
||||||
SetFocus(GetDlgItem(hDlg, IDC_WATCHLIST));
|
SetFocus(GetDlgItem(hDlg, IDC_WATCHLIST));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -1344,7 +1344,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
target->Size = 'S';
|
target->Size = 'S';
|
||||||
target->Type = 'S';
|
target->Type = 'S';
|
||||||
|
|
||||||
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), hDlg, (DLGPROC)EditWatchProc, (LPARAM)WatchCount);
|
DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_EDITWATCH), hDlg, EditWatchProc, (LPARAM)WatchCount);
|
||||||
|
|
||||||
// InsertWatch(separator, "----------------------------");
|
// InsertWatch(separator, "----------------------------");
|
||||||
SetFocus(GetDlgItem(hDlg, IDC_WATCHLIST));
|
SetFocus(GetDlgItem(hDlg, IDC_WATCHLIST));
|
||||||
|
|
|
@ -70,8 +70,8 @@ bool Load_Watches(bool clear, const char* filename);
|
||||||
void RWAddRecentFile(const char *filename);
|
void RWAddRecentFile(const char *filename);
|
||||||
void UpdateWatchCheats();
|
void UpdateWatchCheats();
|
||||||
|
|
||||||
LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
INT_PTR CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
LRESULT CALLBACK EditWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
INT_PTR CALLBACK EditWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
|
|
||||||
extern HWND RamWatchHWnd;
|
extern HWND RamWatchHWnd;
|
||||||
|
|
||||||
|
|
|
@ -500,7 +500,7 @@ static void UpdateSD(HWND hwndDlg)
|
||||||
UpdateSoundChannelQualityMode(hwndDlg);
|
UpdateSoundChannelQualityMode(hwndDlg);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK SoundConCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK SoundConCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
|
||||||
switch(uMsg) {
|
switch(uMsg) {
|
||||||
|
|
|
@ -245,7 +245,7 @@ void updateTASEditor()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK newProjectProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK newProjectProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
static struct NewProjectParameters* p = NULL;
|
static struct NewProjectParameters* p = NULL;
|
||||||
switch (message)
|
switch (message)
|
||||||
|
@ -518,7 +518,7 @@ void SaveCompact_GetDialogItems(HWND hwndDlg)
|
||||||
else
|
else
|
||||||
taseditorConfig.saveCompact_GreenzoneSavingMode = GREENZONE_SAVING_MODE_NO;
|
taseditorConfig.saveCompact_GreenzoneSavingMode = GREENZONE_SAVING_MODE_NO;
|
||||||
}
|
}
|
||||||
BOOL CALLBACK SaveCompactProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK SaveCompactProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
|
@ -655,7 +655,7 @@ void importInputData()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK aboutWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK aboutWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
|
@ -678,7 +678,7 @@ BOOL CALLBACK aboutWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK savingOptionsWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK savingOptionsWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
|
@ -768,7 +768,7 @@ BOOL CALLBACK savingOptionsWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LP
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK ExportProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK ExportProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
|
|
|
@ -78,7 +78,7 @@ void BOOKMARKS::init()
|
||||||
// prepare bookmarks listview
|
// prepare bookmarks listview
|
||||||
ListView_SetExtendedListViewStyleEx(hwndBookmarksList, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
|
ListView_SetExtendedListViewStyleEx(hwndBookmarksList, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
|
||||||
// subclass the listview
|
// subclass the listview
|
||||||
hwndBookmarksList_oldWndProc = (WNDPROC)SetWindowLong(hwndBookmarksList, GWL_WNDPROC, (LONG)BookmarksListWndProc);
|
hwndBookmarksList_oldWndProc = (WNDPROC)SetWindowLongPtr(hwndBookmarksList, GWLP_WNDPROC, (LONG_PTR)BookmarksListWndProc);
|
||||||
// setup images for the listview
|
// setup images for the listview
|
||||||
hImgList = ImageList_Create(11, 13, ILC_COLOR8 | ILC_MASK, 1, 1);
|
hImgList = ImageList_Create(11, 13, ILC_COLOR8 | ILC_MASK, 1, 1);
|
||||||
HBITMAP bmp = LoadBitmap(fceu_hInstance, MAKEINTRESOURCE(IDB_BITMAP0));
|
HBITMAP bmp = LoadBitmap(fceu_hInstance, MAKEINTRESOURCE(IDB_BITMAP0));
|
||||||
|
|
|
@ -56,7 +56,7 @@ void BRANCHES::init()
|
||||||
free();
|
free();
|
||||||
|
|
||||||
// subclass BranchesBitmap
|
// subclass BranchesBitmap
|
||||||
hwndBranchesBitmap_oldWndProc = (WNDPROC)SetWindowLong(bookmarks.hwndBranchesBitmap, GWL_WNDPROC, (LONG)BranchesBitmapWndProc);
|
hwndBranchesBitmap_oldWndProc = (WNDPROC)SetWindowLongPtr(bookmarks.hwndBranchesBitmap, GWLP_WNDPROC, (LONG_PTR)BranchesBitmapWndProc);
|
||||||
|
|
||||||
// init arrays
|
// init arrays
|
||||||
branchX.resize(TOTAL_BOOKMARKS+1);
|
branchX.resize(TOTAL_BOOKMARKS+1);
|
||||||
|
|
|
@ -116,7 +116,7 @@ void HISTORY::init()
|
||||||
hwndHistoryList = GetDlgItem(taseditorWindow.hwndTASEditor, IDC_HISTORYLIST);
|
hwndHistoryList = GetDlgItem(taseditorWindow.hwndTASEditor, IDC_HISTORYLIST);
|
||||||
ListView_SetExtendedListViewStyleEx(hwndHistoryList, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
|
ListView_SetExtendedListViewStyleEx(hwndHistoryList, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
|
||||||
// subclass the listview
|
// subclass the listview
|
||||||
hwndHistoryList_oldWndProc = (WNDPROC)SetWindowLong(hwndHistoryList, GWL_WNDPROC, (LONG)historyListWndProc);
|
hwndHistoryList_oldWndProc = (WNDPROC)SetWindowLongPtr(hwndHistoryList, GWLP_WNDPROC, (LONG_PTR)historyListWndProc);
|
||||||
LVCOLUMN lvc;
|
LVCOLUMN lvc;
|
||||||
lvc.mask = LVCF_WIDTH | LVCF_FMT;
|
lvc.mask = LVCF_WIDTH | LVCF_FMT;
|
||||||
lvc.cx = HISTORY_LIST_WIDTH;
|
lvc.cx = HISTORY_LIST_WIDTH;
|
||||||
|
|
|
@ -619,7 +619,7 @@ void MARKERS_MANAGER::updateEditedMarkerNote()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------
|
||||||
BOOL CALLBACK findNoteWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK findNoteWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
extern MARKERS_MANAGER markersManager;
|
extern MARKERS_MANAGER markersManager;
|
||||||
switch (message)
|
switch (message)
|
||||||
|
|
|
@ -141,9 +141,9 @@ void PIANO_ROLL::init()
|
||||||
ListView_SetExtendedListViewStyleEx(hwndList, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
|
ListView_SetExtendedListViewStyleEx(hwndList, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
|
||||||
// subclass the header
|
// subclass the header
|
||||||
hwndHeader = ListView_GetHeader(hwndList);
|
hwndHeader = ListView_GetHeader(hwndList);
|
||||||
hwndHeaderOldWndproc = (WNDPROC)SetWindowLong(hwndHeader, GWL_WNDPROC, (LONG)headerWndProc);
|
hwndHeaderOldWndproc = (WNDPROC)SetWindowLongPtr(hwndHeader, GWLP_WNDPROC, (LONG_PTR)headerWndProc);
|
||||||
// subclass the whole listview
|
// subclass the whole listview
|
||||||
hwndListOldWndProc = (WNDPROC)SetWindowLong(hwndList, GWL_WNDPROC, (LONG)listWndProc);
|
hwndListOldWndProc = (WNDPROC)SetWindowLongPtr(hwndList, GWLP_WNDPROC, (LONG_PTR)listWndProc);
|
||||||
// disable Visual Themes for header
|
// disable Visual Themes for header
|
||||||
SetWindowTheme(hwndHeader, L"", L"");
|
SetWindowTheme(hwndHeader, L"", L"");
|
||||||
// setup images for the listview
|
// setup images for the listview
|
||||||
|
|
|
@ -65,7 +65,7 @@ void PLAYBACK::init()
|
||||||
SendMessage(hwndPlaybackMarkerEditField, EM_SETLIMITTEXT, MAX_NOTE_LEN - 1, 0);
|
SendMessage(hwndPlaybackMarkerEditField, EM_SETLIMITTEXT, MAX_NOTE_LEN - 1, 0);
|
||||||
SendMessage(hwndPlaybackMarkerEditField, WM_SETFONT, (WPARAM)pianoRoll.hMarkersEditFont, 0);
|
SendMessage(hwndPlaybackMarkerEditField, WM_SETFONT, (WPARAM)pianoRoll.hMarkersEditFont, 0);
|
||||||
// subclass the edit control
|
// subclass the edit control
|
||||||
playbackMarkerEdit_oldWndproc = (WNDPROC)SetWindowLong(hwndPlaybackMarkerEditField, GWL_WNDPROC, (LONG)UpperMarkerEditWndProc);
|
playbackMarkerEdit_oldWndproc = (WNDPROC)SetWindowLongPtr(hwndPlaybackMarkerEditField, GWLP_WNDPROC, (LONG_PTR)UpperMarkerEditWndProc);
|
||||||
|
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ void SELECTION::init()
|
||||||
SendMessage(hwndSelectionMarkerEditField, EM_SETLIMITTEXT, MAX_NOTE_LEN - 1, 0);
|
SendMessage(hwndSelectionMarkerEditField, EM_SETLIMITTEXT, MAX_NOTE_LEN - 1, 0);
|
||||||
SendMessage(hwndSelectionMarkerEditField, WM_SETFONT, (WPARAM)pianoRoll.hMarkersEditFont, 0);
|
SendMessage(hwndSelectionMarkerEditField, WM_SETFONT, (WPARAM)pianoRoll.hMarkersEditFont, 0);
|
||||||
// subclass the edit control
|
// subclass the edit control
|
||||||
selectionMarkerEdit_oldWndproc = (WNDPROC)SetWindowLong(hwndSelectionMarkerEditField, GWL_WNDPROC, (LONG)LowerMarkerEditWndProc);
|
selectionMarkerEdit_oldWndproc = (WNDPROC)SetWindowLongPtr(hwndSelectionMarkerEditField, GWLP_WNDPROC, (LONG_PTR)LowerMarkerEditWndProc);
|
||||||
|
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,12 +53,12 @@ extern bool mustCallManualLuaFunction;
|
||||||
|
|
||||||
extern char* GetKeyComboName(int c);
|
extern char* GetKeyComboName(int c);
|
||||||
|
|
||||||
extern BOOL CALLBACK findNoteWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
extern INT_PTR CALLBACK findNoteWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
extern BOOL CALLBACK aboutWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
extern INT_PTR CALLBACK aboutWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
extern BOOL CALLBACK savingOptionsWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
extern INT_PTR CALLBACK savingOptionsWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
|
|
||||||
// main window wndproc
|
// main window wndproc
|
||||||
BOOL CALLBACK TASEditorWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
INT_PTR CALLBACK TASEditorWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
// wndprocs for "Marker X" text fields
|
// wndprocs for "Marker X" text fields
|
||||||
LRESULT APIENTRY IDC_PLAYBACK_MARKER_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
LRESULT APIENTRY IDC_PLAYBACK_MARKER_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||||
LRESULT APIENTRY IDC_SELECTION_MARKER_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
LRESULT APIENTRY IDC_SELECTION_MARKER_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||||
|
@ -264,33 +264,33 @@ void TASEDITOR_WINDOW::init()
|
||||||
updateTooltips();
|
updateTooltips();
|
||||||
toggleTooltips();
|
toggleTooltips();
|
||||||
// subclass "Marker X" text fields
|
// subclass "Marker X" text fields
|
||||||
IDC_PLAYBACK_MARKER_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_PLAYBACK_MARKER), GWL_WNDPROC, (LONG)IDC_PLAYBACK_MARKER_WndProc);
|
IDC_PLAYBACK_MARKER_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_PLAYBACK_MARKER), GWLP_WNDPROC, (LONG_PTR)IDC_PLAYBACK_MARKER_WndProc);
|
||||||
IDC_SELECTION_MARKER_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_SELECTION_MARKER), GWL_WNDPROC, (LONG)IDC_SELECTION_MARKER_WndProc);
|
IDC_SELECTION_MARKER_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_SELECTION_MARKER), GWLP_WNDPROC, (LONG_PTR)IDC_SELECTION_MARKER_WndProc);
|
||||||
// subclass all buttons
|
// subclass all buttons
|
||||||
IDC_PROGRESS_BUTTON_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_PROGRESS_BUTTON), GWL_WNDPROC, (LONG)IDC_PROGRESS_BUTTON_WndProc);
|
IDC_PROGRESS_BUTTON_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_PROGRESS_BUTTON), GWLP_WNDPROC, (LONG_PTR)IDC_PROGRESS_BUTTON_WndProc);
|
||||||
IDC_BRANCHES_BUTTON_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_BRANCHES_BUTTON), GWL_WNDPROC, (LONG)IDC_BRANCHES_BUTTON_WndProc);
|
IDC_BRANCHES_BUTTON_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_BRANCHES_BUTTON), GWLP_WNDPROC, (LONG_PTR)IDC_BRANCHES_BUTTON_WndProc);
|
||||||
TASEDITOR_REWIND_FULL_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_REWIND_FULL), GWL_WNDPROC, (LONG)TASEDITOR_REWIND_FULL_WndProc);
|
TASEDITOR_REWIND_FULL_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_REWIND_FULL), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_REWIND_FULL_WndProc);
|
||||||
TASEDITOR_REWIND_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_REWIND), GWL_WNDPROC, (LONG)TASEDITOR_REWIND_WndProc);
|
TASEDITOR_REWIND_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_REWIND), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_REWIND_WndProc);
|
||||||
TASEDITOR_PLAYSTOP_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_PLAYSTOP), GWL_WNDPROC, (LONG)TASEDITOR_PLAYSTOP_WndProc);
|
TASEDITOR_PLAYSTOP_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_PLAYSTOP), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_PLAYSTOP_WndProc);
|
||||||
TASEDITOR_FORWARD_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_FORWARD), GWL_WNDPROC, (LONG)TASEDITOR_FORWARD_WndProc);
|
TASEDITOR_FORWARD_oldWndProc =(WNDPROC) SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_FORWARD), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_FORWARD_WndProc);
|
||||||
TASEDITOR_FORWARD_FULL_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_FORWARD_FULL), GWL_WNDPROC, (LONG)TASEDITOR_FORWARD_FULL_WndProc);
|
TASEDITOR_FORWARD_FULL_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_FORWARD_FULL), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_FORWARD_FULL_WndProc);
|
||||||
CHECK_FOLLOW_CURSOR_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, CHECK_FOLLOW_CURSOR), GWL_WNDPROC, (LONG)CHECK_FOLLOW_CURSOR_WndProc);
|
CHECK_FOLLOW_CURSOR_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, CHECK_FOLLOW_CURSOR), GWLP_WNDPROC, (LONG_PTR)CHECK_FOLLOW_CURSOR_WndProc);
|
||||||
CHECK_AUTORESTORE_PLAYBACK_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, CHECK_AUTORESTORE_PLAYBACK), GWL_WNDPROC, (LONG)CHECK_AUTORESTORE_PLAYBACK_WndProc);
|
CHECK_AUTORESTORE_PLAYBACK_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, CHECK_AUTORESTORE_PLAYBACK), GWLP_WNDPROC, (LONG_PTR)CHECK_AUTORESTORE_PLAYBACK_WndProc);
|
||||||
IDC_RADIO_ALL_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_RADIO_ALL), GWL_WNDPROC, (LONG)IDC_RADIO_ALL_WndProc);
|
IDC_RADIO_ALL_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_RADIO_ALL), GWLP_WNDPROC, (LONG_PTR)IDC_RADIO_ALL_WndProc);
|
||||||
IDC_RADIO_1P_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_RADIO_1P), GWL_WNDPROC, (LONG)IDC_RADIO_1P_WndProc);
|
IDC_RADIO_1P_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_RADIO_1P), GWLP_WNDPROC, (LONG_PTR)IDC_RADIO_1P_WndProc);
|
||||||
IDC_RADIO_2P_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_RADIO_2P), GWL_WNDPROC, (LONG)IDC_RADIO_2P_WndProc);
|
IDC_RADIO_2P_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_RADIO_2P), GWLP_WNDPROC, (LONG_PTR)IDC_RADIO_2P_WndProc);
|
||||||
IDC_RADIO_3P_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_RADIO_3P), GWL_WNDPROC, (LONG)IDC_RADIO_3P_WndProc);
|
IDC_RADIO_3P_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_RADIO_3P), GWLP_WNDPROC, (LONG_PTR)IDC_RADIO_3P_WndProc);
|
||||||
IDC_RADIO_4P_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_RADIO_4P), GWL_WNDPROC, (LONG)IDC_RADIO_4P_WndProc);
|
IDC_RADIO_4P_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_RADIO_4P), GWLP_WNDPROC, (LONG_PTR)IDC_RADIO_4P_WndProc);
|
||||||
IDC_SUPERIMPOSE_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_SUPERIMPOSE), GWL_WNDPROC, (LONG)IDC_SUPERIMPOSE_WndProc);
|
IDC_SUPERIMPOSE_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_SUPERIMPOSE), GWLP_WNDPROC, (LONG_PTR)IDC_SUPERIMPOSE_WndProc);
|
||||||
IDC_USEPATTERN_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_USEPATTERN), GWL_WNDPROC, (LONG)IDC_USEPATTERN_WndProc);
|
IDC_USEPATTERN_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_USEPATTERN), GWLP_WNDPROC, (LONG_PTR)IDC_USEPATTERN_WndProc);
|
||||||
TASEDITOR_PREV_MARKER_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_PREV_MARKER), GWL_WNDPROC, (LONG)TASEDITOR_PREV_MARKER_WndProc);
|
TASEDITOR_PREV_MARKER_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_PREV_MARKER), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_PREV_MARKER_WndProc);
|
||||||
TASEDITOR_FIND_BEST_SIMILAR_MARKER_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_FIND_BEST_SIMILAR_MARKER), GWL_WNDPROC, (LONG)TASEDITOR_FIND_BEST_SIMILAR_MARKER_WndProc);
|
TASEDITOR_FIND_BEST_SIMILAR_MARKER_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_FIND_BEST_SIMILAR_MARKER), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_FIND_BEST_SIMILAR_MARKER_WndProc);
|
||||||
TASEDITOR_FIND_NEXT_SIMILAR_MARKER_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_FIND_NEXT_SIMILAR_MARKER), GWL_WNDPROC, (LONG)TASEDITOR_FIND_NEXT_SIMILAR_MARKER_WndProc);
|
TASEDITOR_FIND_NEXT_SIMILAR_MARKER_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_FIND_NEXT_SIMILAR_MARKER), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_FIND_NEXT_SIMILAR_MARKER_WndProc);
|
||||||
TASEDITOR_NEXT_MARKER_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_NEXT_MARKER), GWL_WNDPROC, (LONG)TASEDITOR_NEXT_MARKER_WndProc);
|
TASEDITOR_NEXT_MARKER_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_NEXT_MARKER), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_NEXT_MARKER_WndProc);
|
||||||
CHECK_TURBO_SEEK_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, CHECK_TURBO_SEEK), GWL_WNDPROC, (LONG)CHECK_TURBO_SEEK_WndProc);
|
CHECK_TURBO_SEEK_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, CHECK_TURBO_SEEK), GWLP_WNDPROC, (LONG_PTR)CHECK_TURBO_SEEK_WndProc);
|
||||||
IDC_RECORDING_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_RECORDING), GWL_WNDPROC, (LONG)IDC_RECORDING_WndProc);
|
IDC_RECORDING_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_RECORDING), GWLP_WNDPROC, (LONG_PTR)IDC_RECORDING_WndProc);
|
||||||
TASEDITOR_RUN_MANUAL_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, TASEDITOR_RUN_MANUAL), GWL_WNDPROC, (LONG)TASEDITOR_RUN_MANUAL_WndProc);
|
TASEDITOR_RUN_MANUAL_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, TASEDITOR_RUN_MANUAL), GWLP_WNDPROC, (LONG_PTR)TASEDITOR_RUN_MANUAL_WndProc);
|
||||||
IDC_RUN_AUTO_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndTASEditor, IDC_RUN_AUTO), GWL_WNDPROC, (LONG)IDC_RUN_AUTO_WndProc);
|
IDC_RUN_AUTO_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndTASEditor, IDC_RUN_AUTO), GWLP_WNDPROC, (LONG_PTR)IDC_RUN_AUTO_WndProc);
|
||||||
// create "Recent" submenu
|
// create "Recent" submenu
|
||||||
hRecentProjectsMenu = CreateMenu();
|
hRecentProjectsMenu = CreateMenu();
|
||||||
updateRecentProjectsMenu();
|
updateRecentProjectsMenu();
|
||||||
|
@ -780,7 +780,7 @@ void TASEDITOR_WINDOW::recheckPatternsMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ====================================================================================================
|
// ====================================================================================================
|
||||||
BOOL CALLBACK TASEditorWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK TASEditorWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
extern TASEDITOR_WINDOW taseditorWindow;
|
extern TASEDITOR_WINDOW taseditorWindow;
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
|
@ -833,7 +833,7 @@ BOOL CALLBACK TASEditorWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara
|
||||||
switch(((LPNMHDR)lParam)->code)
|
switch(((LPNMHDR)lParam)->code)
|
||||||
{
|
{
|
||||||
case NM_CUSTOMDRAW:
|
case NM_CUSTOMDRAW:
|
||||||
SetWindowLong(hWnd, DWL_MSGRESULT, pianoRoll.handleCustomDraw((NMLVCUSTOMDRAW*)lParam));
|
SetWindowLongPtr(hWnd, DWLP_MSGRESULT, pianoRoll.handleCustomDraw((NMLVCUSTOMDRAW*)lParam));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
case LVN_GETDISPINFO:
|
case LVN_GETDISPINFO:
|
||||||
pianoRoll.getDispInfo((NMLVDISPINFO*)lParam);
|
pianoRoll.getDispInfo((NMLVDISPINFO*)lParam);
|
||||||
|
@ -854,7 +854,7 @@ BOOL CALLBACK TASEditorWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara
|
||||||
switch(((LPNMHDR)lParam)->code)
|
switch(((LPNMHDR)lParam)->code)
|
||||||
{
|
{
|
||||||
case NM_CUSTOMDRAW:
|
case NM_CUSTOMDRAW:
|
||||||
SetWindowLong(hWnd, DWL_MSGRESULT, bookmarks.handleCustomDraw((NMLVCUSTOMDRAW*)lParam));
|
SetWindowLongPtr(hWnd, DWLP_MSGRESULT, bookmarks.handleCustomDraw((NMLVCUSTOMDRAW*)lParam));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
case LVN_GETDISPINFO:
|
case LVN_GETDISPINFO:
|
||||||
bookmarks.getDispInfo((NMLVDISPINFO*)lParam);
|
bookmarks.getDispInfo((NMLVDISPINFO*)lParam);
|
||||||
|
@ -865,7 +865,7 @@ BOOL CALLBACK TASEditorWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara
|
||||||
switch(((LPNMHDR)lParam)->code)
|
switch(((LPNMHDR)lParam)->code)
|
||||||
{
|
{
|
||||||
case NM_CUSTOMDRAW:
|
case NM_CUSTOMDRAW:
|
||||||
SetWindowLong(hWnd, DWL_MSGRESULT, history.handleCustomDraw((NMLVCUSTOMDRAW*)lParam));
|
SetWindowLongPtr(hWnd, DWLP_MSGRESULT, history.handleCustomDraw((NMLVCUSTOMDRAW*)lParam));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
case LVN_GETDISPINFO:
|
case LVN_GETDISPINFO:
|
||||||
history.getDispInfo((NMLVDISPINFO*)lParam);
|
history.getDispInfo((NMLVDISPINFO*)lParam);
|
||||||
|
|
|
@ -777,7 +777,7 @@ int TextHookerSaveTableFile(){
|
||||||
* Looking for comments? Inqure within!
|
* Looking for comments? Inqure within!
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
BOOL CALLBACK TextHookerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
INT_PTR CALLBACK TextHookerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
||||||
RECT wrect;
|
RECT wrect;
|
||||||
char str[2048];
|
char str[2048];
|
||||||
char bufferstr[10240]; //holds the entire buffer, so it needs to be big...
|
char bufferstr[10240]; //holds the entire buffer, so it needs to be big...
|
||||||
|
|
|
@ -373,7 +373,7 @@ BOOL CALLBACK TracerResizingEnumWindowsProc(HWND hwnd, LPARAM lParam)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CALLBACK TracerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK TracerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
|
@ -443,7 +443,7 @@ BOOL CALLBACK TracerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
EnableTracerMenuItems();
|
EnableTracerMenuItems();
|
||||||
|
|
||||||
// subclass editfield
|
// subclass editfield
|
||||||
IDC_TRACER_LOG_oldWndProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndDlg, IDC_TRACER_LOG), GWL_WNDPROC, (LONG)IDC_TRACER_LOG_WndProc);
|
IDC_TRACER_LOG_oldWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndDlg, IDC_TRACER_LOG), GWLP_WNDPROC, (LONG_PTR)IDC_TRACER_LOG_WndProc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
|
|
|
@ -6098,6 +6098,7 @@ int FCEU_LoadLuaCode(const char *filename, const char *arg) {
|
||||||
luaL_register(L, "joypad", joypadlib);
|
luaL_register(L, "joypad", joypadlib);
|
||||||
luaL_register(L, "zapper", zapperlib);
|
luaL_register(L, "zapper", zapperlib);
|
||||||
luaL_register(L, "input", inputlib);
|
luaL_register(L, "input", inputlib);
|
||||||
|
lua_settop(L, 0); // clean the stack, because each call to luaL_register leaves a table on top (eventually overflows)
|
||||||
luaL_register(L, "savestate", savestatelib);
|
luaL_register(L, "savestate", savestatelib);
|
||||||
luaL_register(L, "movie", movielib);
|
luaL_register(L, "movie", movielib);
|
||||||
luaL_register(L, "gui", guilib);
|
luaL_register(L, "gui", guilib);
|
||||||
|
@ -6106,7 +6107,7 @@ int FCEU_LoadLuaCode(const char *filename, const char *arg) {
|
||||||
luaL_register(L, "cdlog", cdloglib);
|
luaL_register(L, "cdlog", cdloglib);
|
||||||
luaL_register(L, "taseditor", taseditorlib);
|
luaL_register(L, "taseditor", taseditorlib);
|
||||||
luaL_register(L, "bit", bit_funcs); // LuaBitOp library
|
luaL_register(L, "bit", bit_funcs); // LuaBitOp library
|
||||||
lua_settop(L, 0); // clean the stack, because each call to luaL_register leaves a table on top
|
lua_settop(L, 0);
|
||||||
|
|
||||||
// register a few utility functions outside of libraries (in the global namespace)
|
// register a few utility functions outside of libraries (in the global namespace)
|
||||||
lua_register(L, "print", print);
|
lua_register(L, "print", print);
|
||||||
|
@ -6193,7 +6194,7 @@ int FCEU_LoadLuaCode(const char *filename, const char *arg) {
|
||||||
info_onstart = WinLuaOnStart;
|
info_onstart = WinLuaOnStart;
|
||||||
info_onstop = WinLuaOnStop;
|
info_onstop = WinLuaOnStop;
|
||||||
if(!LuaConsoleHWnd)
|
if(!LuaConsoleHWnd)
|
||||||
LuaConsoleHWnd = CreateDialog(fceu_hInstance, MAKEINTRESOURCE(IDD_LUA), hAppWnd, (DLGPROC) DlgLuaScriptDialog);
|
LuaConsoleHWnd = CreateDialog(fceu_hInstance, MAKEINTRESOURCE(IDD_LUA), hAppWnd, DlgLuaScriptDialog);
|
||||||
info_uid = (int)LuaConsoleHWnd;
|
info_uid = (int)LuaConsoleHWnd;
|
||||||
#else
|
#else
|
||||||
info_print = NULL;
|
info_print = NULL;
|
||||||
|
|
Loading…
Reference in New Issue