mirror of
https://github.com/ApfelTeeSaft/AmIVirtual.git
synced 2026-08-26 19:23:26 +00:00
main
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
devkitPPCtoolchain installed andDEVKITPPCenvironment 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.
Description
Simple C lib to detect wether a Wii Program is running in vWii (WiiU) Real Hardware (Wii) or the Dolphin Emulator
31 KiB
Languages
C
54.6%
Makefile
45.4%