[Snippet] Get Display Settings

Ninja FTW

Well-Known Member
Joined
Aug 11, 2017
Messages
61
Likes
0
Points
6
Location
Saturn
#1
(Get Display resolution)

Code:
call @GetResolution 0 [email protected] [email protected]
:GetResolution
0A8D: [email protected] = read_memory 0xC9C040 size 4 virtual_protect 0 //X
0A8D: [email protected] = read_memory 0xC9C044 size 4 virtual_protect 0 //Y
ret 2 [email protected] [email protected]  
Getting display inches:
Code:
call @DisplayInch 0 [email protected]

:DisplayInch
0A8D: [email protected] = read_memory 0xC9C048 size 4 virtual_protect 0
ret 1 [email protected]

(DisplayRefresh)
Code:
call @DisplayRefresh 0 [email protected]

:DisplayRefresh
0A8D: [email protected] = read_memory 0xC9C070 size 4 virtual_protect 0
ret 1 [email protected]
(To verify if the game running in window or not)

Code:
call @isWindowMode 0

:isWindowMode
0A8D: [email protected] = read_memory 0xC9C060 size 4 virtual_protect 0
if [email protected] == 1
    then ret 0 1
end
ret 0 0

 
Top