Skip to content

Commit

Permalink
- Removed own project dependency.
Browse files Browse the repository at this point in the history
- Added publish profiles.
- Added readme.
  • Loading branch information
KirovAir committed Sep 18, 2019
1 parent f8b8f51 commit cd6968a
Show file tree
Hide file tree
Showing 26 changed files with 771 additions and 152 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Twilight Boxart
A boxart downloader written in C#. Uses various sources and scan methods to determine the correct boxart.
Written for TwilightMenu++ but can be used for other loader UI's with some config changes. 😊

## Supported rom types
* Nintendo - Game Boy
* Nintendo - Game Boy Color
* Nintendo - Game Boy Advance
* Nintendo - Nintendo DS
* Nintendo - Nintendo DSi
* Nintendo - Nintendo DSi (DSiWare)
* Nintendo - Nintendo Entertainment System
* Nintendo - Super Nintendo Entertainment System
* Sega - Mega Drive - Genesis
* Sega - Master System - Mark III
* Sega - Game Gear

## Boxart sources
* [GameTDB](https://gametdb.com) using titleid matching.
* [LibRetro](https://github.com/libretro/libretro-thumbnails) using [NoIntro](https://datomatic.no-intro.org) sha1 matching.

## Download
[Here](https://github.com/KirovAir/TwilightBoxart/releases).

## To-do
* Add support for more consoles. (redump.org as disc source)
* Prefilled config support for different loaders. (RetroArch, Wii etc.)
8 changes: 3 additions & 5 deletions TwilightBoxart.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ class Program
{
static void Main(string[] args)
{
ConsoleEx.WriteGreenLine("TwilightBoxart - Created by KirovAir.");
Console.WriteLine("Loads of love to the devs of TwilightMenu++, LibRetro and the maintainers of the No-Intro DB.");
ConsoleEx.WriteGreenLine(BoxartConfig.Credits);
Console.WriteLine();

var config = new BoxartConfig();
try
{
config.Load("TwilightBoxart.ini");
config.Load();
}
catch { Console.WriteLine("Could not load TwilightBoxart.ini - using defaults."); }

Expand Down Expand Up @@ -50,7 +49,7 @@ static void Main(string[] args)
config.SdRoot = choice;
}

var boxArtPath = Path.Combine(config.SdRoot, config.BoxartPath);
var boxArtPath = config.GetBoxartPath();
ConsoleEx.WriteGreenLine("Loaded settings:");
Console.WriteLine("SDRoot / Roms location: \t" + config.SdRoot);
Console.WriteLine("BoxArt location: \t\t" + boxArtPath);
Expand All @@ -63,7 +62,6 @@ static void Main(string[] args)
Console.WriteLine();

var progress = new Progress<string>(Console.WriteLine);

var crawler = new BoxartCrawler(progress);
crawler.InitializeDb();
crawler.DownloadArt(config.SdRoot, boxArtPath, config.BoxartWidth, config.BoxartHeight);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PublishDir>bin\Release\linux-x64-no-framework</PublishDir>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
15 changes: 15 additions & 0 deletions TwilightBoxart.CLI/Properties/PublishProfiles/Linux.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PublishDir>bin\Release\linux-x64</PublishDir>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PublishDir>bin\Release\macos-x64-no-framework</PublishDir>
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
15 changes: 15 additions & 0 deletions TwilightBoxart.CLI/Properties/PublishProfiles/MacOS.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PublishDir>bin\Release\macos-x64</PublishDir>
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
</PropertyGroup>
</Project>
11 changes: 6 additions & 5 deletions TwilightBoxart.CLI/TwilightBoxart.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<ApplicationIcon></ApplicationIcon>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>

<ItemGroup>
<None Remove="TwilightBoxart.ini" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\KirovAir.Core\KirovAir.Core\KirovAir.Core.csproj" />
<ProjectReference Include="..\TwilightBoxart\TwilightBoxart.csproj" />
</ItemGroup>

<ItemGroup>
<Content Include="TwilightBoxart.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\TwilightBoxart\TwilightBoxart.csproj" />
</ItemGroup>

</Project>
6 changes: 4 additions & 2 deletions TwilightBoxart.CLI/TwilightBoxart.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[Config]
SdRoot=C:\Users\Jesse\Downloads\roms
BoxArtDir=_nds\TWiLightMenu\boxart
SdRoot=
BoxArtDir={sdroot}\_nds\TWiLightMenu\boxart
BoxartWidth=128
BoxartHeight=115
4 changes: 2 additions & 2 deletions TwilightBoxart.UX/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
Expand Down Expand Up @@ -28,6 +28,6 @@
</assemblyBinding>
</runtime>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
<add key="DpiAwareness" value="PerMonitorV1" />
</System.Windows.Forms.ApplicationConfigurationSection>
</configuration>
Loading

0 comments on commit cd6968a

Please sign in to comment.