Skip to content

Instantly share code, notes, and snippets.

@tana3n
Last active May 18, 2022 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tana3n/ac7b839dd6aecf5b8af84fb05c22ea49 to your computer and use it in GitHub Desktop.
Save tana3n/ac7b839dd6aecf5b8af84fb05c22ea49 to your computer and use it in GitHub Desktop.
LibISDBのStock777選局可にするPatch
https://github.com/otya128/TVTDataBroadcastingWV2/commit/64cf083c9051e93865a7625a3c5175513ecc6b87
を参考の元、データカルーセルを検出した場合にtrueを返す例
diff --git a/LibISDB/Windows/Viewer/ViewerEngine.cpp b/LibISDB/Windows/Viewer/ViewerEngine.cpp
index 3bf1841..aade311 100644
--- a/LibISDB/Windows/Viewer/ViewerEngine.cpp
+++ b/LibISDB/Windows/Viewer/ViewerEngine.cpp
@@ -162,6 +162,9 @@ bool ViewerEngine::IsSelectableService(int Index) const
if (m_pAnalyzer == nullptr)
return false;
+ if (m_pAnalyzer->GetDataCarrouselESCount(Index) > 0)
+ return true;
+
if ((Index < 0) || (Index >= m_pAnalyzer->GetServiceCount()))
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment