MCPcopy Create free account

hub / github.com/KaiserGranatapfel/GameCubeRecompiled / functions

Functions702 in github.com/KaiserGranatapfel/GameCubeRecompiled

↓ 2 callersMethodwrite_bytes
May be inlined for small lengths
gcrecomp-core/src/runtime/memory.rs:418
↓ 2 callersFunctionyuv_to_rgb
BT.601 YUV (0-255) -> RGB (0-255).
game/src/main.rs:117
↓ 1 callersFunctionanalyze_dol
(dol_file: &Path, _use_reoxide: bool)
gcrecomp-cli/src/commands.rs:7
↓ 1 callersFunctionapp_routes
All application routes (no nesting required).
gcrecomp-web/src/routes.rs:25
↓ 1 callersFunctionarm_watchdog
Arm the watchdog: allow recompiled code `secs` of wall-clock time, then stop it.
gcrecomp-core/src/runtime/mod.rs:21
↓ 1 callersFunctionbind_address
Bind to localhost only for security.
gcrecomp-web/src/security.rs:4
↓ 1 callersFunctionbuild_archive
Build a GCFS archive from extracted disc files. Format (all integers little-endian): ```text Header: magic b"GCFS" | version u32 | file_count u32 |
gcrecomp-lua/src/bindings/disc_fs.rs:154
↓ 1 callersFunctionbuild_dol
(dol_file: &Path, output_dir: Option<&Path>, use_reoxide: bool)
gcrecomp-cli/src/commands.rs:86
↓ 1 callersMethodbytes_per_pixel
(&self)
gcrecomp-runtime/src/texture/loader.rs:76
↓ 1 callersFunctioncall_function_by_address
Dispatch a recompiled function by address. The placeholder knows none.
recompiled/src/lib.rs:26
↓ 1 callersMethodclear_vtx_descs
Clear all vertex attribute descriptors to `None`.
gcrecomp-runtime/src/graphics/gx/state.rs:518
↓ 1 callersMethodcolor1_4u8
Submit an RGBA color for color channel 1.
gcrecomp-runtime/src/graphics/gx/vertex.rs:294
↓ 1 callersFunctioncompile_game
Compile the game crate and produce a named executable.
gcrecomp-lua/src/bindings/web.rs:643
↓ 1 callersFunctioncompute_dol_size
Compute the total file size of a DOL from its header. DOL header: 7 text sections + 11 data sections, each with (file_offset, size).
gcrecomp-lua/src/bindings/web.rs:272
↓ 1 callersMethodcompute_stride
Compute the number of f32 values per vertex (stride) based on the attribute layout of the **first** flushed vertex. This is safe because all vertices
gcrecomp-runtime/src/graphics/gx/vertex.rs:395
↓ 1 callersFunctionconvert_fan_to_triangles
Convert GX triangle fan to triangle list (fan with center V0: V0V1V2, V0V2V3, ...).
gcrecomp-runtime/src/graphics/gx/draw.rs:53
↓ 1 callersFunctionconvert_quads_to_triangles
Convert GX quads to triangles (quad ABCD → triangles ABC + ACD).
gcrecomp-runtime/src/graphics/gx/draw.rs:27
↓ 1 callersMethodcreate_pipeline
( &self, device: &Device, key: &PipelineKey, vertex_shader: &ShaderModule,
gcrecomp-runtime/src/graphics/gx/pipeline.rs:103
↓ 1 callersFunctiondefault_vertex_descriptors
Helper: build the default vertex descriptor array with all inputs as None.
gcrecomp-runtime/src/graphics/gx/state.rs:445
↓ 1 callersFunctiondetect_controller_type
(name: &str)
gcrecomp-runtime/src/input/backends/sdl2.rs:118
↓ 1 callersFunctiondetect_controller_type
(name: &str)
gcrecomp-runtime/src/input/backends/gilrs.rs:101
↓ 1 callersMethoddisable_all
(&mut self)
gcrecomp-core/src/runtime/sdk/interrupt.rs:31
↓ 1 callersFunctiondownload_and_install_ghidra
Download and install Ghidra to ~/.local/share/gcrecomp/.
gcrecomp-core/src/recompiler/ghidra.rs:522
↓ 1 callersFunctiondownload_dolphin_tool
Download the dolphin-emu-tool Arch package and extract just the binary into the project's tools/ directory. No root access required.
gcrecomp-lua/src/bindings/web.rs:441
↓ 1 callersMethoddvd_close
Close a file handle. Returns true if the handle was valid.
gcrecomp-core/src/runtime/sdk/dvd.rs:176
↓ 1 callersMethoddvd_get_length
Get the decompressed file length for an open handle.
gcrecomp-core/src/runtime/sdk/dvd.rs:187
↓ 1 callersMethoddvd_open
Open a file by path. Returns a handle (>0) or 0 on failure. GameCube games use paths like `/banner.bnr` or `audio/stream.adp`. We normalize by stripp
gcrecomp-core/src/runtime/sdk/dvd.rs:146
↓ 1 callersMethoddvd_read
Read data from an open file into GameCube memory. Decompresses the file on first access and caches the result. Copies `length` bytes starting at `off
gcrecomp-core/src/runtime/sdk/dvd.rs:196
↓ 1 callersMethodeliminate_dead_code
Dead code elimination pass. Removes instructions that write to registers never subsequently read.
gcrecomp-core/src/recompiler/optimizer.rs:117
↓ 1 callersMethodemit_terminator
Emit the block terminator: set `__blk` to the next/target block, call+continue (bl), or return. `cur` is the current block index, `n` the block count.
gcrecomp-core/src/recompiler/codegen/mod.rs:226
↓ 1 callersFunctionenable_trace
Enable the call trace (logs the first few thousand function entries).
gcrecomp-core/src/runtime/mod.rs:35
↓ 1 callersMethodenabled
(&self)
gcrecomp-core/src/runtime/sdk/interrupt.rs:23
↓ 1 callersMethodensure_blit
(&mut self)
gcrecomp-runtime/src/graphics/renderer.rs:288
↓ 1 callersMethodenumerate_controllers
(&mut self)
gcrecomp-runtime/src/input/backends/sdl2.rs:38
↓ 1 callersFunctionexport_decompiled_code
Export decompiled C code for functions
scripts/ghidra_export.py:106
↓ 1 callersFunctionexport_decompiled_code
Export decompiled C code for functions
gcrecomp-core/scripts/ghidra_export.py:106
↓ 1 callersFunctionexport_functions
Export all function information
scripts/ghidra_export.py:14
↓ 1 callersFunctionexport_functions
Export all function information
gcrecomp-core/scripts/ghidra_export.py:14
↓ 1 callersFunctionexport_symbols
Export all symbol information
scripts/ghidra_export.py:79
↓ 1 callersFunctionexport_symbols
Export all symbol information
gcrecomp-core/scripts/ghidra_export.py:79
↓ 1 callersFunctionextract_all_files
Extract all files from a GameCube disc image's FST. The FST location is stored at disc offset 0x424 (FST offset) and 0x428 (FST size). Each FST entry
gcrecomp-lua/src/bindings/disc_fs.rs:32
↓ 1 callersFunctionextract_dol_and_files_from_rvz
Convert RVZ to ISO once, then extract both DOL and filesystem files. This avoids converting twice when the caller needs both.
gcrecomp-lua/src/bindings/web.rs:365
↓ 1 callersFunctionextract_dol_from_zip
Extract a DOL from a zip archive. Strategy: 1. Look for .dol files by extension. 2. Look for disc images (.iso, .gcm) by extension → extract DOL from
gcrecomp-lua/src/bindings/web.rs:509
↓ 1 callersMethodfinalize
Finalize the current buffer: apply master volume, clamp, and return.
gcrecomp-runtime/src/audio/mixer.rs:49
↓ 1 callersFunctionfind_or_create_reoxide_export_script
May be called frequently
gcrecomp-core/src/recompiler/ghidra.rs:656
↓ 1 callersFunctionfind_or_download_dolphin_tool
Find dolphin-tool in PATH or local tools/ directory. If not found anywhere, download the Arch package and extract it locally.
gcrecomp-lua/src/bindings/web.rs:406
↓ 1 callersMethodfold_constants
Constant folding and propagation pass. Tracks constant values loaded by `li` (opcode 14 with rA=0) and `addi` patterns, propagating them through regi
gcrecomp-core/src/recompiler/optimizer.rs:53
↓ 1 callersMethodgenerate_arithmetic
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:437
↓ 1 callersMethodgenerate_branch
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:702
↓ 1 callersMethodgenerate_compare
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:776
↓ 1 callersMethodgenerate_condition_register
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:955
↓ 1 callersMethodgenerate_floating_point
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:878
↓ 1 callersMethodgenerate_function_body
Generate a function body as a basic-block state machine: `let mut __blk = 0; loop { match __blk { 0 => {...}, ... } }`. Branches set `__blk` to the ta
gcrecomp-core/src/recompiler/codegen/mod.rs:103
↓ 1 callersMethodgenerate_function_signature
(&self, metadata: &FunctionMetadata)
gcrecomp-core/src/recompiler/codegen/mod.rs:67
↓ 1 callersMethodgenerate_generic
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:1178
↓ 1 callersMethodgenerate_instruction
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:387
↓ 1 callersMethodgenerate_load
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:600
↓ 1 callersMethodgenerate_move
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:852
↓ 1 callersMethodgenerate_rotate
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:1073
↓ 1 callersMethodgenerate_shift
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:1040
↓ 1 callersFunctiongenerate_stage_wgsl
Appends the WGSL code for a single TEV stage to `out`.
gcrecomp-runtime/src/graphics/gx/tev.rs:318
↓ 1 callersMethodgenerate_store
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:648
↓ 1 callersMethodgenerate_system
(&mut self, inst: &DecodedInstruction)
gcrecomp-core/src/recompiler/codegen/mod.rs:1110
↓ 1 callersMethodget_cr_field
(&self, field: u8)
gcrecomp-core/src/runtime/context.rs:44
↓ 1 callersMethodget_fpr
(&self, reg: u8)
gcrecomp-core/src/runtime/context.rs:59
↓ 1 callersMethodget_gamecube_input
(&self, controller_id: usize)
gcrecomp-runtime/src/input/controller.rs:106
↓ 1 callersFunctionget_ghidra_download_url
Get the Ghidra download URL by querying the GitHub releases API. Falls back to a known-good version if the API call fails.
gcrecomp-core/src/recompiler/ghidra.rs:486
↓ 1 callersMethodget_input
(&self, controller_id: usize)
gcrecomp-runtime/src/input/backends/sdl2.rs:70
↓ 1 callersMethodget_tick
Get the lower 32 bits of the timebase counter (OSGetTick).
gcrecomp-core/src/runtime/sdk/timer.rs:32
↓ 1 callersFunctiongx_primitive_to_topology
Convert a GX primitive type byte to wgpu PrimitiveTopology.
gcrecomp-runtime/src/graphics/gx/draw.rs:14
↓ 1 callersMethodhi_cursor
(&self)
gcrecomp-core/src/runtime/sdk/heap.rs:76
↓ 1 callersMethodinit_dvd
Initialize the virtual DVD filesystem from an embedded GCFS archive.
gcrecomp-core/src/runtime/sdk/os.rs:33
↓ 1 callersMethodinit_gpu
Initialize wgpu-dependent resources (bind group / pipeline layouts).
gcrecomp-runtime/src/graphics/gx/mod.rs:44
↓ 1 callersMethodinit_layouts
Initialize the shared bind group layout and pipeline layout.
gcrecomp-runtime/src/graphics/gx/pipeline.rs:36
↓ 1 callersMethodinitialize_audio
(&mut self)
gcrecomp-runtime/src/runtime.rs:52
↓ 1 callersMethodinitialize_graphics
(&mut self, window: Arc<winit::window::Window>)
gcrecomp-runtime/src/runtime.rs:47
↓ 1 callersMethodis_active
(&self, channel: usize)
gcrecomp-runtime/src/memory/dma.rs:59
↓ 1 callersMethodlo_cursor
(&self)
gcrecomp-core/src/runtime/sdk/heap.rs:72
↓ 1 callersMethodload_default_mapping
(&mut self, controller_id: usize)
gcrecomp-runtime/src/input/controller.rs:139
↓ 1 callersFunctionload_image
Load the DOL memory image into RAM. The placeholder has no image.
recompiled/src/lib.rs:23
↓ 1 callersFunctionmain
Main export function
scripts/ghidra_export.py:125
↓ 1 callersFunctionmain
Main export function
gcrecomp-core/scripts/ghidra_export.py:125
↓ 1 callersMethodmap_to_gamecube
(&self, input: &RawInput)
gcrecomp-runtime/src/input/gamecube_mapping.rs:153
↓ 1 callersFunctionos_alloc_from_arena_hi
OSAllocFromArenaHi - Allocate memory from high end of arena.
gcrecomp-core/src/runtime/sdk/os.rs:112
↓ 1 callersFunctionos_alloc_from_arena_lo
OSAllocFromArenaLo - Allocate memory from low end of arena.
gcrecomp-core/src/runtime/sdk/os.rs:107
↓ 1 callersFunctionos_disable_interrupts
OSDisableInterrupts - Disable all maskable interrupts, return previous state.
gcrecomp-core/src/runtime/sdk/os.rs:95
↓ 1 callersFunctionos_fatal
OSFatal - Fatal error handler.
gcrecomp-core/src/runtime/sdk/os.rs:84
↓ 1 callersFunctionos_get_arena_hi
OSGetArenaHi - Get current high arena pointer.
gcrecomp-core/src/runtime/sdk/os.rs:122
↓ 1 callersFunctionos_get_arena_lo
OSGetArenaLo - Get current low arena pointer.
gcrecomp-core/src/runtime/sdk/os.rs:117
↓ 1 callersFunctionos_get_console_type
OSGetConsoleType - Returns console hardware revision.
gcrecomp-core/src/runtime/sdk/os.rs:90
↓ 1 callersFunctionos_report
OSReport - Debug output function.
gcrecomp-core/src/runtime/sdk/os.rs:79
↓ 1 callersFunctionos_restore_interrupts
OSRestoreInterrupts - Restore interrupt enable state.
gcrecomp-core/src/runtime/sdk/os.rs:102
↓ 1 callersFunctionos_set_arena_hi
OSSetArenaHi - Set the high arena pointer directly.
gcrecomp-core/src/runtime/sdk/os.rs:132
↓ 1 callersFunctionos_set_arena_lo
OSSetArenaLo - Set the low arena pointer directly.
gcrecomp-core/src/runtime/sdk/os.rs:127
↓ 1 callersFunctionparse_widget
(w: &Table)
gcrecomp-lua/src/bindings/ui.rs:56
↓ 1 callersMethodposition_3s16
Submit a 3-component s16 position (converted to f32).
gcrecomp-runtime/src/graphics/gx/vertex.rs:269
↓ 1 callersMethodpresent_framebuffer
Present an RGBA8 framebuffer (read from emulated RAM) to the window by uploading it to a texture and blitting it fullscreen. `rgba.len()` must be `w *
gcrecomp-runtime/src/graphics/renderer.rs:379
↓ 1 callersMethodpull_samples
Pull exactly `count` interleaved stereo samples for the audio output thread.
gcrecomp-runtime/src/audio/mixer.rs:63
↓ 1 callersMethodread_bytes
May be inlined for small lengths
gcrecomp-runtime/src/memory/ram.rs:218
↓ 1 callersMethodread_u16
Hot path - may be inlined
gcrecomp-runtime/src/memory/ram.rs:92
← previousnext →101–200 of 702, ranked by callers