From 2db8e74050e495f14d6cca0c9abef20f125405f7 Mon Sep 17 00:00:00 2001 From: gocha Date: Mon, 19 Oct 2009 03:49:50 +0000 Subject: [PATCH] win32: Edit button of Lua Console now opens a script with "edit" rather than "open" on ShellExecute. --- desmume/src/windows/luaconsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/windows/luaconsole.cpp b/desmume/src/windows/luaconsole.cpp index fc16adeec..08945d5dc 100644 --- a/desmume/src/windows/luaconsole.cpp +++ b/desmume/src/windows/luaconsole.cpp @@ -598,7 +598,7 @@ LRESULT CALLBACK LuaScriptProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara { // tell the OS to open the file with its associated editor, // without blocking on it or leaving a command window open. - ShellExecute(NULL, "open", PhysicalName, NULL, NULL, SW_SHOWNORMAL); + ShellExecute(NULL, "edit", PhysicalName, NULL, NULL, SW_SHOWNORMAL); } if(created) {