Skip to content

Commit

Permalink
Add shortcut for changing cyspring update mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimjio committed Jan 19, 2023
1 parent a2f4b23 commit 1ac16cf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/VERSIONINFO.rc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,16,0,0
PRODUCTVERSION 1,16,0,0
FILEVERSION 1,16,2,0
PRODUCTVERSION 1,16,2,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -25,19 +25,19 @@ BEGIN
BEGIN
VALUE "LegalCopyright", "Copyright © Ji O Kim\0"
VALUE "FileDescription", "우마무스메 현지화 패치\0"
VALUE "FileVersion", "1.16.0.0\0"
VALUE "FileVersion", "1.16.2.0\0"
VALUE "InternalName", "umamusume-localify\0"
VALUE "ProductName", "Umamusume Localify\0"
VALUE "ProductVersion", "1.16.0\0"
VALUE "ProductVersion", "1.16.2\0"
END
BLOCK "000004b0"
BEGIN
VALUE "LegalCopyright", "Copyright © Ji O Kim\0"
VALUE "FileDescription", "Localization patch for Umamusume\0"
VALUE "FileVersion", "1.16.1.0\0"
VALUE "FileVersion", "1.16.2.0\0"
VALUE "InternalName", "umamusume-localify\0"
VALUE "ProductName", "Umamusume Localify\0"
VALUE "ProductVersion", "1.16.0\0"
VALUE "ProductVersion", "1.16.2\0"
END
END
BLOCK "VarFileInfo"
Expand Down
22 changes: 22 additions & 0 deletions src/hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,28 @@ namespace
return TRUE;
}
}
if (g_cyspring_update_mode != -1)
{
bool altDown = (lParam & (static_cast<long long>(1) << 29)) != 0;
if (altDown)
{
switch (wParam)
{
case '1':
g_cyspring_update_mode = 0;
break;
case '2':
g_cyspring_update_mode = 1;
break;
case '3':
g_cyspring_update_mode = 2;
break;
case '4':
g_cyspring_update_mode = 3;
break;
}
}
}
if (g_unlock_size)
{

Expand Down

0 comments on commit 1ac16cf

Please sign in to comment.