# Emulator **Repository Path**: liobruce/emulator ## Basic Information - **Project Name**: Emulator - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-01 - **Last Updated**: 2026-09-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Smart Emulator Smart Emulator is an Android multi-platform emulator application based on Libretro cores, supporting NES, GB/GBA, and SNES/SFC game execution. ## Feature Highlights ### Core Simulation Features - **Multi-platform Support**: Integrates three major emulator cores: FCEUmm (NES), mGBA (GB/GBA), and Snes9x (SNES/SFC). - **HD Output**: Supports adaptive resolution display, automatically adapting to different screen sizes. - **Frame Rate Control**: Precise frame synchronization and audio output ensure smooth gameplay. - **Save States**: Supports saving and loading game progress states at any time. ### ROM Compatibility - **Multiple Format Support**: Supports mainstream game ROM formats such as NES, GB, GBA, SNES. - **Compressed File Support**: Can directly read ROM files inside compressed packages such as ZIP, 7z, RAR, TAR, GZIP, XZ, BZIP2. - **Auto Recognition**: Intelligently detects ROM file type and selects the suitable emulator core. - **Large File Support**: Supports ROM file extraction up to 256MB. ### User Interface - **Virtual Controller**: Built-in configurable virtual game buttons, supporting multiple platform layouts. - **Touch Controls**: Supports multi-touch and gesture operations. - **Recent Games**: Automatically records recently played games for quick access. - **System UI Hide**: Automatically hides the status bar during gameplay for an immersive experience. ## System Requirements - Android 5.0 (API 21) or higher - Devices supporting ARMv8a (64-bit) architecture - At least 100MB available storage space ## Usage Instructions ### Running Games 1. Click the "Select ROM" button on the interface. 2. Select a game file or archive from the file manager. 3. If it is an archive, the system will list all available ROM files for selection. 4. Selection will automatically launch the corresponding emulator core. ### Virtual Pad Operations - **D-Pad**: Up/Down/Left/Right movement - **A/B Keys**: Main action buttons - **X/Y Keys**: Auxiliary function buttons - **L/R Keys**: Shoulder buttons (applicable for SNES/GBA) - **Start/Select**: Start/Select keys - **Menu Key**: Opens in-game menu (Save State, Settings, etc.) ### Save States 1. Press the Menu key in-game to bring up the function menu. 2. Select the "Save State" option. 3. The state file will automatically save to the application data directory. ## Project Architecture ``` smart-tools/emulator/ ├── app/src/main/ │ ├── cpp/ # JNI Native Code │ │ └── libretro_jni.cpp # Libretro Core Interface │ ├── kotlin/ │ │ └── smart/tools/emulator/ │ │ ├── MainActivity.kt # Main Interface Activity │ │ ├── GameActivity.kt # Game Interface Activity │ │ ├── core/ │ │ │ ├── CoreSpec.kt # Emulator Core Specification Definition │ │ │ ├── EmulatorSession.kt # Emulator Session Management │ │ │ ├── Libretro.kt # JNI Interface Wrapper │ │ │ ├── RomArchive.kt # Archive Parsing │ │ │ ├── RomHistory.kt # Game History Record │ │ │ └── SystemFiles.kt # System File Management │ │ └── widget/ │ │ ├── EmulatorView.kt # Game Screen Rendering │ │ └── VirtualPadView.kt # Virtual Pad Control │ └── res/ # Resource Files ├── third_party/ │ ├── fceumm/ # FCEUmm Emulator Core Source │ └── ... # Other Third-party Libraries ``` ### Core Module Description | Module | Function Description | |------|----------| | `EmulatorSession` | Manages emulator core runtime loop, handles audio/video synchronization | | `Libretro` | Calls native Libretro cores via JNI | | `RomArchive` | Parses various compressed formats, extracts ROM files | | `VirtualPadView` | Custom view, implements virtual game buttons | | `EmulatorView` | SurfaceView implementation, high-performance video rendering | ## Build Guide ### Environment Requirements - Android Studio Hedgehog or higher - Gradle 8.0+ - Android NDK (for compiling native code) ### Compilation Steps 1. Clone the project repository 2. Open the project using Android Studio 3. Wait for Gradle sync to complete 4. Select Build > Make Project ### Third-party Cores The project integrates the following open-source emulator cores: - [FCEUmm](https://github.com/TEmem/fceUmm) - NES Emulator - [mGBA](https://github.com/mgba-emu/mgba) - GB/GBA Emulator - [Snes9x](https://github.com/snes9xgit/snes9x) - SNES Emulator ## License This project follows the Apache License 2.0 agreement. ## Contributors Thanks to the following open-source projects for providing support to this project: - [Libretro](https://www.libretro.com/) - Emulator Framework - Developers of various third-party emulator cores ## Feedback & Support For questions or suggestions, please submit feedback via the Gitee Issues page.