mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
feat: Added shortcut to switch between providers
This commit is contained in:
@@ -261,6 +261,12 @@ namespace hex {
|
||||
*/
|
||||
void setCurrentProvider(u32 index);
|
||||
|
||||
/**
|
||||
* @brief Gets the index of the currently selected data provider
|
||||
* @return Index of the selected provider
|
||||
*/
|
||||
i64 getCurrentProviderIndex();
|
||||
|
||||
/**
|
||||
* @brief Checks whether the currently selected data provider is valid
|
||||
* @return Whether the currently selected data provider is valid
|
||||
|
||||
@@ -255,6 +255,10 @@ namespace hex {
|
||||
}
|
||||
}
|
||||
|
||||
i64 getCurrentProviderIndex() {
|
||||
return s_currentProvider;
|
||||
}
|
||||
|
||||
bool isValid() {
|
||||
return !s_providers.empty() && s_currentProvider >= 0 && s_currentProvider < i64(s_providers.size());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user