# voidless7125/ois-debug architecture

> Architecture diagram of the GitHub repository voidless7125/ois-debug, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/voidless7125/ois-debug
- Repository: https://github.com/voidless7125/ois-debug

## Overview

##### Project Type Analysis
This is a reverse engineering/decompilation project of a game, with both an executable and a server component. The presence of .c and .h files indicates it's a C-based decompilation effort.

##### Main Components

a) Core Components:
- Original Game Binary (reference)
- Decompiled Executable (ois.exe)
- Server Component (ois_server.exe)
- Header Definitions (ois.exe.h)
- Source Implementation (ois.exe.c)

b) Relationships:
- Relationship between the original binary and the decompiled components
- Client-server architecture
- Dependency flow between header and implementation files

**[Original Game Binary]**
- ↓
- [Decompiler]
- ↓
**[Decompiled Components]**
- /          \
**[Client]    [Server]**

**[ois.exe.h] ←→ [ois.exe.c]**
- ↓
- [ois.exe] ←→ [ois_server.exe]

##### Documentation Elements
- A section showing the relationship with the original Steam version
- Placeholders for the asset loading system
- Areas with undefined functions
- Error handling and debugging paths

##### Technical Details to Highlight
- Build system (CMake configuration)
- Debug information flow (indicated by .pdb file)
- Binary interface boundaries
- Memory mapping structures

- Hierarchical representation
- Clear connection lines
- Component grouping
- Version control integration
- Export to common formats

Remember to:

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Original Game"
        OGB[Original Game Binary]
    end

    subgraph "Decompilation Process"
        DCP[Decompiler]
        DI["Debug Information"]:::debug
    end

    subgraph "Build System"
        CMAKE["CMake Build System"]:::build
    end

    subgraph "Core Components"
        HD["Header Definitions"]:::header
        SI["Source Implementation"]:::source
        DE["Decompiled Executable"]:::executable
        SC["Server Component"]:::server
    end

    subgraph "Development Status"
        UF["Undefined Functions<br/>(5000+)"]:::undefined
        AL["Asset Loading System"]:::partial
        CCP["Client-Server Protocols"]:::partial
        MMS["Memory Management"]:::partial
    end

    %% Relationships
    OGB --> DCP
    DCP --> HD
    DCP --> SI
    DI --> DCP
    
    HD <--> SI
    HD --> DE
    SI --> DE
    CMAKE --> DE
    CMAKE --> SC
    
    DE <--> SC
    
    %% Status Connections
    HD --> UF
    SI --> UF
    DE --> AL
    DE --> CCP
    DE --> MMS
    SC --> CCP

    %% Styling
    classDef header fill:#a8d1ff
    classDef source fill:#a8ffb3
    classDef executable fill:#ffffa8
    classDef server fill:#ffd1a8
    classDef undefined fill:#ff9999
    classDef partial fill:#fff5a8
    classDef debug fill:#e6a8ff
    classDef build fill:#a8ffe6

    %% Click Events
    click HD "https://github.com/Voidless7125/OIS-Debug/blob/dev/ois.exe.h"
    click SI "https://github.com/Voidless7125/OIS-Debug/blob/dev/ois.exe.c"
    click DE "https://github.com/Voidless7125/OIS-Debug/blob/dev/ois.exe"
    click SC "https://github.com/Voidless7125/OIS-Debug/blob/dev/ois_server.exe"
    click DI "https://github.com/Voidless7125/OIS-Debug/blob/dev/ois.pdb"
    click CMAKE "https://github.com/Voidless7125/OIS-Debug/blob/dev/CMakeLists.txt"

    %% Legend
    subgraph Legend
        L1["Header Files"]:::header
        L2["Source Files"]:::source
        L3["Executables"]:::executable
        L4["Server Components"]:::server
        L5["Undefined"]:::undefined
        L6["Partial"]:::partial
        L7["Debug Info"]:::debug
        L8["Build System"]:::build
    end
```
