Skip to content

Commit

Permalink
Updated for Genshin Impact 5.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanylow committed Oct 9, 2024
1 parent 56ac64a commit 3c0a669
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _deps
cmake-build-release
cmake-build-debug
.idea
.cache
/.vs
/out/build
/library/bin/release
Expand Down
20 changes: 10 additions & 10 deletions library/src/sdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@
void sdk::initialize_genshin_impact_global() {
auto mod = (unsigned long long)(GetModuleHandleA(nullptr));

sdk::set_field_of_view = mod + 0x165a1d0;
sdk::set_field_of_view = mod + 0x1136f30;

sdk::set_target_frame_rate = mod + 0x185be40;
sdk::quit = mod + 0x165e590;
sdk::set_target_frame_rate = mod + 0x1339720;
sdk::quit = mod + 0x113b3d0;

sdk::set_vsync_count = mod + 0xf79000;
sdk::set_vsync_count = mod + 0xa50430;

sdk::set_fog = mod + 0xf780b0;
sdk::set_fog = mod + 0xa4f4e0;

sdk::game_t::set(sdk::game_t::genshin_impact);
}

void sdk::initialize_genshin_impact_chinese() {
auto mod = (unsigned long long)(GetModuleHandleA(nullptr));

sdk::set_field_of_view = mod + 0x165f1d0;
sdk::set_field_of_view = mod + 0x1136d30;

sdk::set_target_frame_rate = mod + 0x1860e40;
sdk::quit = mod + 0x1663590;
sdk::set_target_frame_rate = mod + 0x1339520;
sdk::quit = mod + 0x113b1d0;

sdk::set_vsync_count = mod + 0xf7e000;
sdk::set_vsync_count = mod + 0xa50230;

sdk::set_fog = mod + 0xf7d0b0;
sdk::set_fog = mod + 0xa4f2e0;

sdk::game_t::set(sdk::game_t::genshin_impact);
}
Expand Down
2 changes: 1 addition & 1 deletion library/src/ui/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void ui::menu::render_menu() {
if (!ui::options::menu::opened)
return;

ui::add_window("Genshin Utility by lanylow", "v1.5.4");
ui::add_window("Genshin Utility by lanylow", "v1.5.5");
ui::add_groupbox("Settings", 19, 20 + 18, 286, 162);
ui::add_checkbox("Open menu on start", &ui::options::menu::open_on_start);
ui::add_checkbox("Frame rate counter", &ui::options::tools::fps_counter);
Expand Down

0 comments on commit 3c0a669

Please sign in to comment.