mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 15:14:18 +01:00
d5b16e66da
Note: The All Plugins source option has been removed and choosing either nand button on mutiple selection loads the nand you last used (real or emu) The categories_v4.ini had to also be slightly modified to work with this. It will now contain a single 'GENERAL' section which contains the number of categories and the name of each. A suggestion, I would use the first 20 for bostonbc's genres and ratings and the next ten or so for movie types(mplayerce) and the next ten or so for misc. When using more than one source the partition selection and emu nand settings in config are disabled for now. The source button on the main screen still works the same including the d-pad option. Most of the credit for this goes to Fix94 for setting wiiflow up for this a long time ago. I just took the 80% of work he'd already did and finished by getting it to work with the source menu. Note there may be some issues.
54 lines
1.7 KiB
C++
54 lines
1.7 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 "types.h"
|
|
#include "config/config.hpp"
|
|
#include "loader/wbfs.h"
|
|
#include "loader/disc.h"
|
|
#include "gui/GameTDB.hpp"
|
|
|
|
using namespace std;
|
|
|
|
class ListGenerator : public vector<dir_discHdr>
|
|
{
|
|
public:
|
|
void Init(const char *settingsDir, const char *Language);
|
|
void CreateList(u32 Flow, u32 Device, const string& Path, const vector<string>& FileTypes,
|
|
const string& DBName, bool UpdateCache);
|
|
u32 Color;
|
|
u32 Magic;
|
|
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_gameList;
|
|
|
|
#endif /*_LISTGENERATOR_HPP_*/
|