mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
53a06c0f8d
- fixed setting scummvm cover's color via plugin - now scummvm list is cached like all the other lists. but still does not use custom titles or titles from the plugins data xml. - fixed the random bug where covers sometimes were not cached. - fixed minor memory leaks via gametdb.cpp - fixed an issue with using custom backgrounds via source menu. - added the ability to move to next and previous game while on game info menu by using the controllers '+' and '-' buttons - added the ability to launch a game directly from the game info menu by pressing 'A' on the controller. - added the abilty to launch super smash bros melee via nintendont slippi. manually edit wiiflow_lite.ini by adding use_slippi=yes under [GAMECUBE]. google nintendont slippi and slippi project to learn about it. - upped to version 5.4.1
60 lines
2.2 KiB
C++
60 lines
2.2 KiB
C++
/****************************************************************************
|
|
* Copyright (C) 2012 FIX94
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
****************************************************************************/
|
|
#ifndef _LISTGENERATOR_HPP_
|
|
#define _LISTGENERATOR_HPP_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <stdio.h>
|
|
|
|
#include "defines.h"
|
|
#include "types.h"
|
|
#include "config/config.hpp"
|
|
#include "loader/wbfs.h"
|
|
#include "loader/disc.h"
|
|
#include "gui/GameTDB.hpp"
|
|
#include "plugin/plugin.hpp"
|
|
|
|
using namespace std;
|
|
|
|
class ListGenerator : public vector<dir_discHdr>
|
|
{
|
|
public:
|
|
void createSFList(u8 maxBtns, Config &m_sourceMenuCfg, const string& sourceDir);
|
|
void Init(const char *settingsDir, const char *Language, const char *plgnsDataDir);
|
|
void Clear();
|
|
void ParseScummvmINI(Config &ini, const char *Device, const char *datadir, const char *platform, const string& DBName, bool UpdateCache);
|
|
void CreateRomList(Config &platform_cfg, const string& romsDir, const vector<string>& FileTypes, const string& DBName, bool UpdateCache);
|
|
void CreateList(u32 Flow, const string& Path, const vector<string>& FileTypes, const string& DBName, bool UpdateCache);
|
|
u32 Color;
|
|
u32 Magic;
|
|
bool usePluginDBTitles;
|
|
private:
|
|
void OpenConfigs();
|
|
void CloseConfigs();
|
|
string gameTDB_Path;
|
|
string CustomTitlesPath;
|
|
string gameTDB_Language;
|
|
};
|
|
|
|
typedef void (*FileAdder)(char *Path);
|
|
void GetFiles(const char *Path, const vector<string>& FileTypes,
|
|
FileAdder AddFile, bool CompareFolders, u32 max_depth = 2, u32 depth = 1);
|
|
extern ListGenerator m_cacheList;
|
|
|
|
#endif /*_LISTGENERATOR_HPP_*/
|