8,452
edits
Paradox-01 (talk | contribs) (scanning the mountain compound AKEV xml for textures takes about 20 secs for me, reading the oni file directly takes just 1 second) |
Paradox-01 (talk | contribs) (get OS bit version) |
||
Line 1: | Line 1: | ||
===OS bit version=== | |||
'''shorter but slower''' | |||
if GetObject("winmgmts:root\cimv2:Win32_Processor='cpu0'").AddressWidth = 64 then | |||
logmessage "run 64-bit OS" | |||
else | |||
logmessage "run 32-bit OS" | |||
end if | |||
'''longer but faster''' | |||
Const HKEY_LOCAL_MACHINE = &H80000002 | |||
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv") | |||
strKeyPath = "HARDWARE\DESCRIPTION\System\CentralProcessor\0" | |||
strValueName = "Identifier" | |||
oReg.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strValue | |||
if (InStr(strValue, "x86")) then | |||
logmessage "32" | |||
else | |||
logmessage "64" | |||
end If | |||
===Math=== | ===Math=== | ||
====Euler rotation -> matrix==== | ====Euler rotation -> matrix==== |
edits