| 34 | } |
| 35 | |
| 36 | static LPCWSTR launch_via_steam_posix() { |
| 37 | const char* argv[] = { "/bin/sh", "-c", "\"steam -applaunch " xstr(DF_STEAM_APPID) "\"", NULL }; |
| 38 | |
| 39 | // does not return on success |
| 40 | _execv(argv[0], argv); |
| 41 | |
| 42 | return L"Could not launch Dwarf Fortress"; |
| 43 | } |
| 44 | |
| 45 | static LPCWSTR launch_via_steam() { |
| 46 | STARTUPINFOW si; |