Skip to content
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

Merged
merged 8 commits into from
Dec 18, 2024

Conversation

RERASER
Copy link
Contributor

@RERASER RERASER commented Sep 19, 2024

No description provided.

Copy link
Contributor

@GEEKiDoS GEEKiDoS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

编译器警告修一下

@@ -32,6 +45,7 @@ interface Window {
mounted: () => void;
shellExecute: (file: string, args?: string) => void;
detectGameInstall: (gameIndex: number) => Promise<string[]>;
detectGameInstall1: (gameIndex: number) => Promise<GameMeta>;
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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 ��֮���⴦��һ��
Copy link
Contributor

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)
Copy link
Contributor

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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个1920x1080是有原因的 不能改

{
return {};
}
auto gamemeta = ::game::environment::gamemeta::get_gamemeta((launcher::game)game_index);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static_cast

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static_cast

@@ -159,11 +159,54 @@ launcher::game detect_game_from_arguments()
return launcher::game::invalid;
}


void enableEcoQoS() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snake_case

}
}

void disableEcoQoS() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

@GEEKiDoS GEEKiDoS merged commit 5dc8afb into laochan-eacnet:master Dec 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants