Quote:
Originally Posted by gap
I wonder if the value chosen by devs is just an arbitrary number, or rather based on some speculation by them. I mean: why 0.283 and not just 0.25 or 0.3?
|
The answer to this is we'll never know unless the programmer who coded this section tells us. What I can infer is this: it's located in SHSim's .rdata section. This tells me it was declared as a constant or global constant in the original C++ code. This is good news because I can modify it - define a variable in the patch file that can add an adjustment amount to it (+ or -) thus letting the end-user decide when nighttime is
I'll write this code tomorrow.
Going to have to do a little trickery because of this:
Dump - SHSim_act:06AC0000..06AC0FFF
Address Hex dump Decoded data Comments
06AC023C \. 40000040 DD 40000040 ; Characteristics = INITIALIZED_DATA|READ
SHSim's .rdata section only has read access which is typical of rdata sections (they are usually read-only constants or read-only global constants)
Here's where years and years of hacking comes into play! If you ever want to modify data in a section that is read-only or doesn't have write access just modify the flags in the PE header to give you the access you need/want. Easy as pie!!