Skip to content

Categorize/system#8

Merged
caprado merged 38 commits into
mainfrom
categorize/system
May 26, 2026
Merged

Categorize/system#8
caprado merged 38 commits into
mainfrom
categorize/system

Conversation

@caprado
Copy link
Copy Markdown
Owner

@caprado caprado commented May 25, 2026

No description provided.

- Added detailed documentation for system entry points and initialization functions in entry.c.
- Implemented hardware initialization stubs in hardware.c for Windows compatibility.
- Developed memory allocation routines in allocation.c, including block management and statistics.
- Created synchronization mechanisms in semaphore.c, including wait queues and logging.
- Implemented utility functions for table lookups in lookup.c.
- Developed the game state machine in state.c, managing gameplay flow and transitions.
…nhance game initialization and rendering systems

- Added functions to manage a global pointer array: addToPointerArray, removeFromPointerArray, callAllFunctionPointers, getPointerArrayCount, and getPointerArrayEntry.
- Implemented game buffer initialization and secondary entry point for buffer operations in init.c.
- Created the main game loop in loop.c, handling game state updates and rendering logic.
- Developed rendering functions in rendering.c, including initialization and processing based on a rendering counter.
- Introduced resource management functions in resource.c, including resource entry initialization and reference counting.
- Updated state machine logic in state.c to utilize new buffer and resource management functions, improving overall game state handling.
- Added system_timing.c: Implements querySystemTiming and checkSystemTiming functions using Windows API for accurate frame timing.
- Introduced SystemTiming structure to encapsulate timing state, flag, and normalized timing value.
- Ensured compatibility with PS2 timing behavior, including state management and frame pacing logic.
- Created system_timing.h: Header file for the new timing functions and structure.
… validation in memory management and verification tools
- Implemented camera input processing in `camera_input.c` and `camera_input.h`, including functions for processing input, setting data pointers, and retrieving analog controller state.
- Created camera update functionality in `camera_update.c` and `camera_update.h`, handling camera state updates, input tracking, and copying camera data.
- Refactored existing functions to utilize the new camera input and update systems, replacing direct calls with appropriate function calls.
- Added documentation for new functions and structures, ensuring clarity on their purpose and usage.
- Updated frame update logic in `frame_update.c` to integrate the new camera update system.
- Cleaned up game state manager logic in `game_state_manager.c`, removing unused function calls and ensuring proper state handling.
… input state update function and enhance GameData structure
- Added fade transition functionality with `triggerFade` to manage screen fades.
- Implemented `checkEntityLoadStatus` to verify entity loading states.
- Created `gameFrameCallback` to handle main game loop states and transitions.
- Updated `initializeGameData` to include entity and camera data initialization.
- Refactored frame entry initialization to accommodate Windows compatibility.
- Enhanced rendering state management in `updateRenderState` for fade overlays.
- Introduced stubs for unrefactored functions to satisfy linker requirements.
- Improved memory allocation handling for Windows platform.
- Added detailed documentation for new functions and structures.
- Added video_player.c and video_player.h to handle video playback from AFS archives.
- Integrated audio playback for ADX files alongside video.
- Updated main_windows.c to initialize and manage video playback during the game loop.
- Implemented input handling for keyboard controls in input.c and input.h.
- Enhanced OpenGL renderer to maintain aspect ratio during window resizing.
- Added functions to manage game loop during window drag/resize events.
- Refactored existing stubs and added new functions for better code organization.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 25, 2026

Function Verification ✅

Function Verification Report

All functions verified successfully.


Checks that refactored functions properly reference originals and extracted code is unmodified

Repository owner deleted a comment from github-actions Bot May 25, 2026
caprado added 4 commits May 24, 2026 20:31
- Removed PS2-specific function calls from boot loading process in boot_load_wait.c.
- Added a new options screen implementation in options_screen.c and options_screen.h.
- Updated demo_overlay.c to integrate options screen functionality.
- Adjusted main_windows.c to handle options screen rendering.
- Modified OpenGL renderer to support fullscreen mode and maintain aspect ratio.
- Cleaned up stubs in stubs.c, categorizing them by PS2-specific, gated, and ported functions.
Repository owner deleted a comment from github-actions Bot May 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📊 Decompilation Progress Update

============================================================
REOF2 DECOMPILATION PROGRESS REPORT
============================================================

Total Functions: 4080
Categorized: 237 (5.8%)
Uncategorized: 3843

------------------------------------------------------------
BREAKDOWN BY CATEGORY:
------------------------------------------------------------
Audio - Fade                   [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Audio - Init                   [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Audio - Playback               [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    7 (  0.2%)
Audio - Settings               [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    6 (  0.1%)
Compression - Lz77             [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Core - Entry                   [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Core - Init                    [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    4 (  0.1%)
Game - Buffer                  [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Game - Camera                  [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    6 (  0.1%)
Game - Conditional             [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Game - Data                    [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Game - Entity                  [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    2 (  0.0%)
Game - Frame                   [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    8 (  0.2%)
Game - Init                    [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   26 (  0.6%)
Game - Loop                    [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Game - Menu                    [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    6 (  0.1%)
Game - Rendering               [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    4 (  0.1%)
Game - Resource                [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    5 (  0.1%)
Game - State                   [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   29 (  0.7%)
Game - Stub                    [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    3 (  0.1%)
Game - System                  [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Game - Update                  [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Game - Utility                 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Graphics - Buffer Select       [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Graphics - Compositor          [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    2 (  0.0%)
Graphics - Display             [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    4 (  0.1%)
Graphics - Dma                 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   15 (  0.4%)
Graphics - Fade                [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    3 (  0.1%)
Graphics - Gs                  [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Graphics - Init                [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    6 (  0.1%)
Graphics - Memory              [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    6 (  0.1%)
Graphics - Render              [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    4 (  0.1%)
Graphics - State               [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    2 (  0.0%)
Graphics - Sync                [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    6 (  0.1%)
Graphics - Texture             [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    2 (  0.0%)
Io - Cdrom                     [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Io - Filesystem                [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    4 (  0.1%)
Memory - Allocation            [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   10 (  0.2%)
Memory - Pool                  [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Network - Init                 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Ps2-Kernel-Not-Needed          [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   18 (  0.4%)
System - Float                 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
System - Irq                   [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    2 (  0.0%)
System - Ps2                   [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   16 (  0.4%)
System - Sync                  [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    4 (  0.1%)
System - Thread                [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    2 (  0.0%)
System - Timing                [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Utility - Array                [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    3 (  0.1%)
Utility - Lookup               [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Utility - Memory               [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    1 (  0.0%)
Utility - Stub                 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]    2 (  0.0%)
Uncategorized                  [████████████████████████████░░] 3843 ( 94.2%)

------------------------------------------------------------
BREAKDOWN BY STATUS:
------------------------------------------------------------
Complete                       [█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]  237 (  5.8%)
Uncategorized                  [████████████████████████████░░] 3843 ( 94.2%)

============================================================

Repository owner deleted a comment from github-actions Bot May 26, 2026
Repository owner deleted a comment from github-actions Bot May 26, 2026
@caprado caprado merged commit f4377d3 into main May 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant