mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-06-06 10:56:48 +02:00
Fixing compiler warnings for linux
This commit is contained in:
@@ -32,8 +32,8 @@ public:
|
|||||||
CollectionInfo *BuildCollection(std::string collectionName);
|
CollectionInfo *BuildCollection(std::string collectionName);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Configuration &Conf;
|
||||||
MetadataDatabase &MetaDB;
|
MetadataDatabase &MetaDB;
|
||||||
bool ImportBasicList(CollectionInfo *info, std::string file, std::map<std::string, Item *> &list);
|
bool ImportBasicList(CollectionInfo *info, std::string file, std::map<std::string, Item *> &list);
|
||||||
bool ImportDirectory(CollectionInfo *info);
|
bool ImportDirectory(CollectionInfo *info);
|
||||||
Configuration &Conf;
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
sqlite3 *Handle;
|
|
||||||
std::string Path;
|
std::string Path;
|
||||||
|
sqlite3 *Handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -33,11 +33,12 @@ ReloadableMedia::ReloadableMedia(Configuration &config, std::string type, bool i
|
|||||||
, LoadedComponent(NULL)
|
, LoadedComponent(NULL)
|
||||||
, ReloadRequested(false)
|
, ReloadRequested(false)
|
||||||
, FirstLoad(true)
|
, FirstLoad(true)
|
||||||
, Type(type)
|
, VideoInst(NULL)
|
||||||
, IsVideo(isVideo)
|
, IsVideo(isVideo)
|
||||||
, FontInst(font)
|
, FontInst(font)
|
||||||
, FontColor(fontColor)
|
, FontColor(fontColor)
|
||||||
, TextFallback(false)
|
, TextFallback(false)
|
||||||
|
, Type(type)
|
||||||
, ScaleX(scaleX)
|
, ScaleX(scaleX)
|
||||||
, ScaleY(scaleY)
|
, ScaleY(scaleY)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ ScrollingList::ScrollingList(Configuration &c,
|
|||||||
, ScrollPoints(NULL)
|
, ScrollPoints(NULL)
|
||||||
, TweenPoints(NULL)
|
, TweenPoints(NULL)
|
||||||
, TweenEnterTime(0)
|
, TweenEnterTime(0)
|
||||||
|
, Focus(false)
|
||||||
, FirstSpriteIndex(0)
|
, FirstSpriteIndex(0)
|
||||||
, SelectedSpriteListIndex(0)
|
, SelectedSpriteListIndex(0)
|
||||||
, ScrollStopRequested(true)
|
, ScrollStopRequested(true)
|
||||||
@@ -66,7 +67,6 @@ ScrollingList::ScrollingList(Configuration &c,
|
|||||||
, FontColor(fontColor)
|
, FontColor(fontColor)
|
||||||
, LayoutKey(layoutKey)
|
, LayoutKey(layoutKey)
|
||||||
, ImageType(imageType)
|
, ImageType(imageType)
|
||||||
, Focus(false)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,6 +74,7 @@ ScrollingList::ScrollingList(const ScrollingList ©)
|
|||||||
: Component(copy)
|
: Component(copy)
|
||||||
, SpriteList(NULL)
|
, SpriteList(NULL)
|
||||||
, TweenEnterTime(0)
|
, TweenEnterTime(0)
|
||||||
|
, Focus(false)
|
||||||
, FirstSpriteIndex(0)
|
, FirstSpriteIndex(0)
|
||||||
, SelectedSpriteListIndex(0)
|
, SelectedSpriteListIndex(0)
|
||||||
, ScrollStopRequested(true)
|
, ScrollStopRequested(true)
|
||||||
@@ -91,7 +92,6 @@ ScrollingList::ScrollingList(const ScrollingList ©)
|
|||||||
, FontColor(copy.FontColor)
|
, FontColor(copy.FontColor)
|
||||||
, LayoutKey(copy.LayoutKey)
|
, LayoutKey(copy.LayoutKey)
|
||||||
, ImageType(copy.ImageType)
|
, ImageType(copy.ImageType)
|
||||||
, Focus(false)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
ScrollPoints = NULL;
|
ScrollPoints = NULL;
|
||||||
@@ -467,7 +467,6 @@ void ScrollingList::TriggerMenuExitEvent()
|
|||||||
|
|
||||||
void ScrollingList::Update(float dt)
|
void ScrollingList::Update(float dt)
|
||||||
{
|
{
|
||||||
bool initializePoints = false;
|
|
||||||
Component::Update(dt);
|
Component::Update(dt);
|
||||||
|
|
||||||
if(!ScrollPoints)
|
if(!ScrollPoints)
|
||||||
@@ -512,7 +511,6 @@ void ScrollingList::Update(float dt)
|
|||||||
// check to see if requested to scroll
|
// check to see if requested to scroll
|
||||||
if(RequestedScrollDirection != ScrollDirectionIdle)
|
if(RequestedScrollDirection != ScrollDirectionIdle)
|
||||||
{
|
{
|
||||||
initializePoints = true;
|
|
||||||
CurrentScrollState = ScrollStateActive;
|
CurrentScrollState = ScrollStateActive;
|
||||||
CurrentScrollDirection = RequestedScrollDirection;
|
CurrentScrollDirection = RequestedScrollDirection;
|
||||||
scrollRequested = true;
|
scrollRequested = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user