MCPcopy Create free account
hub / github.com/DFHack/dfhack / launch_via_steam_posix

Function launch_via_steam_posix

package/launchdf.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static 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
45static LPCWSTR launch_via_steam() {
46 STARTUPINFOW si;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected