oh yeah i forgot to check that in

This commit is contained in:
zeromus 2008-08-02 17:37:11 +00:00
parent 60f27ccf44
commit 4e81ece9ed
2 changed files with 19 additions and 3 deletions

View File

@ -27,6 +27,7 @@ FCEUX\n\
- SP, zeromus\n\ - SP, zeromus\n\
- CaH4e3, Luke Gustafson, qfox\n\ - CaH4e3, Luke Gustafson, qfox\n\
- adelikat, _mz, nitsujrehtona\n\ - adelikat, _mz, nitsujrehtona\n\
- Lukas Sabota \n\
\n\ \n\
"__TIME__" "__DATE__"\n"; "__TIME__" "__DATE__"\n";

View File

@ -1640,10 +1640,25 @@ INT_PTR CALLBACK DlgLuaScriptDialog(HWND hDlg, UINT msg, WPARAM wParam, LPARAM l
void FCEUD_LuaRunFrom(void) void FCEUD_LuaRunFrom(void)
{ {
int success = 0; int success = 0;
//StopSound(); //mbg 8/2/08 - i decided i didnt like this dialog box. so for now we are just going to run the script directly
//DialogBoxParam(fceu_hInstance, "IDD_LUA_ADD", hAppWnd, DlgLuaScriptDialog,(LPARAM) &success);
DialogBoxParam(fceu_hInstance, "IDD_LUA_ADD", hAppWnd, DlgLuaScriptDialog,(LPARAM) &success); OPENFILENAME ofn;
char szFileName[MAX_PATH];
szFileName[0] = '\0';
ZeroMemory( (LPVOID)&ofn, sizeof(OPENFILENAME) );
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hAppWnd;
ofn.lpstrFilter = "Lua scripts\0*.lua\0All files\0*.*\0\0";
ofn.lpstrFile = szFileName;
ofn.lpstrDefExt = "lua";
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_HIDEREADONLY | OFN_FILEMUSTEXIST; // hide previously-ignored read-only checkbox (the real read-only box is in the open-movie dialog itself)
if(GetOpenFileName( &ofn ))
{
FCEU_LoadLuaCode(szFileName);
}
} }