mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2025-12-05 21:15:39 -05:00
Remove linux sources from windows build
This commit is contained in:
@@ -26,16 +26,18 @@ set(SMOKE_API_STATIC_SOURCES
|
|||||||
static/smoke_api/steamclient/steamclient.hpp
|
static/smoke_api/steamclient/steamclient.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(GENERATED_SOURCES_DIR src/generated/${BITNESS})
|
if(IS_LINUX)
|
||||||
file(MAKE_DIRECTORY ${GENERATED_SOURCES_DIR})
|
set(GENERATED_SOURCES_DIR src/generated/${BITNESS})
|
||||||
set(GENERATED_SOURCES
|
file(MAKE_DIRECTORY ${GENERATED_SOURCES_DIR})
|
||||||
|
set(GENERATED_SOURCES
|
||||||
${GENERATED_SOURCES_DIR}/proxy_exports.hpp
|
${GENERATED_SOURCES_DIR}/proxy_exports.hpp
|
||||||
${GENERATED_SOURCES_DIR}/proxy_exports.cpp
|
${GENERATED_SOURCES_DIR}/proxy_exports.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach(SRC IN LISTS GENERATED_SOURCES)
|
foreach(SRC IN LISTS GENERATED_SOURCES)
|
||||||
file(TOUCH ${SRC})
|
file(TOUCH ${SRC})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(SMOKE_API_SOURCES
|
set(SMOKE_API_SOURCES
|
||||||
${SMOKE_API_STATIC_SOURCES}
|
${SMOKE_API_STATIC_SOURCES}
|
||||||
|
|||||||
2
KoalaBox
2
KoalaBox
Submodule KoalaBox updated: 173e220abb...666a8486ea
22
README.md
22
README.md
@@ -143,7 +143,6 @@ In such cases, it might be worth trying [Special K], which can inject SmokeAPI a
|
|||||||
> If none of the methods below work for you, then consider running a Windows version of a game
|
> If none of the methods below work for you, then consider running a Windows version of a game
|
||||||
> via Proton compatibility layer and follow the instructions in the Windows section.
|
> via Proton compatibility layer and follow the instructions in the Windows section.
|
||||||
|
|
||||||
|
|
||||||
### ✔️ Requirements
|
### ✔️ Requirements
|
||||||
|
|
||||||
Linux builds of SmokeAPI depend on several libraries. Make sure they are installed on your system.
|
Linux builds of SmokeAPI depend on several libraries. Make sure they are installed on your system.
|
||||||
@@ -209,15 +208,24 @@ hence we can use it as well. But we have to include that overlay library as well
|
|||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
1. Extract and paste the `libsmoke_api32.so` or `libsmoke_api64.so` next to the game's executable.
|
1. Extract and paste the `libsmoke_api32.so` or `libsmoke_api64.so` in the root of game's installation directory.
|
||||||
2. In Steam _Library_ open game's _Properties_, switch to the _General_ tab, and set the following _LAUNCH OPTIONS_:
|
2. In Steam _Library_ open game's _Properties_, switch to the _General_ tab, and set the following _LAUNCH OPTIONS_:
|
||||||
|
|
||||||
| Bitness | Launch Options |
|
| Bitness | Launch Options |
|
||||||
|---------|----------------------------------------------------------------------------------------------------------------------------------|
|
|---------|------------------------------------------------------------------------------------------------------------------------|
|
||||||
| 32-bit | `LD_PRELOAD="./libsmoke_api32.so $HOME/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so" ./GameExecutable.x86 %command%` |
|
| 32-bit | `LD_PRELOAD="./libsmoke_api32.so $HOME/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so" ./<GameExe32> %command%` |
|
||||||
| 64-bit | `LD_PRELOAD="./libsmoke_api64.so $HOME/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so" ./GameExecutable.x86_64 %command%` |
|
| 64-bit | `LD_PRELOAD="./libsmoke_api64.so $HOME/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so" ./<GameExe64> %command%` |
|
||||||
|
|
||||||
Naturally, the exact options might change depending on where files are located on your filesystem
|
Where `<GameExe32>` and `<GameExe64>` correspond to the actual filename of the game executable. For example:
|
||||||
|
- `TheEscapists2.x86` (32-bit)
|
||||||
|
- `TheEscapists2.x86_64` (64-bit)
|
||||||
|
- `_linux/darkest.bin.x86` (32-bit)
|
||||||
|
- `_linux/darkest.bin.x86_64` (64-bit)
|
||||||
|
- `bin/linux_x64/eurotrucks2` (64-bit)
|
||||||
|
- `binaries/victoria3` (64-bit)
|
||||||
|
|
||||||
|
And so on. Notice that Linux executables do not have `.exe` extension like on Windows, so make sure to copy the entire
|
||||||
|
file name as it is. Naturally, the exact options might change depending on where files are located on your filesystem
|
||||||
and other environment variables you might have specified previously.
|
and other environment variables you might have specified previously.
|
||||||
If you have other environment variables, and you don't know how to correctly combine them,
|
If you have other environment variables, and you don't know how to correctly combine them,
|
||||||
then please make extensive use of search engines and LLMs for guidance and examples
|
then please make extensive use of search engines and LLMs for guidance and examples
|
||||||
@@ -418,7 +426,7 @@ This project makes use of the following open source projects:
|
|||||||
- [bshoshany/thread-pool](https://github.com/bshoshany/thread-pool)
|
- [bshoshany/thread-pool](https://github.com/bshoshany/thread-pool)
|
||||||
- [batterycenter/embed](https://github.com/batterycenter/embed)
|
- [batterycenter/embed](https://github.com/batterycenter/embed)
|
||||||
|
|
||||||
u
|
r
|
||||||
|
|
||||||
## 📄 License
|
## 📄 License
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
#include "build_config.h"
|
#include "build_config.h"
|
||||||
|
|
||||||
// Nested #if directives lead to unexpected evaluates, so it's best to keep conditions flat.
|
|
||||||
#if defined(KB_WIN)
|
#if defined(KB_WIN)
|
||||||
#include "koalabox/win.hpp"
|
#include "koalabox/win.hpp"
|
||||||
#elif defined(KB_LINUX) && defined(KB_32)
|
#elif defined(KB_LINUX) && defined(KB_32)
|
||||||
|
|||||||
Reference in New Issue
Block a user