-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
加入版本号检测 修复全屏报错 #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
编译器警告修一下
assets/launcher-ui/src/env.d.ts
Outdated
@@ -32,6 +45,7 @@ interface Window { | |||
mounted: () => void; | |||
shellExecute: (file: string, args?: string) => void; | |||
detectGameInstall: (gameIndex: number) => Promise<string[]>; | |||
detectGameInstall1: (gameIndex: number) => Promise<GameMeta>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接换掉原来的
{ | ||
return GetSystemMetrics(SM_CXSCREEN); | ||
} | ||
return 1920; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w
|
||
return h; | ||
return 1200; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h
@@ -15,16 +15,23 @@ namespace iidx::custom_resolution | |||
{ | |||
static auto w = mode() == 1 ? | |||
GetSystemMetrics(SM_CXSCREEN) : std::stoi(game::environment::get_param("IIDX_RESOLTION_W")); | |||
|
|||
return w; | |||
if (w == 0)//��֪��Ϊʲô�����ֱ��ʵ�ʱ�������Ϊ0 ��֮�����һ�� |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w = w ? w : GetSystemMetrics(SM_CXSCREEN)
} | ||
|
||
int height() | ||
{ | ||
static auto h = mode() == 1 ? | ||
GetSystemMetrics(SM_CYSCREEN) : std::stoi(game::environment::get_param("IIDX_RESOLTION_H")); | ||
if (h == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
{ | ||
pMode->Format = Format; | ||
pMode->Width = 1920; | ||
pMode->Height = 1080; | ||
pMode->Width = iidx::custom_resolution::width(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个1920x1080是有原因的 不能改
src/client/launcher/launcher.cpp
Outdated
{ | ||
return {}; | ||
} | ||
auto gamemeta = ::game::environment::gamemeta::get_gamemeta((launcher::game)game_index); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static_cast
src/client/launcher/launcher.cpp
Outdated
try | ||
{ | ||
auto install = ::game::environment::get_install_path().string(); | ||
auto resource = ::game::environment::get_resource_path().string(); | ||
if (game_index >= (int)launcher::game::count || game_index <= (int)launcher::game::invalid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static_cast
src/client/main.cpp
Outdated
@@ -159,11 +159,54 @@ launcher::game detect_game_from_arguments() | |||
return launcher::game::invalid; | |||
} | |||
|
|||
|
|||
void enableEcoQoS() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
snake_case
src/client/main.cpp
Outdated
} | ||
} | ||
|
||
void disableEcoQoS() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
需要把dxvk的d3d9.dll改名为dxvk.dll放在启动器exe旁边
No description provided.