Skip to content

Commit

Permalink
Add more searching cases, fix '©' in Plugin.cpp, bump version to 1.2.0
Browse files Browse the repository at this point in the history
Using Unicode for Plugin.cpp
  • Loading branch information
RangerCD committed Apr 22, 2016
1 parent 3ad9118 commit 283813c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
6 changes: 3 additions & 3 deletions foo_cad_plus/Plugin.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
Copyright (C) 2012 Birunthan Mohanathas <http://poiru.net>
2015 RangerCD <http://www.debug.moe>
Expand Down Expand Up @@ -37,8 +37,8 @@ const GUID ORDER_SHUFFLE_DIRECTORIES = { 0x83C37600, 0xD725, 0x4727, { 0xB5, 0x3

DECLARE_COMPONENT_VERSION(
"CD Art Display Plus",
"1.1.1",
"? 2013 - Birunthan Mohanathas, 2015 - RangerCD");
"1.2.0",
"© 2013 - Birunthan Mohanathas, 2015 - RangerCD");

static initquit_factory_t<foo_cad> foo_interface;

Expand Down
16 changes: 15 additions & 1 deletion foo_cad_plus/PlusCover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,19 @@ unsigned int PlusCover::GenCover(wstring FilePath)
bool PlusCover::SearchCover(wstring FilePath)
{
wstring folder = FilePath.substr(0, FilePath.rfind(L"\\") + 1);
return CCover::GetLocal(L"cover", folder, m_CoverPath);
wstring parent_folder = folder + L"..\\";
return (
//Current Directory
CCover::GetLocal(L"cover", folder, m_CoverPath) ||
CCover::GetLocal(L"cover1", folder, m_CoverPath) ||
CCover::GetLocal(L"front", folder, m_CoverPath) ||
CCover::GetLocal(L"front1", folder, m_CoverPath)

||
//Parent Directory
CCover::GetLocal(L"cover", parent_folder, m_CoverPath) ||
CCover::GetLocal(L"cover1", parent_folder, m_CoverPath) ||
CCover::GetLocal(L"front", parent_folder, m_CoverPath) ||
CCover::GetLocal(L"front1", parent_folder, m_CoverPath)
);
}

0 comments on commit 283813c

Please sign in to comment.