mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-23 20:32:52 +01:00
reinitialize battery ast_id_ in free_graphics
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
0
RetroFE/CMake/FindGStreamer.cmake
Normal file → Executable file
0
RetroFE/CMake/FindGStreamer.cmake
Normal file → Executable file
0
RetroFE/CMake/FindGlib2.cmake
Normal file → Executable file
0
RetroFE/CMake/FindGlib2.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL2.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL2.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL2_image.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL2_image.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL2_mixer.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL2_mixer.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL2_ttf.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL2_ttf.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL_gfx.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL_gfx.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL_image.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL_image.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL_mixer.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL_mixer.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL_ttf.cmake
Normal file → Executable file
0
RetroFE/CMake/FindSDL_ttf.cmake
Normal file → Executable file
0
RetroFE/Scripts/SetupEnvironment.bat
Normal file → Executable file
0
RetroFE/Scripts/SetupEnvironment.bat
Normal file → Executable file
0
RetroFE/Source/Collection/CollectionInfo.cpp
Normal file → Executable file
0
RetroFE/Source/Collection/CollectionInfo.cpp
Normal file → Executable file
0
RetroFE/Source/Collection/CollectionInfo.h
Normal file → Executable file
0
RetroFE/Source/Collection/CollectionInfo.h
Normal file → Executable file
0
RetroFE/Source/Collection/CollectionInfoBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Collection/CollectionInfoBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Collection/CollectionInfoBuilder.h
Normal file → Executable file
0
RetroFE/Source/Collection/CollectionInfoBuilder.h
Normal file → Executable file
0
RetroFE/Source/Collection/Item.cpp
Normal file → Executable file
0
RetroFE/Source/Collection/Item.cpp
Normal file → Executable file
0
RetroFE/Source/Collection/Item.h
Normal file → Executable file
0
RetroFE/Source/Collection/Item.h
Normal file → Executable file
0
RetroFE/Source/Collection/MenuParser.cpp
Normal file → Executable file
0
RetroFE/Source/Collection/MenuParser.cpp
Normal file → Executable file
0
RetroFE/Source/Collection/MenuParser.h
Normal file → Executable file
0
RetroFE/Source/Collection/MenuParser.h
Normal file → Executable file
0
RetroFE/Source/Control/InputHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/InputHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/JoyAxisHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/JoyAxisHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/JoyAxisHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/JoyAxisHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/JoyButtonHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/JoyButtonHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/JoyButtonHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/JoyButtonHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/JoyHatHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/JoyHatHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/JoyHatHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/JoyHatHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/KeyboardHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/KeyboardHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/KeyboardHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/KeyboardHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/MouseButtonHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/MouseButtonHandler.cpp
Normal file → Executable file
0
RetroFE/Source/Control/MouseButtonHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/MouseButtonHandler.h
Normal file → Executable file
0
RetroFE/Source/Control/UserInput.cpp
Normal file → Executable file
0
RetroFE/Source/Control/UserInput.cpp
Normal file → Executable file
0
RetroFE/Source/Control/UserInput.h
Normal file → Executable file
0
RetroFE/Source/Control/UserInput.h
Normal file → Executable file
0
RetroFE/Source/Database/Configuration.cpp
Normal file → Executable file
0
RetroFE/Source/Database/Configuration.cpp
Normal file → Executable file
0
RetroFE/Source/Database/Configuration.h
Normal file → Executable file
0
RetroFE/Source/Database/Configuration.h
Normal file → Executable file
0
RetroFE/Source/Database/DB.cpp
Normal file → Executable file
0
RetroFE/Source/Database/DB.cpp
Normal file → Executable file
0
RetroFE/Source/Database/DB.h
Normal file → Executable file
0
RetroFE/Source/Database/DB.h
Normal file → Executable file
0
RetroFE/Source/Database/Metadata.h
Normal file → Executable file
0
RetroFE/Source/Database/Metadata.h
Normal file → Executable file
0
RetroFE/Source/Database/MetadataDatabase.cpp
Normal file → Executable file
0
RetroFE/Source/Database/MetadataDatabase.cpp
Normal file → Executable file
0
RetroFE/Source/Database/MetadataDatabase.h
Normal file → Executable file
0
RetroFE/Source/Database/MetadataDatabase.h
Normal file → Executable file
0
RetroFE/Source/Execute/AttractMode.cpp
Normal file → Executable file
0
RetroFE/Source/Execute/AttractMode.cpp
Normal file → Executable file
0
RetroFE/Source/Execute/AttractMode.h
Normal file → Executable file
0
RetroFE/Source/Execute/AttractMode.h
Normal file → Executable file
0
RetroFE/Source/Execute/Launcher.cpp
Normal file → Executable file
0
RetroFE/Source/Execute/Launcher.cpp
Normal file → Executable file
0
RetroFE/Source/Execute/Launcher.h
Normal file → Executable file
0
RetroFE/Source/Execute/Launcher.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/Animation.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/Animation.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/Animation.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/Animation.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/AnimationEvents.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/AnimationEvents.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/AnimationEvents.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/AnimationEvents.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/Tween.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/Tween.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/Tween.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/Tween.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/TweenSet.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/TweenSet.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/TweenSet.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/TweenSet.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/TweenTypes.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Animate/TweenTypes.h
Normal file → Executable file
6
RetroFE/Source/Graphics/Component/Battery.cpp
Normal file → Executable file
6
RetroFE/Source/Graphics/Component/Battery.cpp
Normal file → Executable file
@@ -120,6 +120,8 @@ Battery::Battery(Page &p, Configuration &config, float reloadPeriod, SDL_Color f
|
||||
if( config_.propertyExists( "fileBatCapacity" ) ){
|
||||
config_.getProperty( "fileBatCapacity", fileBatCapacity_ );
|
||||
}
|
||||
|
||||
//printf("battery init OK, fileUsbConnected_=%s, id=%d\n", fileUsbConnected_.c_str(), id_);
|
||||
}
|
||||
|
||||
Battery::~Battery()
|
||||
@@ -131,6 +133,8 @@ void Battery::freeGraphicsMemory()
|
||||
{
|
||||
Component::freeGraphicsMemory();
|
||||
|
||||
last_id_ = 0;
|
||||
|
||||
SDL_LockMutex(SDL::getMutex());
|
||||
if (texture_ != NULL)
|
||||
{
|
||||
@@ -357,7 +361,7 @@ int Battery::getBatPercent(){
|
||||
|
||||
void Battery::update(float dt)
|
||||
{
|
||||
|
||||
//printf("battery update, id=%d\n", id_);
|
||||
/** Only 1st battery component id really performs update process */
|
||||
if(id_==0){
|
||||
if (currentWaitTime_ < reloadPeriod_)
|
||||
|
||||
0
RetroFE/Source/Graphics/Component/Battery.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Battery.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Component.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Component.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Component.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Component.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Container.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Container.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Container.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Container.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Image.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Image.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Image.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Image.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ImageBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ImageBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ImageBuilder.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ImageBuilder.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableMedia.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableMedia.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableMedia.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableMedia.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableScrollingText.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableScrollingText.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableScrollingText.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableScrollingText.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableText.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableText.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableText.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ReloadableText.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ScrollingList.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ScrollingList.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ScrollingList.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/ScrollingList.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Text.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Text.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Text.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Text.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Video.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Video.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Video.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/Video.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/VideoBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/VideoBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/VideoBuilder.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/VideoBuilder.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/VideoComponent.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/VideoComponent.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/VideoComponent.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Component/VideoComponent.h
Normal file → Executable file
0
RetroFE/Source/Graphics/ComponentItemBinding.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/ComponentItemBinding.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/ComponentItemBinding.h
Normal file → Executable file
0
RetroFE/Source/Graphics/ComponentItemBinding.h
Normal file → Executable file
0
RetroFE/Source/Graphics/ComponentItemBindingBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/ComponentItemBindingBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/ComponentItemBindingBuilder.h
Normal file → Executable file
0
RetroFE/Source/Graphics/ComponentItemBindingBuilder.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Font.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Font.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Font.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Font.h
Normal file → Executable file
0
RetroFE/Source/Graphics/FontCache.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/FontCache.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/FontCache.h
Normal file → Executable file
0
RetroFE/Source/Graphics/FontCache.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Page.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Page.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/Page.h
Normal file → Executable file
0
RetroFE/Source/Graphics/Page.h
Normal file → Executable file
0
RetroFE/Source/Graphics/PageBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/PageBuilder.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/PageBuilder.h
Normal file → Executable file
0
RetroFE/Source/Graphics/PageBuilder.h
Normal file → Executable file
0
RetroFE/Source/Graphics/ViewInfo.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/ViewInfo.cpp
Normal file → Executable file
0
RetroFE/Source/Graphics/ViewInfo.h
Normal file → Executable file
0
RetroFE/Source/Graphics/ViewInfo.h
Normal file → Executable file
0
RetroFE/Source/Main.cpp
Normal file → Executable file
0
RetroFE/Source/Main.cpp
Normal file → Executable file
0
RetroFE/Source/Menu/Menu.cpp
Normal file → Executable file
0
RetroFE/Source/Menu/Menu.cpp
Normal file → Executable file
0
RetroFE/Source/Menu/Menu.h
Normal file → Executable file
0
RetroFE/Source/Menu/Menu.h
Normal file → Executable file
0
RetroFE/Source/Menu/MenuMode.cpp
Normal file → Executable file
0
RetroFE/Source/Menu/MenuMode.cpp
Normal file → Executable file
0
RetroFE/Source/Menu/MenuMode.h
Normal file → Executable file
0
RetroFE/Source/Menu/MenuMode.h
Normal file → Executable file
0
RetroFE/Source/RetroFE.cpp
Normal file → Executable file
0
RetroFE/Source/RetroFE.cpp
Normal file → Executable file
0
RetroFE/Source/RetroFE.h
Normal file → Executable file
0
RetroFE/Source/RetroFE.h
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user