mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 11:55:52 -04:00
feat: force application running on dedicated graphics card. So Minecraft can also run on dedicated graphics card too.
This commit is contained in:
parent
95ea6610b1
commit
0256b8a971
@ -6,6 +6,11 @@
|
|||||||
|
|
||||||
Version J8(TEXT("8"));
|
Version J8(TEXT("8"));
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
||||||
|
_declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001;
|
||||||
|
}
|
||||||
|
|
||||||
void RawLaunchJVM(const std::wstring &javaPath, const std::wstring &workdir,
|
void RawLaunchJVM(const std::wstring &javaPath, const std::wstring &workdir,
|
||||||
const std::wstring &jarPath) {
|
const std::wstring &jarPath) {
|
||||||
if (MyCreateProcess(
|
if (MyCreateProcess(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user