Initial commit

This commit is contained in:
Anna Rose 2011-05-25 13:13:49 -04:00
commit ebe97a9264
3 changed files with 35 additions and 0 deletions

18
README Normal file
View File

@ -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.

17
steamstub.c Normal file
View File

@ -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 <windows.h>
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;
}

BIN
steamstub.exe Executable file

Binary file not shown.