2026-03-01 12:45:48 +01:00
2026-03-01 12:45:48 +01:00
2026-03-01 12:45:48 +01:00
2026-03-01 12:34:57 +01:00
2026-03-01 12:45:48 +01:00
2026-03-01 12:45:48 +01:00

AmIVirtual

A lightweight C library for detecting if your Wii or Wii U is running under emulation or in a virtual environment.

Features

  • Dolphin Emulator Detection: Identifies if code is executing under the Dolphin GameCube/Wii emulator
  • vWii Detection: Detects if running in Wii virtual mode on Wii U
  • Version Query: Retrieves Dolphin emulator version information
  • System Time Access: Gets real host system time from Dolphin for timing analysis

Building

Prerequisites

  • devkitPPC toolchain installed and DEVKITPPC environment variable set
  • libogc and other standard Wii development libraries

Compile

make

This generates libaiv.a in the project root.

API Usage

#include "aiv.h"

// Simple checks
if (AIV_IsDolphin()) {
    // Running under Dolphin
}

if (AIV_IsVirtualWii()) {
    // Running in vWii mode on Wii U
}

// Get detailed results
u32 result = AIV_Detect();
if (result & AIV_RESULT_DOLPHIN) {
    // Dolphin detected
}

// Query Dolphin version
char version[64];
if (AIV_GetDolphinVersion(version, sizeof(version))) {
    printf("Dolphin: %s\n", version);
}

API Reference

See include/aiv.h for complete function documentation.

S
Description
Simple C lib to detect wether a Wii Program is running in vWii (WiiU) Real Hardware (Wii) or the Dolphin Emulator
Readme
31 KiB
Languages
C 54.6%
Makefile 45.4%