mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
Triforce v0.3.0
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -78,7 +78,7 @@ def main():
|
||||
waits["%s: %s" % (th, guest_frame(frames))] += 1
|
||||
if not is_game(th):
|
||||
vk["%s %s: %s" % (th, "runs" if r else "waits", frames[0] if not r else
|
||||
next((f for f in frames if f.startswith("hookshot_vk:")), frames[0]))] += 1
|
||||
next((f for f in frames if f.startswith(("triforce_vk:", "hookshot_vk:"))), frames[0]))] += 1
|
||||
for k, c in waits.most_common(top):
|
||||
print(" %5.1f%% %s" % (100.0 * c / max(1, len(idle)), k))
|
||||
print(" (renderer threads then)")
|
||||
|
||||
@@ -29,8 +29,8 @@ def load_map(path, base):
|
||||
|
||||
|
||||
# The modules whose frames are Hookshot's own code (the game and the runtime, the renderer): Windows, then Linux
|
||||
GAME_MODS = ("hookshot.exe", "hookshot")
|
||||
VK_MODS = ("hookshot_vk.dll", "hookshot_vk.so")
|
||||
GAME_MODS = ("Triforce.exe", "hookshot.exe", "hookshot") # (Triforce's names first; upstream's kept for its samples)
|
||||
VK_MODS = ("triforce_vk.dll", "hookshot_vk.dll", "hookshot_vk.so")
|
||||
RUN_MODS = GAME_MODS + VK_MODS
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ def load_symbols(folder=None):
|
||||
Windows build, the binaries of the Linux one"""
|
||||
folder = folder or os.environ.get("RX_MAPS", BUILD)
|
||||
maps = {}
|
||||
for mod in ("hookshot_vk.dll", "hookshot.exe"):
|
||||
for mod in ("triforce_vk.dll", "Triforce.exe", "hookshot_vk.dll", "hookshot.exe"):
|
||||
mp = os.path.join(folder, mod[:-4] + ".map")
|
||||
if os.path.exists(mp):
|
||||
maps[mod] = load_map(mp, 0x180000000 if mod.endswith(".dll") else 0x140000000)
|
||||
|
||||
Reference in New Issue
Block a user