commit ebe97a926440ff0d535903214adb0b6eb63cbb9b Author: Anna Date: Wed May 25 13:13:49 2011 -0400 Initial commit diff --git a/README b/README new file mode 100644 index 0000000..880b320 --- /dev/null +++ b/README @@ -0,0 +1,18 @@ +Steam stub is a simple Windows program that pops up a dialog box and closes once you click 'Ok' on it. It is intended for Linux users running Steam under wine. + +Why would you want such a simple program? Why would I write a Windows program for Linux users? Read on to find out! + +Here's the scenario: You're running Steam in wine. Steam is great; it lets you earn achievements, see what your friends are playing, and let your friends know what you are playing. However, this only works for Steam games. What if you play a lot of StarCraft 2, and you'd like to let your friends know so they can join you? + +Steam created a solution for that - you can launch non-Steam games from the Steam interface. You can't use all of the nifty Steam features, but you can at least let your friends know what you're doing. + +But what if you play Steam on Linux, and you play Linux-native games like vegastrike? You can launch a Linux binary from Steam, but Steam can't track the fact that you're playing it. This is because wine doesn't know anything about Linux binaries. + +So, this is my hack to solve the problem: add a non-Steam game, like vegastrike, to Steam, then launch a small 'stub' program that Steam can recognize while you go off and play your Linux game. Then, you can come back and close the stub program when you finish with your Linux game. + +steamstub is a trivial Windows application written to solve exactly this problem. I've included the .exe in the repository because it is fairly small, and most people don't have the mingw32 compiler tools handy on their system. The md5sum for steamstub.exe is: + +2602faed31858d240d87feeb2293a374 + + +If you don't trust me (and really, it is good security practice not to trust random executable files you find on github), just install mingw32-gcc and use it to compile steamstub.c. diff --git a/steamstub.c b/steamstub.c new file mode 100644 index 0000000..2b60e76 --- /dev/null +++ b/steamstub.c @@ -0,0 +1,17 @@ +/* steamstub.c - A Windows program for Linux + +compile it with: + +mingw32-gcc -o steamstub.exe steamstub.c + +nb: on fedora, the mingw32 C compiler is called i686-pc-mingw32-gcc + + */ + +#include + +int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) +{ + MessageBox (NULL, "The Steam Stub is now running. Go play your Linux game, and come back and click the 'OK' button on this dialog box once you are done playing it." , "Steam Stub", 0); + return 0; +} diff --git a/steamstub.exe b/steamstub.exe new file mode 100755 index 0000000..1fbec19 Binary files /dev/null and b/steamstub.exe differ