Created
June 14, 2019 11:04
-
-
Save hyrious/b68576c32096e6c141f2a9cb880ad37c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = SteamAPIContext.new | |
a = Win32API.new('steam_api', 'SteamAPI_ISteamApps_GetCurrentGameLanguage', 'L', 'L') | |
l = Win32API.new('kernel32', 'lstrlen', 'L', 'L') | |
ps = a.call(x.steam_apps) | |
len = l.call(ps) | |
str = [].pack("x#{len}") | |
mm = Win32API.new('kernel32', 'RtlMoveMemory', 'pLL', 'L') | |
mm.call(str, ps, len) | |
p str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment