mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
Fixed compilation for windows
This commit is contained in:
parent
1ce95ec672
commit
6224350142
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,3 +15,4 @@ rtlgenrandom*
|
|||||||
steamclient.exp
|
steamclient.exp
|
||||||
steamclient.lib
|
steamclient.lib
|
||||||
out/*
|
out/*
|
||||||
|
glew
|
||||||
|
@ -204,7 +204,9 @@ S_API bool S_CALLTYPE SteamAPI_Init()
|
|||||||
|
|
||||||
Steam_Client* client = get_steam_client();
|
Steam_Client* client = get_steam_client();
|
||||||
client->userLogIn();
|
client->userLogIn();
|
||||||
|
#ifndef NO_OVERLAY
|
||||||
client->steam_overlay->SetupOverlay();
|
client->steam_overlay->SetupOverlay();
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
12
download_glew.sh
Executable file
12
download_glew.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -rf glew*
|
||||||
|
|
||||||
|
URL="https://downloads.sourceforge.net/project/glew/glew/2.1.0/glew-2.1.0-win32.zip?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fglew%2Ffiles%2Fglew%2F2.1.0%2Fglew-2.1.0-win32.zip%2Fdownload&ts=1565791827"
|
||||||
|
|
||||||
|
wget "$URL" -O glew.zip
|
||||||
|
unzip glew.zip
|
||||||
|
rm glew.zip
|
||||||
|
mv glew-* glew
|
||||||
|
# Fix libraries name
|
||||||
|
sed -i "s/LIBCMT/libcmt/;s/OLDNAMES/oldnames/" glew/lib/Release/*/glew32s.lib
|
@ -124,10 +124,10 @@ public:
|
|||||||
class Steam_Overlay
|
class Steam_Overlay
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Steam_Overlay(Settings* settings, SteamCallResults* callback_results, SteamCallBacks* callbacks, RunEveryRunCB* run_every_runcb, Networking *network);
|
Steam_Overlay(Settings* settings, SteamCallResults* callback_results, SteamCallBacks* callbacks, RunEveryRunCB* run_every_runcb, Networking *network) {}
|
||||||
~Steam_Overlay();
|
~Steam_Overlay() {}
|
||||||
|
|
||||||
bool Ready() const { return false: }
|
bool Ready() const { return false; }
|
||||||
|
|
||||||
bool NeedPresent() const { return false; }
|
bool NeedPresent() const { return false; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user