* Taseditor: cleaned up AdjustUp and AdjustDown logic

* updated docs

[[Split portion of a mixed commit.]]
This commit is contained in:
ansstuff 2012-09-14 15:37:46 +00:00
parent 873138b1dd
commit 7680c2c910
3 changed files with 8 additions and 1 deletions

View File

@ -117,6 +117,12 @@
<p><span class="rvts37"><br/></span></p>
<p><span class="rvts37">Returns true if currently in a lagframe, false otherwise.</span></p>
<p><span class="rvts37"><br/></span></p>
<p><span class="rvts52">emu.setlagflag(bool value)</span></p>
<p><span class="rvts37"><br/></span></p>
<p><span class="rvts37">Sets current value of lag flag.</span></p>
<p><span class="rvts37">Some games poll input even in lag frames, so standard way of detecting lag (used by FCEUX and other emulators) does not work for those games, and you have to determine lag frames manually.</span></p>
<p><span class="rvts37">First, find RAM addresses that help you distinguish between lag and non-lag frames (e.g. an in-game frame counter that only increments in non-lag frames). Then register memory hooks that will change lag flag when needed.</span></p>
<p><span class="rvts37"><br/></span></p>
<p><span class="rvts52">bool emu.emulating()</span></p>
<p><span class="rvts37"><br/></span></p>
<p><span class="rvts37">Returns true if emulation has started, or false otherwise. Certain operations such as using savestates are invalid to attempt before emulation has started. You probably won't need to use this function unless you want to make your script extra-robust to being started too early.</span></p>

View File

@ -104,6 +104,7 @@
<p><span class="rvts22">New Lua functions</span></p>
<ul style="text-indent: 0px; margin-left: 24px; list-style-position: outside;">
<li><span class="rvts22">emu.paused()</span></li>
<li><span class="rvts22">emu.setlagflag()</span></li>
<li><span class="rvts22">joypad.getimmediate()</span></li>
</ul>
<p><span class="rvts22"><br/></span></p>

File diff suppressed because one or more lines are too long