mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Add hack for Nvidia
This commit is contained in:
parent
0a312d3b08
commit
267f18ca81
2 changed files with 9 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ QT5_ADD_RESOURCES(GRAPHICS_QRC graphics.qrc)
|
|||
ADD_LIBRARY(MultiMC_common STATIC ${MULTIMC_SOURCES} ${MULTIMC_UI} ${GENERATED_QRC} ${GRAPHICS_QRC})
|
||||
|
||||
# Add executable
|
||||
ADD_EXECUTABLE(MultiMC MACOSX_BUNDLE WIN32 main.cpp ${MULTIMC_RCS})
|
||||
ADD_EXECUTABLE(MultiMC MACOSX_BUNDLE WIN32 main.cpp Hacks.cpp ${MULTIMC_RCS})
|
||||
|
||||
# Link
|
||||
TARGET_LINK_LIBRARIES(MultiMC MultiMC_common)
|
||||
|
|
|
|||
8
Hacks.cpp
Normal file
8
Hacks.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include "MultiMC.h"
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
extern "C"
|
||||
{
|
||||
__declspec(dllexport) uint32_t NvOptimusEnablement = 0x00000001;
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue