Skip to content

Commit 7fb2581

Browse files
authored
Merge pull request #73 from chrisws/0_12_13
COMMON: fix problem with windows editor F8
2 parents 078385a + b92b128 commit 7fb2581

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function buildConsole() {
269269
TARGET="Building Cygwin MinGW console version."
270270
AC_DEFINE(__MINGW32__, 1, [as above])
271271
AC_DEFINE(_UnixOS, 1, [Building under Unix like systems.])
272-
PACKAGE_LIBS="${PACKAGE_LIBS} -mconsole -lmingw32 -lwsock32"
272+
PACKAGE_LIBS="${PACKAGE_LIBS} -mconsole -lmingw32 -lwsock32 -lws2_32 -static-libgcc"
273273
BUILD_SUBDIRS="src/common src/platform/console"
274274
fi
275275
AC_DEFINE(_Win32, 1, [Windows build])

src/platform/sdl/syswm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void launchExec(const char *file) {
6262
STARTUPINFO info = {sizeof(info)};
6363
PROCESS_INFORMATION processInfo;
6464
char cmd[1024];
65-
sprintf(cmd, "-x %s", file);
65+
sprintf(cmd, "%s -x %s", g_appPath, file);
6666
if (!CreateProcess(g_appPath, cmd, NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo)) {
6767
appLog("failed to start %d %s %s\n", GetLastError(), g_appPath, cmd);
6868
}

0 commit comments

Comments
 (0)