Skip to content

Commit

Permalink
Change video filter dialog to use imported shader preset strings
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear authored and VelocityRa committed Mar 9, 2020
1 parent 3092d34 commit 7368539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/games/dialogs/osd/DialogGameVideoFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void CDialogGameVideoFilter::InitVideoFilters()

// TODO: Have the add-on give us the xml as a string (or parse it)
static const std::string addonPath = std::string("special://xbmcbinaddons/") + PRESETS_ADDON_NAME;
static const std::string xmlPath = addonPath + "/resources/ShaderPresetsDefault.xml";
static const std::string xmlPath = "special://xbmc/system/shaders/presets/shader-manifest.xml";
std::string basePath = URIUtils::GetBasePath(xmlPath);

CXBMCTinyXML xml = CXBMCTinyXML(xmlPath);
Expand Down Expand Up @@ -224,7 +224,7 @@ void CDialogGameVideoFilter::PostExit()

std::string CDialogGameVideoFilter::GetLocalizedString(uint32_t code)
{
return g_localizeStrings.GetAddonString(PRESETS_ADDON_NAME, code);
return g_localizeStrings.Get(code);
}

void CDialogGameVideoFilter::GetProperties(const CFileItem &item, std::string &videoFilter, std::string &description)
Expand Down

0 comments on commit 7368539

Please sign in to comment.