├── .gitignore ├── .metadata ├── .vscode └── launch.json ├── LICENSE ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── io │ │ │ │ └── flutter │ │ │ │ └── app │ │ │ │ └── FlutterMultiDexApplication.java │ │ ├── kotlin │ │ │ └── dev │ │ │ │ └── solonenko │ │ │ │ └── titanius │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable-xhdpi │ │ │ └── banner.png │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ └── ic_launcher.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ └── ic_launcher_adaptive_fore.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ └── ic_launcher_adaptive_fore.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ └── ic_launcher_adaptive_fore.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ └── ic_launcher_adaptive_fore.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_adaptive_back.png │ │ │ └── ic_launcher_adaptive_fore.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── images │ ├── color │ │ ├── 3DO Interactive Multiplayer.png │ │ ├── Amstrad CPC.png │ │ ├── Amstrad GX4000.png │ │ ├── Android.png │ │ ├── Arcade Classics.png │ │ ├── Atari 2600.png │ │ ├── Atari 5200.png │ │ ├── Atari 7800.png │ │ ├── Atari Jaguar.png │ │ ├── Atari Lynx.png │ │ ├── Atari ST.png │ │ ├── Capcom Play System II.png │ │ ├── Capcom Play System III.png │ │ ├── Capcom Play System.png │ │ ├── ColecoVision.png │ │ ├── Commodore 64.png │ │ ├── Commodore Amiga CD32.png │ │ ├── Commodore Amiga.png │ │ ├── Fairchild Channel F.png │ │ ├── Final Burn Neo.png │ │ ├── GCE Vectrex.png │ │ ├── MAME.png │ │ ├── MS-DOS.png │ │ ├── Mattel Intellivision.png │ │ ├── Microsoft MSX.png │ │ ├── NEC PC Engine SuperGrafx.png │ │ ├── NEC PC-8801.png │ │ ├── NEC PC-9801.png │ │ ├── NEC PC-FX.png │ │ ├── NEC TurboGrafx-16.png │ │ ├── NEC TurboGrafx-CD.png │ │ ├── Nintendo 3DS.png │ │ ├── Nintendo 64.png │ │ ├── Nintendo DS.png │ │ ├── Nintendo Entertainment System.png │ │ ├── Nintendo Famicom Disk System.png │ │ ├── Nintendo Game & Watch.png │ │ ├── Nintendo Game Boy Advance.png │ │ ├── Nintendo Game Boy Color.png │ │ ├── Nintendo Game Boy.png │ │ ├── Nintendo GameCube.png │ │ ├── Nintendo Pokemon Mini.png │ │ ├── Nintendo Switch.png │ │ ├── Nintendo Virtual Boy.png │ │ ├── Nintendo Wii U.png │ │ ├── Nintendo Wii.png │ │ ├── Nintendo WiiWare.png │ │ ├── Philips CD-i.png │ │ ├── Pico-8.png │ │ ├── SNK Neo Geo CD.png │ │ ├── SNK Neo Geo Pocket Color.png │ │ ├── SNK Neo Geo Pocket.png │ │ ├── SNK Neo Geo.png │ │ ├── Sammy Atomiswave.png │ │ ├── ScummVM.png │ │ ├── Sega 32X.png │ │ ├── Sega CD.png │ │ ├── Sega Dreamcast.png │ │ ├── Sega Game Gear.png │ │ ├── Sega Genesis.png │ │ ├── Sega Master System.png │ │ ├── Sega Mega Drive.png │ │ ├── Sega Mega-CD.png │ │ ├── Sega Naomi.png │ │ ├── Sega SG-1000.png │ │ ├── Sega Saturn.png │ │ ├── Sharp X68000.png │ │ ├── Sinclair ZX Spectrum.png │ │ ├── Sinclair ZX81.png │ │ ├── Sony PS Vita.png │ │ ├── Sony PSP Minis.png │ │ ├── Sony PSP.png │ │ ├── Sony Playstation 2.png │ │ ├── Sony Playstation.png │ │ ├── Super Nintendo Entertainment System.png │ │ ├── TIC-80.png │ │ ├── Watara Supervision.png │ │ ├── WonderSwan.png │ │ └── Wonderswan Color.png │ └── white │ │ ├── 3DO Interactive Multiplayer.png │ │ ├── Amstrad CPC.png │ │ ├── Amstrad GX4000.png │ │ ├── Android.png │ │ ├── Arcade Classics.png │ │ ├── Atari 2600.png │ │ ├── Atari 5200.png │ │ ├── Atari 7800.png │ │ ├── Atari Jaguar.png │ │ ├── Atari Lynx.png │ │ ├── Atari ST.png │ │ ├── Capcom Play System II.png │ │ ├── Capcom Play System III.png │ │ ├── Capcom Play System.png │ │ ├── ColecoVision.png │ │ ├── Commodore 64.png │ │ ├── Commodore Amiga CD32.png │ │ ├── Commodore Amiga.png │ │ ├── Fairchild Channel F.png │ │ ├── Final Burn Neo.png │ │ ├── GCE Vectrex.png │ │ ├── MAME.png │ │ ├── MS-DOS.png │ │ ├── Mattel Intellivision.png │ │ ├── Microsoft MSX.png │ │ ├── NEC PC Engine SuperGrafx.png │ │ ├── NEC PC-8801.png │ │ ├── NEC PC-9801.png │ │ ├── NEC PC-FX.png │ │ ├── NEC TurboGrafx-16.png │ │ ├── NEC TurboGrafx-CD.png │ │ ├── Nintendo 3DS.png │ │ ├── Nintendo 64.png │ │ ├── Nintendo DS.png │ │ ├── Nintendo Entertainment System.png │ │ ├── Nintendo Famicom Disk System.png │ │ ├── Nintendo Game & Watch.png │ │ ├── Nintendo Game Boy Advance.png │ │ ├── Nintendo Game Boy Color.png │ │ ├── Nintendo Game Boy.png │ │ ├── Nintendo GameCube.png │ │ ├── Nintendo Pokemon Mini.png │ │ ├── Nintendo Switch.png │ │ ├── Nintendo Virtual Boy.png │ │ ├── Nintendo Wii U.png │ │ ├── Nintendo Wii.png │ │ ├── Nintendo WiiWare.png │ │ ├── Philips CD-i.png │ │ ├── Pico-8.png │ │ ├── SNK Neo Geo CD.png │ │ ├── SNK Neo Geo Pocket Color.png │ │ ├── SNK Neo Geo Pocket.png │ │ ├── SNK Neo Geo.png │ │ ├── Sammy Atomiswave.png │ │ ├── ScummVM.png │ │ ├── Sega 32X.png │ │ ├── Sega CD.png │ │ ├── Sega Dreamcast.png │ │ ├── Sega Game Gear.png │ │ ├── Sega Genesis.png │ │ ├── Sega Master System.png │ │ ├── Sega Mega Drive.png │ │ ├── Sega Mega-CD.png │ │ ├── Sega Naomi.png │ │ ├── Sega SG-1000.png │ │ ├── Sega Saturn.png │ │ ├── Sharp X68000.png │ │ ├── Sinclair ZX Spectrum.png │ │ ├── Sinclair ZX81.png │ │ ├── Sony PS Vita.png │ │ ├── Sony PSP Minis.png │ │ ├── Sony PSP.png │ │ ├── Sony Playstation 2.png │ │ ├── Sony Playstation.png │ │ ├── Super Nintendo Entertainment System.png │ │ ├── TIC-80.png │ │ ├── Watara Supervision.png │ │ ├── WonderSwan.png │ │ └── Wonderswan Color.png ├── metadata.json ├── screenscraper_systems.json └── screenshots │ ├── 01.png │ ├── 02.png │ ├── 03.png │ ├── 04.png │ ├── 05.png │ ├── 06.png │ └── 07.png ├── codemagic.yaml ├── fonts ├── Koulen-Regular.ttf ├── PromptFont.otf └── Staatliches-Regular.ttf ├── go.mod ├── go.sum ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── data │ ├── android_apps.dart │ ├── android_intent.dart │ ├── android_saf.dart │ ├── daijisho.dart │ ├── emulators.dart │ ├── env.dart │ ├── files.dart │ ├── gamelist_xml.dart │ ├── games.dart │ ├── models.dart │ ├── repo.dart │ ├── scraper.dart │ ├── stack.dart │ ├── state.dart │ ├── storage.dart │ └── systems.dart ├── gamepad.dart ├── main.dart ├── pages │ ├── android.dart │ ├── filter.dart │ ├── filters │ │ └── genres.dart │ ├── game_settings.dart │ ├── games.dart │ ├── scraper.dart │ ├── settings.dart │ ├── settings │ │ ├── apps.dart │ │ ├── cemulators.dart │ │ ├── daijisho.dart │ │ ├── emulators.dart │ │ ├── roms.dart │ │ ├── scraper_systems.dart │ │ ├── systems.dart │ │ └── ui.dart │ ├── system_proxy.dart │ └── systems.dart └── widgets │ ├── appbar.dart │ ├── battery.dart │ ├── fade_image_to_video.dart │ ├── gamepad_prompt.dart │ ├── icons.dart │ ├── info_tile.dart │ ├── prompt_bar.dart │ ├── scraper_progress.dart │ ├── selector.dart │ ├── time.dart │ └── wifi.dart ├── linux ├── .gitignore ├── CMakeLists.txt ├── flutter │ ├── CMakeLists.txt │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ └── generated_plugins.cmake ├── main.cc ├── my_application.cc └── my_application.h ├── macos ├── .gitignore ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── app_icon_1024.png │ │ ├── app_icon_128.png │ │ ├── app_icon_16.png │ │ ├── app_icon_256.png │ │ ├── app_icon_32.png │ │ ├── app_icon_512.png │ │ └── app_icon_64.png │ ├── Base.lproj │ └── MainMenu.xib │ ├── Configs │ ├── AppInfo.xcconfig │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── Warnings.xcconfig │ ├── DebugProfile.entitlements │ ├── Info.plist │ ├── MainFlutterWindow.swift │ └── Release.entitlements ├── pubspec.lock ├── pubspec.yaml ├── scripts └── daijisho │ └── main.go ├── test ├── assets_test.dart └── intent_test.dart ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png ├── index.html └── manifest.json └── windows ├── .gitignore ├── CMakeLists.txt ├── flutter ├── CMakeLists.txt ├── generated_plugin_registrant.cc ├── generated_plugin_registrant.h └── generated_plugins.cmake └── runner ├── CMakeLists.txt ├── Runner.rc ├── flutter_window.cpp ├── flutter_window.h ├── main.cpp ├── resource.h ├── resources └── app_icon.ico ├── runner.exe.manifest ├── utils.cpp ├── utils.h ├── win32_window.cpp └── win32_window.h /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | **/*.g.dart 35 | **/.env* 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | *.keystore -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled. 5 | 6 | version: 7 | revision: 135454af32477f815a7525073027a3ff9eff1bfd 8 | channel: stable 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd 17 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd 18 | - platform: android 19 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd 20 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd 21 | - platform: ios 22 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd 23 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd 24 | - platform: linux 25 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd 26 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd 27 | - platform: macos 28 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd 29 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd 30 | - platform: web 31 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd 32 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd 33 | - platform: windows 34 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd 35 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Launch file", 9 | "type": "go", 10 | "request": "launch", 11 | "mode": "debug", 12 | "program": "${file}" 13 | }, 14 | { 15 | "name": "titanius", 16 | "request": "launch", 17 | "type": "dart" 18 | }, 19 | { 20 | "name": "titanius (profile mode)", 21 | "request": "launch", 22 | "type": "dart", 23 | "flutterMode": "profile" 24 | }, 25 | { 26 | "name": "titanius (release mode)", 27 | "request": "launch", 28 | "type": "dart", 29 | "flutterMode": "release" 30 | } 31 | ] 32 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Denis Solonenko 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 34 30 | ndkVersion flutter.ndkVersion 31 | 32 | compileOptions { 33 | sourceCompatibility JavaVersion.VERSION_1_8 34 | targetCompatibility JavaVersion.VERSION_1_8 35 | } 36 | 37 | kotlinOptions { 38 | jvmTarget = '1.8' 39 | } 40 | 41 | sourceSets { 42 | main.java.srcDirs += 'src/main/kotlin' 43 | } 44 | 45 | defaultConfig { 46 | applicationId "app.titanius.launcher" 47 | minSdkVersion 26 48 | targetSdkVersion 26 49 | versionCode flutterVersionCode.toInteger() 50 | versionName flutterVersionName 51 | } 52 | 53 | signingConfigs { 54 | release { 55 | if (System.getenv()["CI"]) { // CI=true is exported by Codemagic 56 | storeFile file(System.getenv()["CM_KEYSTORE_PATH"]) 57 | storePassword System.getenv()["CM_KEYSTORE_PASSWORD"] 58 | keyAlias System.getenv()["CM_KEY_ALIAS"] 59 | keyPassword System.getenv()["CM_KEY_PASSWORD"] 60 | } 61 | } 62 | } 63 | 64 | buildTypes { 65 | release { 66 | signingConfig signingConfigs.release 67 | } 68 | } 69 | } 70 | 71 | flutter { 72 | source '../..' 73 | } 74 | 75 | dependencies { 76 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 77 | implementation 'androidx.documentfile:documentfile:1.0.1' 78 | } 79 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 20 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 38 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java: -------------------------------------------------------------------------------- 1 | // Generated file. 2 | // 3 | // If you wish to remove Flutter's multidex support, delete this entire file. 4 | // 5 | // Modifications to this file should be done in a copy under a different name 6 | // as this file may be regenerated. 7 | 8 | package io.flutter.app; 9 | 10 | import android.app.Application; 11 | import android.content.Context; 12 | import androidx.annotation.CallSuper; 13 | import androidx.multidex.MultiDex; 14 | 15 | /** 16 | * Extension of {@link android.app.Application}, adding multidex support. 17 | */ 18 | public class FlutterMultiDexApplication extends Application { 19 | @Override 20 | @CallSuper 21 | protected void attachBaseContext(Context base) { 22 | super.attachBaseContext(base); 23 | MultiDex.install(this); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/dev/solonenko/titanius/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package app.titanius.launcher 2 | 3 | import android.content.ContentUris 4 | import android.content.ContentResolver 5 | import android.content.Intent 6 | import android.net.Uri 7 | import android.os.Build 8 | import android.provider.MediaStore 9 | import androidx.annotation.RequiresApi 10 | import io.flutter.embedding.android.FlutterActivity 11 | import io.flutter.embedding.engine.FlutterEngine 12 | import io.flutter.plugin.common.MethodCall 13 | import io.flutter.plugin.common.MethodChannel 14 | 15 | class MainActivity : FlutterActivity() { 16 | private val CHANNEL = "file_utils" 17 | 18 | override fun configureFlutterEngine(flutterEngine: FlutterEngine) { 19 | super.configureFlutterEngine(flutterEngine) 20 | MethodChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL).setMethodCallHandler { call, result -> 21 | if (call.method == "getContentUri") { 22 | val path = call.argument("path") 23 | if (path != null) { 24 | val contentUri = getContentUriFromFilePath(path) 25 | if (contentUri != null) { 26 | result.success(contentUri) 27 | } else { 28 | result.error("INVALID_URI", "Invalid URI", null) 29 | } 30 | } else { 31 | result.error("INVALID_ARGUMENTS", "Invalid arguments", null) 32 | } 33 | } else { 34 | result.notImplemented() 35 | } 36 | } 37 | } 38 | 39 | private fun getContentUriFromFilePath(filePath: String): String? { 40 | val contentResolver = applicationContext.contentResolver 41 | val cursor = contentResolver.query( 42 | MediaStore.Files.getContentUri("external"), 43 | arrayOf(MediaStore.Files.FileColumns._ID), 44 | MediaStore.Files.FileColumns.DATA + "=?", 45 | arrayOf(filePath), 46 | null 47 | ) 48 | 49 | var contentUri: String? = null 50 | if (cursor != null && cursor.moveToFirst()) { 51 | val id = cursor.getLong(cursor.getColumnIndex(MediaStore.Files.FileColumns._ID)) 52 | contentUri = ContentUris.withAppendedId(MediaStore.Files.getContentUri("external"), id).toString() 53 | cursor.close() 54 | } 55 | 56 | return contentUri 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/drawable-xhdpi/banner.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 16 | 20 | 21 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 16 | 20 | 21 | 30 | 31 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.8.20' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | tasks.register("clean", Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/images/color/3DO Interactive Multiplayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/3DO Interactive Multiplayer.png -------------------------------------------------------------------------------- /assets/images/color/Amstrad CPC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Amstrad CPC.png -------------------------------------------------------------------------------- /assets/images/color/Amstrad GX4000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Amstrad GX4000.png -------------------------------------------------------------------------------- /assets/images/color/Android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Android.png -------------------------------------------------------------------------------- /assets/images/color/Arcade Classics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Arcade Classics.png -------------------------------------------------------------------------------- /assets/images/color/Atari 2600.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Atari 2600.png -------------------------------------------------------------------------------- /assets/images/color/Atari 5200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Atari 5200.png -------------------------------------------------------------------------------- /assets/images/color/Atari 7800.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Atari 7800.png -------------------------------------------------------------------------------- /assets/images/color/Atari Jaguar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Atari Jaguar.png -------------------------------------------------------------------------------- /assets/images/color/Atari Lynx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Atari Lynx.png -------------------------------------------------------------------------------- /assets/images/color/Atari ST.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Atari ST.png -------------------------------------------------------------------------------- /assets/images/color/Capcom Play System II.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Capcom Play System II.png -------------------------------------------------------------------------------- /assets/images/color/Capcom Play System III.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Capcom Play System III.png -------------------------------------------------------------------------------- /assets/images/color/Capcom Play System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Capcom Play System.png -------------------------------------------------------------------------------- /assets/images/color/ColecoVision.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/ColecoVision.png -------------------------------------------------------------------------------- /assets/images/color/Commodore 64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Commodore 64.png -------------------------------------------------------------------------------- /assets/images/color/Commodore Amiga CD32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Commodore Amiga CD32.png -------------------------------------------------------------------------------- /assets/images/color/Commodore Amiga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Commodore Amiga.png -------------------------------------------------------------------------------- /assets/images/color/Fairchild Channel F.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Fairchild Channel F.png -------------------------------------------------------------------------------- /assets/images/color/Final Burn Neo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Final Burn Neo.png -------------------------------------------------------------------------------- /assets/images/color/GCE Vectrex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/GCE Vectrex.png -------------------------------------------------------------------------------- /assets/images/color/MAME.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/MAME.png -------------------------------------------------------------------------------- /assets/images/color/MS-DOS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/MS-DOS.png -------------------------------------------------------------------------------- /assets/images/color/Mattel Intellivision.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Mattel Intellivision.png -------------------------------------------------------------------------------- /assets/images/color/Microsoft MSX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Microsoft MSX.png -------------------------------------------------------------------------------- /assets/images/color/NEC PC Engine SuperGrafx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/NEC PC Engine SuperGrafx.png -------------------------------------------------------------------------------- /assets/images/color/NEC PC-8801.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/NEC PC-8801.png -------------------------------------------------------------------------------- /assets/images/color/NEC PC-9801.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/NEC PC-9801.png -------------------------------------------------------------------------------- /assets/images/color/NEC PC-FX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/NEC PC-FX.png -------------------------------------------------------------------------------- /assets/images/color/NEC TurboGrafx-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/NEC TurboGrafx-16.png -------------------------------------------------------------------------------- /assets/images/color/NEC TurboGrafx-CD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/NEC TurboGrafx-CD.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo 3DS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo 3DS.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo 64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo 64.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo DS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo DS.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Entertainment System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Entertainment System.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Famicom Disk System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Famicom Disk System.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Game & Watch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Game & Watch.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Game Boy Advance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Game Boy Advance.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Game Boy Color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Game Boy Color.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Game Boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Game Boy.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo GameCube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo GameCube.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Pokemon Mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Pokemon Mini.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Switch.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Virtual Boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Virtual Boy.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Wii U.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Wii U.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo Wii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo Wii.png -------------------------------------------------------------------------------- /assets/images/color/Nintendo WiiWare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Nintendo WiiWare.png -------------------------------------------------------------------------------- /assets/images/color/Philips CD-i.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Philips CD-i.png -------------------------------------------------------------------------------- /assets/images/color/Pico-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Pico-8.png -------------------------------------------------------------------------------- /assets/images/color/SNK Neo Geo CD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/SNK Neo Geo CD.png -------------------------------------------------------------------------------- /assets/images/color/SNK Neo Geo Pocket Color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/SNK Neo Geo Pocket Color.png -------------------------------------------------------------------------------- /assets/images/color/SNK Neo Geo Pocket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/SNK Neo Geo Pocket.png -------------------------------------------------------------------------------- /assets/images/color/SNK Neo Geo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/SNK Neo Geo.png -------------------------------------------------------------------------------- /assets/images/color/Sammy Atomiswave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sammy Atomiswave.png -------------------------------------------------------------------------------- /assets/images/color/ScummVM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/ScummVM.png -------------------------------------------------------------------------------- /assets/images/color/Sega 32X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega 32X.png -------------------------------------------------------------------------------- /assets/images/color/Sega CD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega CD.png -------------------------------------------------------------------------------- /assets/images/color/Sega Dreamcast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega Dreamcast.png -------------------------------------------------------------------------------- /assets/images/color/Sega Game Gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega Game Gear.png -------------------------------------------------------------------------------- /assets/images/color/Sega Genesis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega Genesis.png -------------------------------------------------------------------------------- /assets/images/color/Sega Master System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega Master System.png -------------------------------------------------------------------------------- /assets/images/color/Sega Mega Drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega Mega Drive.png -------------------------------------------------------------------------------- /assets/images/color/Sega Mega-CD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega Mega-CD.png -------------------------------------------------------------------------------- /assets/images/color/Sega Naomi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega Naomi.png -------------------------------------------------------------------------------- /assets/images/color/Sega SG-1000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega SG-1000.png -------------------------------------------------------------------------------- /assets/images/color/Sega Saturn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sega Saturn.png -------------------------------------------------------------------------------- /assets/images/color/Sharp X68000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sharp X68000.png -------------------------------------------------------------------------------- /assets/images/color/Sinclair ZX Spectrum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sinclair ZX Spectrum.png -------------------------------------------------------------------------------- /assets/images/color/Sinclair ZX81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sinclair ZX81.png -------------------------------------------------------------------------------- /assets/images/color/Sony PS Vita.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sony PS Vita.png -------------------------------------------------------------------------------- /assets/images/color/Sony PSP Minis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sony PSP Minis.png -------------------------------------------------------------------------------- /assets/images/color/Sony PSP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sony PSP.png -------------------------------------------------------------------------------- /assets/images/color/Sony Playstation 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sony Playstation 2.png -------------------------------------------------------------------------------- /assets/images/color/Sony Playstation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Sony Playstation.png -------------------------------------------------------------------------------- /assets/images/color/Super Nintendo Entertainment System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Super Nintendo Entertainment System.png -------------------------------------------------------------------------------- /assets/images/color/TIC-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/TIC-80.png -------------------------------------------------------------------------------- /assets/images/color/Watara Supervision.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Watara Supervision.png -------------------------------------------------------------------------------- /assets/images/color/WonderSwan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/WonderSwan.png -------------------------------------------------------------------------------- /assets/images/color/Wonderswan Color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/color/Wonderswan Color.png -------------------------------------------------------------------------------- /assets/images/white/3DO Interactive Multiplayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/3DO Interactive Multiplayer.png -------------------------------------------------------------------------------- /assets/images/white/Amstrad CPC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Amstrad CPC.png -------------------------------------------------------------------------------- /assets/images/white/Amstrad GX4000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Amstrad GX4000.png -------------------------------------------------------------------------------- /assets/images/white/Android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Android.png -------------------------------------------------------------------------------- /assets/images/white/Arcade Classics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Arcade Classics.png -------------------------------------------------------------------------------- /assets/images/white/Atari 2600.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Atari 2600.png -------------------------------------------------------------------------------- /assets/images/white/Atari 5200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Atari 5200.png -------------------------------------------------------------------------------- /assets/images/white/Atari 7800.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Atari 7800.png -------------------------------------------------------------------------------- /assets/images/white/Atari Jaguar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Atari Jaguar.png -------------------------------------------------------------------------------- /assets/images/white/Atari Lynx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Atari Lynx.png -------------------------------------------------------------------------------- /assets/images/white/Atari ST.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Atari ST.png -------------------------------------------------------------------------------- /assets/images/white/Capcom Play System II.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Capcom Play System II.png -------------------------------------------------------------------------------- /assets/images/white/Capcom Play System III.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Capcom Play System III.png -------------------------------------------------------------------------------- /assets/images/white/Capcom Play System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Capcom Play System.png -------------------------------------------------------------------------------- /assets/images/white/ColecoVision.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/ColecoVision.png -------------------------------------------------------------------------------- /assets/images/white/Commodore 64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Commodore 64.png -------------------------------------------------------------------------------- /assets/images/white/Commodore Amiga CD32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Commodore Amiga CD32.png -------------------------------------------------------------------------------- /assets/images/white/Commodore Amiga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Commodore Amiga.png -------------------------------------------------------------------------------- /assets/images/white/Fairchild Channel F.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Fairchild Channel F.png -------------------------------------------------------------------------------- /assets/images/white/Final Burn Neo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Final Burn Neo.png -------------------------------------------------------------------------------- /assets/images/white/GCE Vectrex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/GCE Vectrex.png -------------------------------------------------------------------------------- /assets/images/white/MAME.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/MAME.png -------------------------------------------------------------------------------- /assets/images/white/MS-DOS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/MS-DOS.png -------------------------------------------------------------------------------- /assets/images/white/Mattel Intellivision.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Mattel Intellivision.png -------------------------------------------------------------------------------- /assets/images/white/Microsoft MSX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Microsoft MSX.png -------------------------------------------------------------------------------- /assets/images/white/NEC PC Engine SuperGrafx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/NEC PC Engine SuperGrafx.png -------------------------------------------------------------------------------- /assets/images/white/NEC PC-8801.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/NEC PC-8801.png -------------------------------------------------------------------------------- /assets/images/white/NEC PC-9801.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/NEC PC-9801.png -------------------------------------------------------------------------------- /assets/images/white/NEC PC-FX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/NEC PC-FX.png -------------------------------------------------------------------------------- /assets/images/white/NEC TurboGrafx-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/NEC TurboGrafx-16.png -------------------------------------------------------------------------------- /assets/images/white/NEC TurboGrafx-CD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/NEC TurboGrafx-CD.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo 3DS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo 3DS.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo 64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo 64.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo DS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo DS.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Entertainment System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Entertainment System.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Famicom Disk System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Famicom Disk System.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Game & Watch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Game & Watch.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Game Boy Advance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Game Boy Advance.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Game Boy Color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Game Boy Color.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Game Boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Game Boy.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo GameCube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo GameCube.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Pokemon Mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Pokemon Mini.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Switch.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Virtual Boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Virtual Boy.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Wii U.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Wii U.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo Wii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo Wii.png -------------------------------------------------------------------------------- /assets/images/white/Nintendo WiiWare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Nintendo WiiWare.png -------------------------------------------------------------------------------- /assets/images/white/Philips CD-i.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Philips CD-i.png -------------------------------------------------------------------------------- /assets/images/white/Pico-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Pico-8.png -------------------------------------------------------------------------------- /assets/images/white/SNK Neo Geo CD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/SNK Neo Geo CD.png -------------------------------------------------------------------------------- /assets/images/white/SNK Neo Geo Pocket Color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/SNK Neo Geo Pocket Color.png -------------------------------------------------------------------------------- /assets/images/white/SNK Neo Geo Pocket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/SNK Neo Geo Pocket.png -------------------------------------------------------------------------------- /assets/images/white/SNK Neo Geo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/SNK Neo Geo.png -------------------------------------------------------------------------------- /assets/images/white/Sammy Atomiswave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sammy Atomiswave.png -------------------------------------------------------------------------------- /assets/images/white/ScummVM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/ScummVM.png -------------------------------------------------------------------------------- /assets/images/white/Sega 32X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega 32X.png -------------------------------------------------------------------------------- /assets/images/white/Sega CD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega CD.png -------------------------------------------------------------------------------- /assets/images/white/Sega Dreamcast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega Dreamcast.png -------------------------------------------------------------------------------- /assets/images/white/Sega Game Gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega Game Gear.png -------------------------------------------------------------------------------- /assets/images/white/Sega Genesis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega Genesis.png -------------------------------------------------------------------------------- /assets/images/white/Sega Master System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega Master System.png -------------------------------------------------------------------------------- /assets/images/white/Sega Mega Drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega Mega Drive.png -------------------------------------------------------------------------------- /assets/images/white/Sega Mega-CD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega Mega-CD.png -------------------------------------------------------------------------------- /assets/images/white/Sega Naomi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega Naomi.png -------------------------------------------------------------------------------- /assets/images/white/Sega SG-1000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega SG-1000.png -------------------------------------------------------------------------------- /assets/images/white/Sega Saturn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sega Saturn.png -------------------------------------------------------------------------------- /assets/images/white/Sharp X68000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sharp X68000.png -------------------------------------------------------------------------------- /assets/images/white/Sinclair ZX Spectrum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sinclair ZX Spectrum.png -------------------------------------------------------------------------------- /assets/images/white/Sinclair ZX81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sinclair ZX81.png -------------------------------------------------------------------------------- /assets/images/white/Sony PS Vita.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sony PS Vita.png -------------------------------------------------------------------------------- /assets/images/white/Sony PSP Minis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sony PSP Minis.png -------------------------------------------------------------------------------- /assets/images/white/Sony PSP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sony PSP.png -------------------------------------------------------------------------------- /assets/images/white/Sony Playstation 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sony Playstation 2.png -------------------------------------------------------------------------------- /assets/images/white/Sony Playstation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Sony Playstation.png -------------------------------------------------------------------------------- /assets/images/white/Super Nintendo Entertainment System.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Super Nintendo Entertainment System.png -------------------------------------------------------------------------------- /assets/images/white/TIC-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/TIC-80.png -------------------------------------------------------------------------------- /assets/images/white/Watara Supervision.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Watara Supervision.png -------------------------------------------------------------------------------- /assets/images/white/WonderSwan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/WonderSwan.png -------------------------------------------------------------------------------- /assets/images/white/Wonderswan Color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/images/white/Wonderswan Color.png -------------------------------------------------------------------------------- /assets/screenshots/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/screenshots/01.png -------------------------------------------------------------------------------- /assets/screenshots/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/screenshots/02.png -------------------------------------------------------------------------------- /assets/screenshots/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/screenshots/03.png -------------------------------------------------------------------------------- /assets/screenshots/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/screenshots/04.png -------------------------------------------------------------------------------- /assets/screenshots/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/screenshots/05.png -------------------------------------------------------------------------------- /assets/screenshots/06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/screenshots/06.png -------------------------------------------------------------------------------- /assets/screenshots/07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/assets/screenshots/07.png -------------------------------------------------------------------------------- /codemagic.yaml: -------------------------------------------------------------------------------- 1 | workflows: 2 | android-workflow: 3 | name: Android Workflow 4 | max_build_duration: 120 5 | triggering: 6 | events: 7 | - push 8 | branch_patterns: 9 | - pattern: 'main' 10 | include: true 11 | source: true 12 | environment: 13 | android_signing: 14 | - titanius 15 | vars: 16 | PACKAGE_NAME: "app.titanius.launcher" 17 | BUILD_NAME: "0.4.$PROJECT_BUILD_NUMBER" 18 | groups: 19 | - github 20 | - screenscraper 21 | flutter: stable 22 | cache: 23 | cache_paths: 24 | - $FLUTTER_ROOT/.pub-cache 25 | - $HOME/.gradle/caches 26 | scripts: 27 | - name: Set up local.properties 28 | script: | 29 | echo "flutter.sdk=$HOME/programs/flutter" > "$CM_BUILD_DIR/android/local.properties" 30 | - name: Get Flutter packages 31 | script: | 32 | flutter packages pub get 33 | - name: Run build_runner 34 | script: | 35 | flutter packages pub run build_runner build - d 36 | - name: Flutter analyze 37 | script: | 38 | flutter analyze 39 | ignore_failure: true 40 | - name: Flutter unit tests 41 | script: | 42 | flutter test 43 | ignore_failure: true 44 | - name: Build APK with Flutter 45 | script: | 46 | flutter build apk --release --build-name=$BUILD_NAME --build-number=$PROJECT_BUILD_NUMBER 47 | - name: Rename the apk file 48 | script: | 49 | mv build/app/outputs/flutter-apk/app-release.apk \ 50 | build/app/outputs/flutter-apk/titanius-launcher-$BUILD_NAME.apk 51 | - name: Upload APK to GitHub Releases 52 | script: | 53 | gh release create "$BUILD_NAME" --title "Release $BUILD_NAME" --notes "Automated release from CodeMagic" --draft "build/app/outputs/flutter-apk/titanius-launcher-$BUILD_NAME.apk" 54 | artifacts: 55 | - build/app/outputs/flutter-apk/titanius-launcher-$BUILD_NAME.apk 56 | - build/**/outputs/**/mapping.txt 57 | - flutter_drive.log 58 | publishing: 59 | email: 60 | recipients: 61 | - launcher@titanius.app 62 | notify: 63 | success: false 64 | failure: true -------------------------------------------------------------------------------- /fonts/Koulen-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/fonts/Koulen-Regular.ttf -------------------------------------------------------------------------------- /fonts/PromptFont.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/fonts/PromptFont.otf -------------------------------------------------------------------------------- /fonts/Staatliches-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/fonts/Staatliches-Regular.ttf -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module app.titanius/launcher 2 | 3 | go 1.20 4 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/go.sum -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '11.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Titanius 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | titanius 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/data/android_apps.dart: -------------------------------------------------------------------------------- 1 | import 'package:collection/collection.dart'; 2 | import 'package:device_apps/device_apps.dart'; 3 | import 'package:package_info_plus/package_info_plus.dart'; 4 | import 'package:riverpod_annotation/riverpod_annotation.dart'; 5 | import 'package:titanius/data/repo.dart'; 6 | 7 | part 'android_apps.g.dart'; 8 | 9 | @Riverpod(keepAlive: true) 10 | Future> installedApps(InstalledAppsRef ref) async { 11 | final apps = await DeviceApps.getInstalledApplications( 12 | includeAppIcons: true, 13 | includeSystemApps: true, 14 | onlyAppsWithLaunchIntent: true, 15 | ); 16 | return apps.map((e) => e as ApplicationWithIcon).sortedBy((element) => element.appName); 17 | } 18 | 19 | @Riverpod(keepAlive: true) 20 | Future> selectedAndroidApps(SelectedAndroidAppsRef ref) async { 21 | final installedApps = await ref.watch(installedAppsProvider.future); 22 | final selectedApps = await ref.watch(androidAppsProvider.future); 23 | return installedApps.where((element) => selectedApps.isSelected(element.packageName)).toList(); 24 | } 25 | 26 | @Riverpod(keepAlive: true) 27 | Future packageInfo(PackageInfoRef ref) async { 28 | return PackageInfo.fromPlatform(); 29 | } 30 | -------------------------------------------------------------------------------- /lib/data/emulators.dart: -------------------------------------------------------------------------------- 1 | import 'package:collection/collection.dart'; 2 | import 'package:riverpod_annotation/riverpod_annotation.dart'; 3 | import 'package:titanius/data/games.dart'; 4 | 5 | import 'package:titanius/data/repo.dart'; 6 | import 'package:titanius/data/models.dart'; 7 | 8 | part 'emulators.g.dart'; 9 | 10 | class EmulatorList { 11 | final System system; 12 | final List emulators; 13 | final Emulator? defaultEmulator; 14 | 15 | EmulatorList(this.system, this.emulators, this.defaultEmulator); 16 | } 17 | 18 | @Riverpod(keepAlive: true) 19 | Future> alternativeEmulators(AlternativeEmulatorsRef ref) async { 20 | final perSystemConfigurations = await ref.watch(perSystemConfigurationsProvider.future); 21 | final systems = await ref.watch(loadedSystemsProvider.future); 22 | final customEmulators = await ref.watch(customEmulatorsProvider.future); 23 | final emulators = customEmulators.map((e) => e.toEmulator()).toList(); 24 | return systems 25 | .whereNot((element) => element.isCollection) 26 | .whereNot((element) => element.id == "android") 27 | .map((v) => EmulatorList( 28 | v, 29 | [...v.builtInEmulators, ...emulators], 30 | defaultEmulator([...v.builtInEmulators, ...emulators], 31 | perSystemConfigurations.firstWhereOrNull((e) => e.system == v.id)), 32 | )) 33 | .toList(); 34 | } 35 | 36 | Emulator? defaultEmulator(List emulators, AlternativeEmulator? alternativeEmulator) { 37 | if (alternativeEmulator != null) { 38 | final alternative = emulators.firstWhereOrNull((e) => e.id == alternativeEmulator.emulator); 39 | if (alternative != null) { 40 | return alternative; 41 | } 42 | } 43 | return emulators.isEmpty ? null : emulators.first; 44 | } 45 | -------------------------------------------------------------------------------- /lib/data/env.dart: -------------------------------------------------------------------------------- 1 | import 'package:envied/envied.dart'; 2 | 3 | part 'env.g.dart'; 4 | 5 | @Envied() 6 | abstract class Env { 7 | @EnviedField(varName: 'SSDEVID', obfuscate: true) 8 | static final String devId = _Env.devId; 9 | @EnviedField(varName: 'SSDEVPWD', obfuscate: true) 10 | static final String devPassword = _Env.devPassword; 11 | @EnviedField(varName: 'SSAPPNAME', obfuscate: true) 12 | static final String appName = _Env.appName; 13 | } 14 | -------------------------------------------------------------------------------- /lib/data/files.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:titanius/data/models.dart'; 4 | 5 | Future moveFile(File sourceFile, String newPath) async { 6 | try { 7 | return await sourceFile.rename(newPath); 8 | } on FileSystemException catch (_) { 9 | final newFile = await sourceFile.copy(newPath); 10 | await sourceFile.delete(); 11 | return newFile; 12 | } 13 | } 14 | 15 | Future> listGamesFromFiles({ 16 | required String romsFolder, 17 | required String folder, 18 | required System system, 19 | }) async { 20 | final romsPath = "$romsFolder/$folder"; 21 | final pathExists = await Directory(romsPath).exists(); 22 | if (!pathExists) { 23 | return []; 24 | } 25 | final dir = Directory(romsPath); 26 | final allFiles = dir.listSync(recursive: true, followLinks: false); 27 | allFiles.removeWhere((element) => _nonRom(element)); 28 | final gamesFromFiles = allFiles.map((file) => Game.fromFile(file, system, romsFolder, folder)).toList(); 29 | return gamesFromFiles; 30 | } 31 | 32 | bool _nonRom(FileSystemEntity element) { 33 | if (element is Directory) { 34 | return true; 35 | } 36 | final fileName = element.uri.pathSegments.last; 37 | if (fileName.contains("gamelist") || fileName == "neogeo.zip") { 38 | return true; 39 | } 40 | if (fileName.startsWith(".") || fileName.startsWith("ZZZ")) { 41 | return true; 42 | } 43 | return fileName.endsWith(".mp4") || 44 | fileName.endsWith(".png") || 45 | fileName.endsWith(".jpg") || 46 | fileName.endsWith(".jpeg") || 47 | fileName.endsWith(".gif") || 48 | fileName.endsWith(".txt") || 49 | fileName.endsWith(".sav") || 50 | fileName.endsWith(".p2k") || 51 | fileName.endsWith(".cfg") || 52 | fileName.endsWith(".bak"); 53 | } 54 | -------------------------------------------------------------------------------- /lib/data/stack.dart: -------------------------------------------------------------------------------- 1 | class MyStack { 2 | final List _stack = []; 3 | 4 | void push(T item) { 5 | _stack.add(item); 6 | } 7 | 8 | T pop() { 9 | if (isEmpty) { 10 | throw Exception('Stack is empty'); 11 | } 12 | return _stack.removeLast(); 13 | } 14 | 15 | T peek() { 16 | if (isEmpty) { 17 | throw Exception('Stack is empty'); 18 | } 19 | return _stack.last; 20 | } 21 | 22 | bool get isEmpty => _stack.isEmpty; 23 | } 24 | -------------------------------------------------------------------------------- /lib/data/storage.dart: -------------------------------------------------------------------------------- 1 | import 'package:isar/isar.dart'; 2 | import 'package:path_provider/path_provider.dart'; 3 | import 'package:riverpod_annotation/riverpod_annotation.dart'; 4 | 5 | import 'package:titanius/data/repo.dart'; 6 | 7 | part 'storage.g.dart'; 8 | 9 | @Riverpod(keepAlive: true) 10 | Future isar(IsarRef ref) async { 11 | final dir = await getApplicationSupportDirectory(); 12 | return Isar.open( 13 | [ 14 | SettingSchema, 15 | AlternativeEmulatorSchema, 16 | CustomEmulatorSchema, 17 | GameEmulatorSchema, 18 | RecentGameSchema, 19 | AndroidAppSchema, 20 | ], 21 | directory: dir.path, 22 | ); 23 | } 24 | -------------------------------------------------------------------------------- /lib/data/systems.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'dart:io'; 3 | 4 | import 'package:flutter/services.dart'; 5 | import 'package:riverpod_annotation/riverpod_annotation.dart'; 6 | 7 | import 'package:titanius/data/repo.dart'; 8 | import 'package:titanius/data/models.dart'; 9 | 10 | part 'systems.g.dart'; 11 | 12 | @Riverpod(keepAlive: true) 13 | Future> allSupportedSystems(AllSupportedSystemsRef ref) async { 14 | final content = json.decode( 15 | await rootBundle.loadString('assets/metadata.json'), 16 | ); 17 | final List systems = content['systems'].map((e) => System.fromJson(e)).toList(); 18 | if (!Platform.isAndroid) { 19 | systems.removeWhere((system) => system.id == 'android'); 20 | } 21 | systems.sort((a, b) => a.name.compareTo(b.name)); 22 | return [...collections, ...systems]; 23 | } 24 | 25 | @Riverpod(keepAlive: true) 26 | Future> detectedSystems(DetectedSystemsRef ref) async { 27 | final allSystems = await ref.watch(allSupportedSystemsProvider.future); 28 | final enabledSystems = await ref.watch(enabledSystemsProvider.future); 29 | final detectedSystems = [ 30 | for (final system in allSystems) 31 | if (enabledSystems.showSystem(system.id)) system 32 | ]; 33 | return detectedSystems; 34 | } 35 | -------------------------------------------------------------------------------- /lib/pages/filters/genres.dart: -------------------------------------------------------------------------------- 1 | part of 'package:titanius/pages/filter.dart'; 2 | 3 | class GenresFilterPage extends HookConsumerWidget { 4 | final String system; 5 | const GenresFilterPage({super.key, required this.system}); 6 | 7 | @override 8 | Widget build(BuildContext context, WidgetRef ref) { 9 | final games = ref.watch(gamesInFolderProvider(system)); 10 | final filter = ref.watch(temporaryGameFilterProvider(system)); 11 | 12 | final selected = useState(null); 13 | 14 | useGamepad(ref, (location, key) { 15 | if (location != "/games/$system/filter/genres") return; 16 | if (key == GamepadButton.b) { 17 | GoRouter.of(context).go("/games/$system/filter"); 18 | } 19 | }); 20 | 21 | return Scaffold( 22 | appBar: AppBar( 23 | title: const Text('Genres'), 24 | ), 25 | bottomNavigationBar: const PromptBar( 26 | navigations: [], 27 | actions: [ 28 | GamepadPrompt([GamepadButton.a], "Change"), 29 | GamepadPrompt([GamepadButton.b], "Apply"), 30 | ], 31 | ), 32 | body: games.when( 33 | data: (gamelist) { 34 | final gameGenres = gamelist.games.map((game) => game.genreId).toSet(); 35 | final genres = [...GameGenre.values]; 36 | genres.retainWhere((element) => gameGenres.contains(element)); 37 | return GroupedListView( 38 | key: PageStorageKey("filter/$system/genres"), 39 | elements: genres, 40 | groupBy: (genre) => GameGenre.getTopGenre(genre).longName, 41 | groupSeparatorBuilder: (String value) => Padding( 42 | padding: const EdgeInsets.all(8.0), 43 | child: Text( 44 | value, 45 | style: const TextStyle(color: Colors.grey), 46 | ), 47 | ), 48 | indexedItemBuilder: (context, genre, index) { 49 | final isSelected = filter.genres.contains(genre); 50 | return ListTile( 51 | autofocus: selected.value == genre || (selected.value == null && index == 0), 52 | onFocusChange: (value) { 53 | if (value) { 54 | selected.value = genre; 55 | } 56 | }, 57 | onTap: () { 58 | ref.read(temporaryGameFilterProvider(system).notifier).toggleGenre(genre); 59 | }, 60 | title: Text(genre.longName), 61 | trailing: isSelected ? checkBoxOnIcon : checkBoxOffIcon, 62 | ); 63 | }, 64 | ); 65 | }, 66 | loading: () => const Center( 67 | child: CircularProgressIndicator(), 68 | ), 69 | error: (error, stack) => const Center( 70 | child: Text('Error'), 71 | ), 72 | ), 73 | ); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/pages/settings/apps.dart: -------------------------------------------------------------------------------- 1 | part of 'package:titanius/pages/settings.dart'; 2 | 3 | class AppsSettingsPage extends HookConsumerWidget { 4 | const AppsSettingsPage({super.key}); 5 | 6 | @override 7 | Widget build(BuildContext context, WidgetRef ref) { 8 | final installedApps = ref.watch(installedAppsProvider); 9 | final selectedApps = ref.watch(androidAppsProvider); 10 | 11 | final selected = useState(""); 12 | 13 | useGamepad(ref, (location, key) { 14 | if (location != "/select_apps") return; 15 | if (key == GamepadButton.b) { 16 | GoRouter.of(context).go("/games/android"); 17 | } 18 | if (key == GamepadButton.y) { 19 | final _ = ref.refresh(installedAppsProvider); 20 | } 21 | }); 22 | 23 | return Scaffold( 24 | appBar: AppBar( 25 | title: const Text('Selected Apps'), 26 | ), 27 | bottomNavigationBar: const PromptBar( 28 | navigations: [], 29 | actions: [ 30 | GamepadPrompt([GamepadButton.y], "Refresh"), 31 | GamepadPrompt([GamepadButton.a], "Change"), 32 | GamepadPrompt([GamepadButton.b], "Back"), 33 | ], 34 | ), 35 | body: installedApps.when( 36 | data: (installedApps) { 37 | return selectedApps.when( 38 | data: (selectedApps) { 39 | return GroupedListView( 40 | key: const PageStorageKey("settings/apps"), 41 | elements: installedApps, 42 | groupBy: (element) => element.systemApp ? "System" : "Apps", 43 | groupSeparatorBuilder: (String value) => Padding( 44 | padding: const EdgeInsets.all(8.0), 45 | child: Text( 46 | value, 47 | style: const TextStyle(color: Colors.grey), 48 | ), 49 | ), 50 | indexedItemBuilder: (context, app, index) { 51 | final isSelected = selectedApps.isSelected(app.packageName); 52 | return ListTile( 53 | autofocus: selected.value == app.packageName || (selected.value.isEmpty && index == 0), 54 | onFocusChange: (value) { 55 | if (value) { 56 | selected.value = app.packageName; 57 | debugPrint("Focus on ${app.packageName}"); 58 | } 59 | }, 60 | onTap: () { 61 | ref 62 | .read(androidAppsRepoProvider) 63 | .value! 64 | .selectApp(app.packageName, !isSelected) 65 | .then((value) => ref.refresh(androidAppsProvider)); 66 | }, 67 | title: Text(app.appName), 68 | subtitle: Text(app.packageName), 69 | leading: CachedMemoryImage( 70 | uniqueKey: app.packageName, 71 | bytes: app.icon, 72 | fit: BoxFit.contain, 73 | ), 74 | trailing: isSelected ? toggleOnIcon : toggleOffIcon, 75 | ); 76 | }, 77 | ); 78 | }, 79 | loading: () => const Center( 80 | child: CircularProgressIndicator(), 81 | ), 82 | error: (error, stack) => const Center( 83 | child: Text('Error'), 84 | ), 85 | ); 86 | }, 87 | loading: () => const Center( 88 | child: CircularProgressIndicator(), 89 | ), 90 | error: (error, stack) => const Center( 91 | child: Text('Error'), 92 | ), 93 | ), 94 | ); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /lib/pages/settings/daijisho.dart: -------------------------------------------------------------------------------- 1 | part of 'package:titanius/pages/settings.dart'; 2 | 3 | class DaijishoWallpaperPacksPage extends HookConsumerWidget { 4 | const DaijishoWallpaperPacksPage({super.key}); 5 | 6 | @override 7 | Widget build(BuildContext context, WidgetRef ref) { 8 | final packs = ref.watch(daijishoPlatformWallpapersPacksProvider); 9 | 10 | final selected = useState(""); 11 | 12 | useGamepad(ref, (location, key) { 13 | if (location != "/settings/daijisho") return; 14 | if (key == GamepadButton.b) { 15 | GoRouter.of(context).pop(); 16 | } 17 | if (key == GamepadButton.x) { 18 | ref 19 | .read(settingsRepoProvider) 20 | .value! 21 | .resetDaijishoWallpaperPack() 22 | .then((value) => ref.refresh(settingsProvider)); 23 | GoRouter.of(context).go("/"); 24 | } 25 | }); 26 | 27 | return Scaffold( 28 | appBar: AppBar( 29 | title: const Text('Daijishō Wallpaper Packs'), 30 | ), 31 | bottomNavigationBar: const PromptBar( 32 | navigations: [], 33 | actions: [ 34 | GamepadPrompt([GamepadButton.a], "Apply"), 35 | GamepadPrompt([GamepadButton.x], "Do not use wallpapers"), 36 | GamepadPrompt([GamepadButton.b], "Back"), 37 | ], 38 | ), 39 | body: packs.when( 40 | data: (packs) { 41 | return ListView.builder( 42 | key: const PageStorageKey("settings/emulators"), 43 | itemCount: packs.length, 44 | itemBuilder: (context, index) { 45 | final isSelected = selected.value == packs[index].rootPath || (selected.value.isEmpty && index == 0); 46 | final pack = packs[index]; 47 | return ListTile( 48 | autofocus: isSelected, 49 | onFocusChange: (value) { 50 | if (value) { 51 | selected.value = pack.rootPath; 52 | } 53 | }, 54 | onTap: () { 55 | ref 56 | .read(settingsRepoProvider) 57 | .value! 58 | .setDaijishoWallpaperPack(pack.rootPath) 59 | .then((value) => ref.refresh(settingsProvider)); 60 | GoRouter.of(context).go("/"); 61 | }, 62 | isThreeLine: true, 63 | title: Row( 64 | children: [ 65 | Text(pack.name), 66 | const SizedBox(width: 8), 67 | const Text("by", textScaler: TextScaler.linear(0.6), style: TextStyle(color: Colors.grey)), 68 | const SizedBox(width: 4), 69 | Text(pack.authors.join(", "), 70 | textScaler: const TextScaler.linear(0.8), style: const TextStyle(color: Colors.grey)), 71 | ], 72 | ), 73 | subtitle: Text(pack.description, maxLines: 2, overflow: TextOverflow.ellipsis), 74 | leading: CachedNetworkImage( 75 | imageUrl: pack.thumbnailUrl, 76 | width: 48, 77 | height: 48, 78 | fit: BoxFit.contain, 79 | ), 80 | ); 81 | }, 82 | ); 83 | }, 84 | loading: () => const Center( 85 | child: CircularProgressIndicator(), 86 | ), 87 | error: (error, stack) => const Center( 88 | child: Text('Error'), 89 | ), 90 | ), 91 | ); 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /lib/pages/settings/systems.dart: -------------------------------------------------------------------------------- 1 | part of 'package:titanius/pages/settings.dart'; 2 | 3 | class ShowSystemsSettingsPage extends HookConsumerWidget { 4 | const ShowSystemsSettingsPage({super.key}); 5 | 6 | @override 7 | Widget build(BuildContext context, WidgetRef ref) { 8 | final systems = ref.watch(allSupportedSystemsProvider); 9 | final enabledSystems = ref.watch(enabledSystemsProvider); 10 | 11 | final selected = useState(""); 12 | 13 | useGamepad(ref, (location, key) { 14 | if (location != "/settings/systems") return; 15 | if (key == GamepadButton.b) { 16 | GoRouter.of(context).pop(); 17 | } 18 | }); 19 | 20 | return Scaffold( 21 | appBar: AppBar( 22 | title: const Text('Enabled Systems/Collections'), 23 | ), 24 | bottomNavigationBar: const PromptBar( 25 | navigations: [], 26 | actions: [ 27 | GamepadPrompt([GamepadButton.a], "Change"), 28 | GamepadPrompt([GamepadButton.b], "Back"), 29 | ], 30 | ), 31 | body: systems.when( 32 | data: (systems) { 33 | return enabledSystems.when( 34 | data: (enabledSystems) { 35 | return GroupedListView( 36 | key: const PageStorageKey("settings/systems"), 37 | elements: systems, 38 | groupBy: (element) => element.isCollection ? "Collections" : "Systems", 39 | groupSeparatorBuilder: (String value) => Padding( 40 | padding: const EdgeInsets.all(8.0), 41 | child: Text( 42 | value, 43 | style: const TextStyle(color: Colors.grey), 44 | ), 45 | ), 46 | indexedItemBuilder: (context, system, index) { 47 | final showSystem = enabledSystems.showSystem(system.id); 48 | return ListTile( 49 | autofocus: selected.value == system.id || (selected.value.isEmpty && index == 0), 50 | onFocusChange: (value) { 51 | if (value) { 52 | selected.value = system.id; 53 | } 54 | }, 55 | onTap: () { 56 | ref 57 | .read(enabledSystemsRepoProvider) 58 | .value! 59 | .setShowSystem(system.id, showSystem ? false : true) 60 | .then((value) { 61 | ref.read(selectedSystemProvider.notifier).set(0); 62 | final _ = ref.refresh(enabledSystemsProvider); 63 | }); 64 | }, 65 | title: Text(system.name), 66 | trailing: showSystem ? toggleOnIcon : toggleOffIcon, 67 | ); 68 | }, 69 | ); 70 | }, 71 | loading: () => const Center( 72 | child: CircularProgressIndicator(), 73 | ), 74 | error: (error, stack) => const Center( 75 | child: Text('Error'), 76 | ), 77 | ); 78 | }, 79 | loading: () => const Center( 80 | child: CircularProgressIndicator(), 81 | ), 82 | error: (error, stack) => const Center( 83 | child: Text('Error'), 84 | ), 85 | ), 86 | ); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /lib/pages/settings/ui.dart: -------------------------------------------------------------------------------- 1 | part of 'package:titanius/pages/settings.dart'; 2 | 3 | class UISettingsPage extends HookConsumerWidget { 4 | const UISettingsPage({super.key}); 5 | 6 | @override 7 | Widget build(BuildContext context, WidgetRef ref) { 8 | final settings = ref.watch(settingsProvider); 9 | 10 | final selectedSetting = useState('Show Favouries On Top'); 11 | 12 | useGamepad(ref, (location, key) { 13 | if (location != "/settings/ui") return; 14 | if (key == GamepadButton.b) { 15 | GoRouter.of(context).pop(); 16 | } 17 | }); 18 | 19 | return Scaffold( 20 | appBar: AppBar( 21 | title: const Text('UI Settings'), 22 | ), 23 | bottomNavigationBar: const PromptBar( 24 | navigations: [], 25 | actions: [ 26 | GamepadPrompt([GamepadButton.a], "Change"), 27 | GamepadPrompt([GamepadButton.b], "Back"), 28 | ], 29 | ), 30 | body: settings.when( 31 | data: (settings) { 32 | return ListView( 33 | key: const PageStorageKey('settings/ui'), 34 | children: [ 35 | _setting(ref, selectedSetting, 'Show Favouries On Top', settings.favouritesOnTop, true, 36 | (p0, p1) => p0.setFavoutesOnTop(p1)), 37 | _setting(ref, selectedSetting, 'Show Only Unique Games In Collections', settings.uniqueGamesInCollections, 38 | true, (p0, p1) => p0.setUniqueGamesInCollections(p1)), 39 | _setting(ref, selectedSetting, 'Show Hidden Games', settings.showHiddenGames, true, 40 | (p0, p1) => p0.setShowHiddenGames(p1)), 41 | _setting(ref, selectedSetting, 'Only Show Roms From gamelist.xml Files', settings.showOnlyGamelistRoms, 42 | true, (p0, p1) => p0.setShowOnlyGamelistRoms(p1), 43 | subtitle: 'Please refresh gamelists'), 44 | _setting(ref, selectedSetting, 'Show Game Videos', settings.showGameVideos, true, 45 | (p0, p1) => p0.setShowGameVideos(p1)), 46 | _setting(ref, selectedSetting, 'Fade Screenshot To Video', settings.fadeToVideo, settings.showGameVideos, 47 | (p0, p1) => p0.setFadeToVideo(p1)), 48 | _setting(ref, selectedSetting, 'Mute Video', settings.muteVideo, settings.showGameVideos, 49 | (p0, p1) => p0.setMuteVideo(p1)), 50 | ], 51 | ); 52 | }, 53 | loading: () => const Center( 54 | child: CircularProgressIndicator(), 55 | ), 56 | error: (error, stack) => const Center( 57 | child: Text('Error'), 58 | ), 59 | ), 60 | ); 61 | } 62 | 63 | Widget _setting(WidgetRef ref, ValueNotifier selectedSetting, String title, bool value, bool enabled, 64 | Future Function(SettingsRepo, bool) onChanged, 65 | {String? subtitle}) { 66 | return ListTile( 67 | enabled: enabled, 68 | autofocus: title == selectedSetting.value, 69 | onFocusChange: (value) { 70 | if (value) { 71 | selectedSetting.value = title; 72 | } 73 | }, 74 | onTap: () { 75 | final repo = ref.read(settingsRepoProvider).value!; 76 | onChanged(repo, !value).then((value) => ref.refresh(settingsProvider)); 77 | }, 78 | title: Text(title), 79 | subtitle: subtitle != null ? Text(subtitle) : null, 80 | trailing: value ? toggleOnIcon : toggleOffIcon, 81 | ); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /lib/pages/system_proxy.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:go_router/go_router.dart'; 3 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 4 | import 'package:titanius/data/games.dart'; 5 | 6 | import 'package:titanius/pages/android.dart'; 7 | import 'package:titanius/pages/games.dart'; 8 | import 'package:titanius/data/state.dart'; 9 | import 'package:titanius/gamepad.dart'; 10 | 11 | class SystemProxy extends HookConsumerWidget { 12 | final String system; 13 | const SystemProxy({super.key, required this.system}); 14 | @override 15 | Widget build(BuildContext context, WidgetRef ref) { 16 | final allSystems = ref.watch(loadedSystemsProvider); 17 | 18 | useGamepad(ref, (location, key) { 19 | if (location != "/games/$system") return; 20 | if (allSystems.value == null || allSystems.value!.isEmpty) return; 21 | if (key == GamepadButton.r2 || (system != "android" && key == GamepadButton.right)) { 22 | final currentSystem = ref.read(selectedSystemProvider); 23 | final next = (currentSystem + 1) % allSystems.value!.length; 24 | ref.read(selectedSystemProvider.notifier).set(next); 25 | GoRouter.of(context).go("/games/${allSystems.value![next].id}"); 26 | } 27 | if (key == GamepadButton.l2 || (system != "android" && key == GamepadButton.left)) { 28 | final currentSystem = ref.read(selectedSystemProvider); 29 | final prev = currentSystem - 1 < 0 ? allSystems.value!.length - 1 : currentSystem - 1; 30 | ref.read(selectedSystemProvider.notifier).set(prev); 31 | GoRouter.of(context).go("/games/${allSystems.value![prev].id}"); 32 | } 33 | if (key == GamepadButton.start) { 34 | GoRouter.of(context).go("/settings?source=$system"); 35 | } 36 | }); 37 | 38 | if (system == "android") { 39 | return const AndroidPage(); 40 | } else { 41 | return GamesPage( 42 | system: system, 43 | ); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/widgets/appbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:battery_plus/battery_plus.dart'; 3 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 4 | 5 | import 'package:titanius/widgets/battery.dart'; 6 | import 'package:titanius/widgets/scraper_progress.dart'; 7 | import 'package:titanius/widgets/time.dart'; 8 | import 'package:titanius/widgets/wifi.dart'; 9 | 10 | final batteryProvider = StreamProvider((ref) { 11 | final battery = Battery(); 12 | return battery.onBatteryStateChanged.asyncMap((event) async => BatteryInfo(event, await battery.batteryLevel)); 13 | }); 14 | 15 | class BatteryInfo { 16 | final BatteryState state; 17 | final int level; 18 | 19 | BatteryInfo(this.state, this.level); 20 | } 21 | 22 | class CustomAppBar extends ConsumerWidget implements PreferredSizeWidget { 23 | const CustomAppBar({super.key}); 24 | 25 | @override 26 | Size get preferredSize => const Size.fromHeight(30); 27 | 28 | @override 29 | Widget build(BuildContext context, WidgetRef ref) { 30 | return Container( 31 | padding: const EdgeInsets.symmetric(horizontal: 8), 32 | height: preferredSize.height, 33 | color: Theme.of(context).appBarTheme.backgroundColor?.withOpacity(0), 34 | alignment: Alignment.centerRight, 35 | child: const Row(mainAxisSize: MainAxisSize.max, children: [ 36 | TimeWidget(), 37 | Spacer(), 38 | ScraperProgressWidget(), 39 | WifiWidget(), 40 | BatteryWidget(), 41 | ]), 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/widgets/battery.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:battery_plus/battery_plus.dart'; 3 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 4 | 5 | final batteryProvider = StreamProvider.autoDispose((ref) { 6 | final battery = Battery(); 7 | return battery.onBatteryStateChanged.asyncMap( 8 | (event) async => BatteryInfo(event, await battery.batteryLevel)); 9 | }); 10 | 11 | class BatteryInfo { 12 | final BatteryState state; 13 | final int level; 14 | 15 | BatteryInfo(this.state, this.level); 16 | } 17 | 18 | class BatteryWidget extends ConsumerWidget { 19 | const BatteryWidget({super.key}); 20 | 21 | @override 22 | Widget build(BuildContext context, WidgetRef ref) { 23 | final battery = ref.watch(batteryProvider); 24 | return battery.when( 25 | data: (b) => Row(mainAxisSize: MainAxisSize.max, children: [ 26 | _imageForBattery(b), 27 | Text("${b.level}%"), 28 | ]), 29 | loading: () => const Text("Loading..."), 30 | error: (error, stack) => const Text("Error"), 31 | ); 32 | } 33 | 34 | Icon _imageForBattery(BatteryInfo b) { 35 | const iconColor = Colors.white; 36 | const iconSize = 24.0; 37 | if (b.state == BatteryState.unknown) { 38 | return const Icon( 39 | Icons.battery_unknown_sharp, 40 | color: iconColor, 41 | size: iconSize, 42 | ); 43 | } else if (b.state == BatteryState.charging) { 44 | return const Icon( 45 | Icons.battery_charging_full_sharp, 46 | color: iconColor, 47 | size: iconSize, 48 | ); 49 | } else if (b.level > 75) { 50 | return const Icon( 51 | Icons.battery_5_bar_sharp, 52 | color: iconColor, 53 | size: iconSize, 54 | ); 55 | } else if (b.level > 50) { 56 | return const Icon( 57 | Icons.battery_4_bar_sharp, 58 | color: iconColor, 59 | size: iconSize, 60 | ); 61 | } else if (b.level > 25) { 62 | return const Icon( 63 | Icons.battery_3_bar_sharp, 64 | color: iconColor, 65 | size: iconSize, 66 | ); 67 | } else if (b.level > 10) { 68 | return const Icon( 69 | Icons.battery_2_bar_sharp, 70 | color: iconColor, 71 | size: iconSize, 72 | ); 73 | } else { 74 | return const Icon( 75 | Icons.battery_1_bar_sharp, 76 | color: iconColor, 77 | size: iconSize, 78 | ); 79 | } 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /lib/widgets/fade_image_to_video.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:focus_detector_v2/focus_detector_v2.dart'; 4 | import 'package:video_player/video_player.dart'; 5 | 6 | import 'package:titanius/data/models.dart'; 7 | import 'package:titanius/data/repo.dart'; 8 | 9 | class FadeImageToVideo extends StatefulWidget { 10 | final Game game; 11 | final Settings settings; 12 | 13 | const FadeImageToVideo({super.key, required this.game, required this.settings}); 14 | 15 | @override 16 | FadeImageToVideoState createState() => FadeImageToVideoState(); 17 | } 18 | 19 | class FadeImageToVideoState extends State { 20 | late VideoPlayerController _controller; 21 | bool _playVideo = false; 22 | bool _inFocus = true; 23 | 24 | @override 25 | void initState() { 26 | super.initState(); 27 | _controller = VideoPlayerController.file(File(widget.game.videoUrl!))..setLooping(true); 28 | 29 | if (widget.settings.muteVideo) { 30 | _controller.setVolume(0.0); 31 | } 32 | 33 | if (widget.settings.fadeToVideo) { 34 | _controller.initialize(); 35 | Future.delayed(const Duration(seconds: 2), () async { 36 | if (_inFocus && mounted && _controller.value.isInitialized) { 37 | setState(() { 38 | _playVideo = true; 39 | }); 40 | _controller.play(); 41 | } 42 | }); 43 | } else { 44 | _playVideo = true; 45 | _controller.initialize().then((value) { 46 | if (mounted) { 47 | // force aspect ratio 48 | if (_inFocus) { 49 | setState(() { 50 | _playVideo = true; 51 | }); 52 | _controller.play(); 53 | } 54 | } 55 | }); 56 | } 57 | } 58 | 59 | @override 60 | void dispose() { 61 | _controller.dispose(); 62 | super.dispose(); 63 | } 64 | 65 | @override 66 | Widget build(BuildContext context) { 67 | return FocusDetector( 68 | onFocusLost: () { 69 | debugPrint('Focus lost'); 70 | if (mounted) { 71 | _controller.dispose(); 72 | setState(() { 73 | _inFocus = false; 74 | _playVideo = false; 75 | }); 76 | } 77 | }, 78 | child: _buildVideoPlayer(), 79 | ); 80 | } 81 | 82 | Widget _buildVideoPlayer() { 83 | if (_playVideo && _inFocus) { 84 | return AspectRatio( 85 | aspectRatio: _controller.value.aspectRatio, 86 | child: VideoPlayer(_controller), 87 | ); 88 | } else { 89 | return Image.file( 90 | File(widget.game.imageUrl!), 91 | fit: BoxFit.contain, 92 | filterQuality: FilterQuality.none, 93 | ); 94 | } 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /lib/widgets/gamepad_prompt.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:titanius/gamepad.dart'; 4 | 5 | const gamepadFontMappings = { 6 | GamepadButton.up: "\u{219F}", 7 | GamepadButton.down: "\u{21A1}", 8 | GamepadButton.upDown: "\u{21A3}", 9 | GamepadButton.left: "\u{219E}", 10 | GamepadButton.right: "\u{21A0}", 11 | GamepadButton.leftRight: "\u{21A2}", 12 | GamepadButton.a: "\u{21D3}", 13 | GamepadButton.b: "\u{21D2}", 14 | GamepadButton.x: "\u{21D0}", 15 | GamepadButton.y: "\u{21D1}", 16 | GamepadButton.l1: "\u{21B0}", 17 | GamepadButton.l2: "\u{21B2}", 18 | GamepadButton.r1: "\u{21B1}", 19 | GamepadButton.r2: "\u{21B3}", 20 | GamepadButton.start: "\u{21F8}", 21 | GamepadButton.select: "\u{21F7}", 22 | }; 23 | 24 | class GamepadPromptWidget extends StatelessWidget { 25 | final List buttons; 26 | final String prompt; 27 | 28 | const GamepadPromptWidget({super.key, required this.buttons, required this.prompt}); 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | String buttonText = buttons.map((button) => gamepadFontMappings[button]).join(""); 33 | return Row( 34 | mainAxisSize: MainAxisSize.min, 35 | children: [ 36 | Text(buttonText, style: const TextStyle(fontFamily: "Prompt", fontSize: 18)), 37 | Text(prompt), 38 | const SizedBox(width: 8), 39 | ], 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/widgets/icons.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const toggleSize = 40.0; 4 | const toggleOnIcon = Icon( 5 | Icons.toggle_on_outlined, 6 | size: toggleSize, 7 | ); 8 | const toggleOffIcon = Icon( 9 | Icons.toggle_off_outlined, 10 | size: toggleSize, 11 | color: Colors.grey, 12 | ); 13 | 14 | const arrowRight = Icon(Icons.arrow_right, size: toggleSize); 15 | -------------------------------------------------------------------------------- /lib/widgets/info_tile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class InfoTile extends StatelessWidget { 4 | final String title; 5 | final String subtitle; 6 | 7 | const InfoTile({ 8 | super.key, 9 | required this.title, 10 | required this.subtitle, 11 | }); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Column( 16 | crossAxisAlignment: CrossAxisAlignment.start, 17 | mainAxisSize: MainAxisSize.min, 18 | children: [ 19 | Text(title), 20 | Text(subtitle, style: const TextStyle(color: Colors.grey)), 21 | ], 22 | ); 23 | } 24 | } 25 | 26 | class InfoTiles extends StatelessWidget { 27 | final List children; 28 | 29 | const InfoTiles({ 30 | super.key, 31 | required this.children, 32 | }); 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | return LayoutBuilder( 37 | builder: (BuildContext context, BoxConstraints constraints) { 38 | final double tileWidth = constraints.maxWidth / 3; 39 | return Wrap( 40 | spacing: 8, 41 | runSpacing: 8, 42 | children: children 43 | .map((e) => Container( 44 | width: tileWidth, 45 | padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 8), 46 | child: e, 47 | )) 48 | .toList(), 49 | ); 50 | }, 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/widgets/prompt_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:titanius/gamepad.dart'; 4 | import 'package:titanius/widgets/gamepad_prompt.dart'; 5 | 6 | class GamepadPrompt { 7 | final List buttons; 8 | final String prompt; 9 | 10 | const GamepadPrompt(this.buttons, this.prompt); 11 | } 12 | 13 | typedef GamepadPrompts = List; 14 | 15 | class PromptBar extends StatelessWidget { 16 | final String text; 17 | final GamepadPrompts navigations; 18 | final GamepadPrompts actions; 19 | 20 | const PromptBar({super.key, this.text = "", this.navigations = const [], this.actions = const []}); 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return Padding( 25 | padding: const EdgeInsets.all(8), 26 | child: Row( 27 | children: [ 28 | ...navigations.map((e) => GamepadPromptWidget( 29 | buttons: e.buttons, 30 | prompt: e.prompt, 31 | )), 32 | Expanded( 33 | child: Text( 34 | text, 35 | textScaler: const TextScaler.linear(0.8), 36 | textAlign: TextAlign.center, 37 | maxLines: 1, 38 | overflow: TextOverflow.ellipsis, 39 | ), 40 | ), 41 | ...actions.map((e) => GamepadPromptWidget( 42 | buttons: e.buttons, 43 | prompt: e.prompt, 44 | )), 45 | ], 46 | ), 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /lib/widgets/scraper_progress.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:io'; 3 | 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter_background_service/flutter_background_service.dart'; 6 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 7 | import 'package:intl/intl.dart'; 8 | import 'package:riverpod_annotation/riverpod_annotation.dart'; 9 | import 'package:percent_indicator/percent_indicator.dart'; 10 | 11 | part 'scraper_progress.g.dart'; 12 | 13 | class ScraperProgress { 14 | final int total; 15 | final int pending; 16 | final int success; 17 | final int error; 18 | final String system; 19 | final String rom; 20 | final String message; 21 | 22 | ScraperProgress({ 23 | required this.total, 24 | required this.pending, 25 | required this.success, 26 | required this.error, 27 | required this.system, 28 | required this.rom, 29 | required this.message, 30 | }); 31 | } 32 | 33 | class FakeServiceInstance extends ServiceInstance { 34 | final scrapeController = StreamController?>(); 35 | final updateController = StreamController?>.broadcast(); 36 | @override 37 | void invoke(String method, [Map? args]) { 38 | debugPrint("Invoking $method with $args"); 39 | if (method == "scrape") { 40 | scrapeController.add(args); 41 | } 42 | if (method == "update") { 43 | updateController.add(args); 44 | } 45 | } 46 | 47 | @override 48 | Stream?> on(String method) { 49 | debugPrint("Listening to $method"); 50 | if (method == "scrape") { 51 | return scrapeController.stream; 52 | } 53 | if (method == "update") { 54 | return updateController.stream; 55 | } 56 | return const Stream.empty(); 57 | } 58 | 59 | @override 60 | Future stopSelf() async { 61 | debugPrint("Stopping service"); 62 | scrapeController.close(); 63 | updateController.close(); 64 | } 65 | 66 | Future isRunning() async { 67 | return false; 68 | } 69 | } 70 | 71 | @Riverpod(keepAlive: true) 72 | class ScraperService extends _$ScraperService { 73 | @override 74 | dynamic build() { 75 | if (Platform.isAndroid) { 76 | return FlutterBackgroundService(); 77 | } else { 78 | return FakeServiceInstance(); 79 | } 80 | } 81 | } 82 | 83 | @Riverpod(keepAlive: true) 84 | class ScraperProgressState extends _$ScraperProgressState { 85 | @override 86 | ScraperProgress build() { 87 | return ScraperProgress(total: 0, pending: 0, success: 0, error: 0, system: "", rom: "", message: ""); 88 | } 89 | 90 | void set(ScraperProgress progress) { 91 | state = progress; 92 | } 93 | } 94 | 95 | final f = NumberFormat("0.0%"); 96 | 97 | class ScraperProgressWidget extends HookConsumerWidget { 98 | const ScraperProgressWidget({super.key}); 99 | 100 | @override 101 | Widget build(BuildContext context, WidgetRef ref) { 102 | final progressState = ref.watch(scraperProgressStateProvider); 103 | 104 | if (progressState.message == "" || progressState.pending == 0) { 105 | return const SizedBox.shrink(); 106 | } 107 | 108 | final double percent = 109 | progressState.total > 0 ? (progressState.total - progressState.pending) / progressState.total : 0; 110 | 111 | return LinearPercentIndicator( 112 | width: 100, 113 | lineHeight: 16, 114 | percent: percent, 115 | progressColor: Colors.green, 116 | backgroundColor: Colors.grey, 117 | center: Text(f.format(percent)), 118 | barRadius: const Radius.circular(8), 119 | leading: Text(progressState.system), 120 | ); 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/widgets/selector.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 3 | import 'package:titanius/widgets/icons.dart'; 4 | 5 | class SelectorWidget extends HookConsumerWidget { 6 | final String text; 7 | const SelectorWidget({required this.text, super.key}); 8 | 9 | @override 10 | Widget build(BuildContext context, WidgetRef ref) { 11 | return Row( 12 | mainAxisSize: MainAxisSize.min, 13 | children: [ 14 | const Icon(Icons.arrow_left, size: toggleSize), 15 | Text(text), 16 | const Icon(Icons.arrow_right, size: toggleSize), 17 | ], 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/widgets/time.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:intl/intl.dart'; 3 | import 'package:system_date_time_format/system_date_time_format.dart'; 4 | 5 | class TimeWidget extends StatelessWidget { 6 | const TimeWidget({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) => StreamBuilder( 10 | stream: Stream.periodic(const Duration(minutes: 1)), 11 | builder: (BuildContext context, AsyncSnapshot snapshot) => Text( 12 | DateFormat(SystemDateTimeFormat.of(context).timePattern ?? "HH:mm").format(DateTime.now()), 13 | ), 14 | ); 15 | } 16 | -------------------------------------------------------------------------------- /lib/widgets/wifi.dart: -------------------------------------------------------------------------------- 1 | import 'package:connectivity_plus/connectivity_plus.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 4 | 5 | final Connectivity connectivity = Connectivity(); 6 | final connectivityProvider = StreamProvider.autoDispose((ref) { 7 | return connectivity.onConnectivityChanged; 8 | }); 9 | 10 | class WifiWidget extends ConsumerWidget { 11 | const WifiWidget({super.key}); 12 | 13 | @override 14 | Widget build(BuildContext context, WidgetRef ref) { 15 | final connectivityResult = ref.watch(connectivityProvider); 16 | return connectivityResult.when( 17 | data: (result) { 18 | if (result == ConnectivityResult.wifi) { 19 | return const Icon(Icons.wifi); 20 | } else { 21 | return const Icon(Icons.wifi_off); 22 | } 23 | }, 24 | loading: () => const Icon(Icons.wifi_off), 25 | error: (e, s) => const Icon(Icons.wifi_off), 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | void fl_register_plugins(FlPluginRegistry* registry) { 14 | g_autoptr(FlPluginRegistrar) flutter_volume_controller_registrar = 15 | fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterVolumeControllerPlugin"); 16 | flutter_volume_controller_plugin_register_with_registrar(flutter_volume_controller_registrar); 17 | g_autoptr(FlPluginRegistrar) isar_flutter_libs_registrar = 18 | fl_plugin_registry_get_registrar_for_plugin(registry, "IsarFlutterLibsPlugin"); 19 | isar_flutter_libs_plugin_register_with_registrar(isar_flutter_libs_registrar); 20 | g_autoptr(FlPluginRegistrar) system_date_time_format_registrar = 21 | fl_plugin_registry_get_registrar_for_plugin(registry, "SystemDateTimeFormatPlugin"); 22 | system_date_time_format_plugin_register_with_registrar(system_date_time_format_registrar); 23 | } 24 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | flutter_volume_controller 7 | isar_flutter_libs 8 | system_date_time_format 9 | ) 10 | 11 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 12 | ) 13 | 14 | set(PLUGIN_BUNDLED_LIBRARIES) 15 | 16 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 17 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 18 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 20 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 21 | endforeach(plugin) 22 | 23 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 24 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 25 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 26 | endforeach(ffi_plugin) 27 | -------------------------------------------------------------------------------- /linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import battery_plus 9 | import connectivity_plus 10 | import flutter_volume_controller 11 | import isar_flutter_libs 12 | import package_info_plus 13 | import path_provider_foundation 14 | import sqflite 15 | import system_date_time_format 16 | import video_player_avfoundation 17 | 18 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 19 | BatteryPlusMacosPlugin.register(with: registry.registrar(forPlugin: "BatteryPlusMacosPlugin")) 20 | ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin")) 21 | FlutterVolumeControllerPlugin.register(with: registry.registrar(forPlugin: "FlutterVolumeControllerPlugin")) 22 | IsarFlutterLibsPlugin.register(with: registry.registrar(forPlugin: "IsarFlutterLibsPlugin")) 23 | FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) 24 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 25 | SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) 26 | SystemDateTimeFormatPlugin.register(with: registry.registrar(forPlugin: "SystemDateTimeFormatPlugin")) 27 | FVPVideoPlayerPlugin.register(with: registry.registrar(forPlugin: "FVPVideoPlayerPlugin")) 28 | } 29 | -------------------------------------------------------------------------------- /macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.14' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def flutter_root 13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) 14 | unless File.exist?(generated_xcode_build_settings_path) 15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" 16 | end 17 | 18 | File.foreach(generated_xcode_build_settings_path) do |line| 19 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 20 | return matches[1].strip if matches 21 | end 22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" 23 | end 24 | 25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 26 | 27 | flutter_macos_podfile_setup 28 | 29 | target 'Runner' do 30 | use_frameworks! 31 | use_modular_headers! 32 | 33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) 34 | end 35 | 36 | post_install do |installer| 37 | installer.pods_project.targets.each do |target| 38 | flutter_additional_macos_build_settings(target) 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /macos/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - battery_plus (0.0.1): 3 | - FlutterMacOS 4 | - connectivity_plus (0.0.1): 5 | - FlutterMacOS 6 | - ReachabilitySwift 7 | - flutter_volume_controller (0.0.1): 8 | - FlutterMacOS 9 | - FlutterMacOS (1.0.0) 10 | - FMDB (2.7.5): 11 | - FMDB/standard (= 2.7.5) 12 | - FMDB/standard (2.7.5) 13 | - isar_flutter_libs (1.0.0): 14 | - FlutterMacOS 15 | - package_info_plus (0.0.1): 16 | - FlutterMacOS 17 | - path_provider_foundation (0.0.1): 18 | - Flutter 19 | - FlutterMacOS 20 | - ReachabilitySwift (5.0.0) 21 | - sqflite (0.0.2): 22 | - FlutterMacOS 23 | - FMDB (>= 2.7.5) 24 | - system_date_time_format (0.0.1): 25 | - FlutterMacOS 26 | - video_player_avfoundation (0.0.1): 27 | - Flutter 28 | - FlutterMacOS 29 | 30 | DEPENDENCIES: 31 | - battery_plus (from `Flutter/ephemeral/.symlinks/plugins/battery_plus/macos`) 32 | - connectivity_plus (from `Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos`) 33 | - flutter_volume_controller (from `Flutter/ephemeral/.symlinks/plugins/flutter_volume_controller/macos`) 34 | - FlutterMacOS (from `Flutter/ephemeral`) 35 | - isar_flutter_libs (from `Flutter/ephemeral/.symlinks/plugins/isar_flutter_libs/macos`) 36 | - package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`) 37 | - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) 38 | - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`) 39 | - system_date_time_format (from `Flutter/ephemeral/.symlinks/plugins/system_date_time_format/macos`) 40 | - video_player_avfoundation (from `Flutter/ephemeral/.symlinks/plugins/video_player_avfoundation/darwin`) 41 | 42 | SPEC REPOS: 43 | trunk: 44 | - FMDB 45 | - ReachabilitySwift 46 | 47 | EXTERNAL SOURCES: 48 | battery_plus: 49 | :path: Flutter/ephemeral/.symlinks/plugins/battery_plus/macos 50 | connectivity_plus: 51 | :path: Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos 52 | flutter_volume_controller: 53 | :path: Flutter/ephemeral/.symlinks/plugins/flutter_volume_controller/macos 54 | FlutterMacOS: 55 | :path: Flutter/ephemeral 56 | isar_flutter_libs: 57 | :path: Flutter/ephemeral/.symlinks/plugins/isar_flutter_libs/macos 58 | package_info_plus: 59 | :path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos 60 | path_provider_foundation: 61 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin 62 | sqflite: 63 | :path: Flutter/ephemeral/.symlinks/plugins/sqflite/macos 64 | system_date_time_format: 65 | :path: Flutter/ephemeral/.symlinks/plugins/system_date_time_format/macos 66 | video_player_avfoundation: 67 | :path: Flutter/ephemeral/.symlinks/plugins/video_player_avfoundation/darwin 68 | 69 | SPEC CHECKSUMS: 70 | battery_plus: 906cd081df7f2274f5235581515b59a628dcaec7 71 | connectivity_plus: 18d3c32514c886e046de60e9c13895109866c747 72 | flutter_volume_controller: 25d09126b0d695560f11c80b1311d5063fed882f 73 | FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 74 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a 75 | isar_flutter_libs: 43385c99864c168fadba7c9adeddc5d38838ca6a 76 | package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce 77 | path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 78 | ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 79 | sqflite: a5789cceda41d54d23f31d6de539d65bb14100ea 80 | system_date_time_format: 4f3982edee40a537cf15c817d1e939b9dbfa457d 81 | video_player_avfoundation: e9e6f9cae7d7a6d9b43519b0aab382bca60fcfd1 82 | 83 | PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 84 | 85 | COCOAPODS: 1.12.1 86 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = titanius 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = app.titanius.launcher 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2023 app.titanius. All rights reserved. 15 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | com.apple.security.network.client 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.network.client 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /scripts/daijisho/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | "io/ioutil" 7 | "net/http" 8 | "os" 9 | ) 10 | 11 | func main() { 12 | daijishoPlatforms, err := loadDaijishoPlatforms() 13 | if err != nil { 14 | fmt.Println("Error loading Daijisho platforms:", err) 15 | return 16 | } 17 | systems, err := loadMetadata() 18 | if err != nil { 19 | fmt.Println("Error loading metadata:", err) 20 | return 21 | } 22 | for _, p := range daijishoPlatforms.PlatformList { 23 | _, err := findSystem(systems, p.PlatformShortname) 24 | if err != nil { 25 | fmt.Printf("Error finding system for platform %s: %v\n", p.PlatformShortname, err) 26 | continue 27 | } 28 | } 29 | } 30 | 31 | func findSystem(systems SystemsJSON, platformShortname string) (System, error) { 32 | for _, system := range systems.Systems { 33 | if system.ID == platformShortname { 34 | return system, nil 35 | } 36 | } 37 | return System{}, fmt.Errorf("no system found for platform %s", platformShortname) 38 | } 39 | 40 | type Platform struct { 41 | Filename string `json:"filename"` 42 | PlatformName string `json:"platformName"` 43 | PlatformShortname string `json:"platformShortname"` 44 | RevisionNumber int `json:"revisionNumber"` 45 | } 46 | 47 | type PlatformIndex struct { 48 | BaseURI string `json:"baseUri"` 49 | PlatformList []Platform `json:"platformList"` 50 | } 51 | 52 | func loadDaijishoPlatforms() (PlatformIndex, error) { 53 | url := "https://raw.githubusercontent.com/TapiocaFox/Daijishou/main/platforms/index.json" 54 | resp, err := http.Get(url) 55 | if err != nil { 56 | fmt.Printf("Error fetching JSON data: %v\n", err) 57 | return PlatformIndex{}, err 58 | } 59 | defer resp.Body.Close() 60 | 61 | body, err := ioutil.ReadAll(resp.Body) 62 | if err != nil { 63 | fmt.Printf("Error reading response body: %v\n", err) 64 | return PlatformIndex{}, err 65 | } 66 | 67 | var platformIndex PlatformIndex 68 | err = json.Unmarshal(body, &platformIndex) 69 | if err != nil { 70 | fmt.Printf("Error parsing JSON data: %v\n", err) 71 | return PlatformIndex{}, err 72 | } 73 | 74 | fmt.Printf("Base URI: %s\n", platformIndex.BaseURI) 75 | fmt.Println("Platform List:") 76 | for _, platform := range platformIndex.PlatformList { 77 | fmt.Printf(" Platform Name: %s\n", platform.PlatformName) 78 | fmt.Printf(" Filename: %s\n", platform.Filename) 79 | fmt.Printf(" Platform Shortname: %s\n", platform.PlatformShortname) 80 | fmt.Printf(" Revision Number: %d\n", platform.RevisionNumber) 81 | fmt.Println() 82 | } 83 | 84 | return platformIndex, nil 85 | } 86 | 87 | type Intent struct { 88 | Component string `json:"component"` 89 | Args map[string]string `json:"args"` 90 | Flags []string `json:"flags"` 91 | } 92 | 93 | type Emulator struct { 94 | ID string `json:"id"` 95 | Name string `json:"name"` 96 | Intent Intent `json:"intent"` 97 | } 98 | 99 | type System struct { 100 | ID string `json:"id"` 101 | Name string `json:"name"` 102 | Logo string `json:"logo"` 103 | Folders []string `json:"folders"` 104 | Emulators []Emulator `json:"emulators"` 105 | } 106 | 107 | type SystemsJSON struct { 108 | Systems []System `json:"systems"` 109 | } 110 | 111 | func loadMetadata() (SystemsJSON, error) { 112 | jsonFile, err := os.Open("../../assets/metadata.json") 113 | if err != nil { 114 | fmt.Println("Error opening file:", err) 115 | return SystemsJSON{}, err 116 | } 117 | defer jsonFile.Close() 118 | 119 | bytes, err := ioutil.ReadAll(jsonFile) 120 | if err != nil { 121 | fmt.Println("Error reading file:", err) 122 | return SystemsJSON{}, err 123 | } 124 | 125 | var systemsJSON SystemsJSON 126 | err = json.Unmarshal(bytes, &systemsJSON) 127 | if err != nil { 128 | fmt.Println("Error unmarshalling JSON:", err) 129 | return SystemsJSON{}, err 130 | } 131 | 132 | fmt.Println(systemsJSON) 133 | 134 | return systemsJSON, nil 135 | } 136 | -------------------------------------------------------------------------------- /test/assets_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/services.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | import 'package:flutter_test/flutter_test.dart'; 4 | import 'package:titanius/data/systems.dart'; 5 | 6 | Future main() async { 7 | TestWidgetsFlutterBinding.ensureInitialized(); 8 | testWidgets( 9 | 'All logos should be available', 10 | (tester) async { 11 | await tester.runAsync(() async { 12 | // Use `runAsync` to make real asynchronous calls 13 | final container = ProviderContainer(overrides: [ 14 | // define your overrides here if required 15 | ]); 16 | 17 | final allSystemsWithCollections = await container.read(allSupportedSystemsProvider.future); 18 | expect(allSystemsWithCollections.length, 77); 19 | final allSystems = allSystemsWithCollections.where((element) => !element.isCollection); 20 | expect(allSystems.length, 74); 21 | for (final system in allSystems) { 22 | await rootBundle.load("assets/images/white/${system.logo}"); 23 | await rootBundle.load("assets/images/color/${system.logo}"); 24 | } 25 | }); 26 | }, 27 | ); 28 | } 29 | -------------------------------------------------------------------------------- /test/intent_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_test/flutter_test.dart'; 2 | import 'package:titanius/data/android_intent.dart'; 3 | 4 | void main() { 5 | test('parseAmStartCommand should correctly parse command into LaunchIntent', () { 6 | const command = "am start " 7 | "-n com.retroarch/.browser.retroactivity.RetroActivityFuture " 8 | "-e ROM {file.path} " 9 | "-e LIBRETRO /data/data/com.retroarch/cores/fbneo_libretro_android.so " 10 | "-e CONFIGFILE /storage/emulated/0/Android/data/com.retroarch/files/retroarch.cfg " 11 | "-e QUITFOCUS " 12 | "--activity-clear-task " 13 | "--activity-clear-top " 14 | "--activity-no-history"; 15 | 16 | final expectedIntent = LaunchIntent( 17 | target: 'com.retroarch/.browser.retroactivity.RetroActivityFuture', 18 | action: '', 19 | data: '', 20 | args: { 21 | 'ROM': '{file.path}', 22 | 'LIBRETRO': '/data/data/com.retroarch/cores/fbneo_libretro_android.so', 23 | 'CONFIGFILE': '/storage/emulated/0/Android/data/com.retroarch/files/retroarch.cfg', 24 | 'QUITFOCUS': '', 25 | }, 26 | flags: [ 27 | '--activity-clear-task', 28 | '--activity-clear-top', 29 | '--activity-no-history', 30 | ], 31 | ); 32 | 33 | final result = LaunchIntent.parseAmStartCommand(command); 34 | 35 | expect(result, equals(expectedIntent)); 36 | }); 37 | 38 | test('parseAmStartCommand should correctly parse command with VIEW action into LaunchIntent', () { 39 | const command = "-n org.ppsspp.ppssppgold/org.ppsspp.ppsspp.PpssppActivity " 40 | "-a android.intent.action.VIEW " 41 | '-d "{file.documenturi}" ' 42 | "--activity-clear-task " 43 | "--activity-clear-top " 44 | "--activity-no-history"; 45 | 46 | final expectedIntent = LaunchIntent( 47 | target: 'org.ppsspp.ppssppgold/org.ppsspp.ppsspp.PpssppActivity', 48 | action: 'android.intent.action.VIEW', 49 | data: '{file.documenturi}', 50 | args: {}, 51 | flags: [ 52 | '--activity-clear-task', 53 | '--activity-clear-top', 54 | '--activity-no-history', 55 | ], 56 | ); 57 | 58 | final result = LaunchIntent.parseAmStartCommand(command); 59 | 60 | expect(result, equals(expectedIntent)); 61 | }); 62 | } 63 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | titanius 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "titanius", 3 | "short_name": "titanius", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "Titanius Launcher", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | void RegisterPlugins(flutter::PluginRegistry* registry) { 17 | BatteryPlusWindowsPluginRegisterWithRegistrar( 18 | registry->GetRegistrarForPlugin("BatteryPlusWindowsPlugin")); 19 | ConnectivityPlusWindowsPluginRegisterWithRegistrar( 20 | registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); 21 | FlutterVolumeControllerPluginCApiRegisterWithRegistrar( 22 | registry->GetRegistrarForPlugin("FlutterVolumeControllerPluginCApi")); 23 | IsarFlutterLibsPluginRegisterWithRegistrar( 24 | registry->GetRegistrarForPlugin("IsarFlutterLibsPlugin")); 25 | PermissionHandlerWindowsPluginRegisterWithRegistrar( 26 | registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); 27 | SystemDateTimeFormatPluginCApiRegisterWithRegistrar( 28 | registry->GetRegistrarForPlugin("SystemDateTimeFormatPluginCApi")); 29 | } 30 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | battery_plus 7 | connectivity_plus 8 | flutter_volume_controller 9 | isar_flutter_libs 10 | permission_handler_windows 11 | system_date_time_format 12 | ) 13 | 14 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 15 | ) 16 | 17 | set(PLUGIN_BUNDLED_LIBRARIES) 18 | 19 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 20 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 21 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 24 | endforeach(plugin) 25 | 26 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 27 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 28 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 29 | endforeach(ffi_plugin) 30 | -------------------------------------------------------------------------------- /windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Add preprocessor definitions for the build version. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") 25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") 26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") 27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") 28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") 29 | 30 | # Disable Windows macros that collide with C++ standard library functions. 31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 32 | 33 | # Add dependency libraries and include directories. Add any application-specific 34 | # dependencies here. 35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 36 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 37 | 38 | # Run the Flutter tool portions of the build. This must not be removed. 39 | add_dependencies(${BINARY_NAME} flutter_assemble) 40 | -------------------------------------------------------------------------------- /windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) 64 | #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0,0 67 | #endif 68 | 69 | #if defined(FLUTTER_VERSION) 70 | #define VERSION_AS_STRING FLUTTER_VERSION 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "titanius.app" "\0" 93 | VALUE "FileDescription", "titanius" "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "titanius" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2023 Denis Solonenko. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "titanius.exe" "\0" 98 | VALUE "ProductName", "Titanius Launcher" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | return true; 30 | } 31 | 32 | void FlutterWindow::OnDestroy() { 33 | if (flutter_controller_) { 34 | flutter_controller_ = nullptr; 35 | } 36 | 37 | Win32Window::OnDestroy(); 38 | } 39 | 40 | LRESULT 41 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 42 | WPARAM const wparam, 43 | LPARAM const lparam) noexcept { 44 | // Give Flutter, including plugins, an opportunity to handle window messages. 45 | if (flutter_controller_) { 46 | std::optional result = 47 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 48 | lparam); 49 | if (result) { 50 | return *result; 51 | } 52 | } 53 | 54 | switch (message) { 55 | case WM_FONTCHANGE: 56 | flutter_controller_->engine()->ReloadSystemFonts(); 57 | break; 58 | } 59 | 60 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 61 | } 62 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.CreateAndShow(L"titanius", origin, size)) { 31 | return EXIT_FAILURE; 32 | } 33 | window.SetQuitOnClose(true); 34 | 35 | ::MSG msg; 36 | while (::GetMessage(&msg, nullptr, 0, 0)) { 37 | ::TranslateMessage(&msg); 38 | ::DispatchMessage(&msg); 39 | } 40 | 41 | ::CoUninitialize(); 42 | return EXIT_SUCCESS; 43 | } 44 | -------------------------------------------------------------------------------- /windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsolonenko/titanius-launcher/8b695b1fe92f4349771d4934357dd553d66ff1f0/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr); 51 | std::string utf8_string; 52 | if (target_length == 0 || target_length > utf8_string.max_size()) { 53 | return utf8_string; 54 | } 55 | utf8_string.resize(target_length); 56 | int converted_length = ::WideCharToMultiByte( 57 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 58 | -1, utf8_string.data(), 59 | target_length, nullptr, nullptr); 60 | if (converted_length == 0) { 61 | return std::string(); 62 | } 63 | return utf8_string; 64 | } 65 | -------------------------------------------------------------------------------- /windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates and shows a win32 window with |title| and position and size using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size to will treat the width height passed in to this function 35 | // as logical pixels and scale to appropriate for the default monitor. Returns 36 | // true if the window was created successfully. 37 | bool CreateAndShow(const std::wstring& title, 38 | const Point& origin, 39 | const Size& size); 40 | 41 | // Release OS resources associated with window. 42 | void Destroy(); 43 | 44 | // Inserts |content| into the window tree. 45 | void SetChildContent(HWND content); 46 | 47 | // Returns the backing Window handle to enable clients to set icon and other 48 | // window properties. Returns nullptr if the window has been destroyed. 49 | HWND GetHandle(); 50 | 51 | // If true, closing this window will quit the application. 52 | void SetQuitOnClose(bool quit_on_close); 53 | 54 | // Return a RECT representing the bounds of the current client area. 55 | RECT GetClientArea(); 56 | 57 | protected: 58 | // Processes and route salient window messages for mouse handling, 59 | // size change and DPI. Delegates handling of these to member overloads that 60 | // inheriting classes can handle. 61 | virtual LRESULT MessageHandler(HWND window, 62 | UINT const message, 63 | WPARAM const wparam, 64 | LPARAM const lparam) noexcept; 65 | 66 | // Called when CreateAndShow is called, allowing subclass window-related 67 | // setup. Subclasses should return false if setup fails. 68 | virtual bool OnCreate(); 69 | 70 | // Called when Destroy is called. 71 | virtual void OnDestroy(); 72 | 73 | private: 74 | friend class WindowClassRegistrar; 75 | 76 | // OS callback called by message pump. Handles the WM_NCCREATE message which 77 | // is passed when the non-client area is being created and enables automatic 78 | // non-client DPI scaling so that the non-client area automatically 79 | // responsponds to changes in DPI. All other messages are handled by 80 | // MessageHandler. 81 | static LRESULT CALLBACK WndProc(HWND const window, 82 | UINT const message, 83 | WPARAM const wparam, 84 | LPARAM const lparam) noexcept; 85 | 86 | // Retrieves a class instance pointer for |window| 87 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 88 | 89 | bool quit_on_close_ = false; 90 | 91 | // window handle for top level window. 92 | HWND window_handle_ = nullptr; 93 | 94 | // window handle for hosted content. 95 | HWND child_content_ = nullptr; 96 | }; 97 | 98 | #endif // RUNNER_WIN32_WINDOW_H_ 99 | --------------------------------------------------------------------------------