mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 21:54:15 +01:00
068d45dbf6
emulator coverflow, for example in the fceugx.ini set "coverFolder=fceugx", then wiiflow will look into "wiiflow/boxcovers/fceugx" for covers instead of "wiiflow/boxcovers", same goes for "wiiflow/covers"
51 lines
1.0 KiB
C++
51 lines
1.0 KiB
C++
|
|
//============================================================================
|
|
// Name : plugin.hpp
|
|
// Copyright : 2012 FIX94
|
|
//============================================================================
|
|
|
|
#ifndef _PLUGIN_HPP_
|
|
#define _PLUGIN_HPP_
|
|
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
#include "config/config.hpp"
|
|
#include "safe_vector.hpp"
|
|
#include "loader/disc.h"
|
|
|
|
using namespace std;
|
|
|
|
struct PluginOptions
|
|
{
|
|
u8 *BannerSound;
|
|
u32 BannerSoundSize;
|
|
u32 magicWord;
|
|
string DolName;
|
|
string coverFolder;
|
|
u32 caseColor;
|
|
bool ReturnLoader;
|
|
};
|
|
|
|
class Plugin
|
|
{
|
|
public:
|
|
bool AddPlugin(Config &plugin);
|
|
u8* GetBannerSound(u32 magic);
|
|
u32 GetBannerSoundSize();
|
|
char* GetDolName(u32 magic);
|
|
char* GetCoverFolderName(u32 magic);
|
|
bool UseReturnLoader(u32 magic);
|
|
void init(string);
|
|
void Cleanup();
|
|
void EndAdd();
|
|
safe_vector<dir_discHdr> ParseScummvmINI(Config &ini, string Device);
|
|
private:
|
|
safe_vector<PluginOptions> Plugins;
|
|
u8 banner_pos;
|
|
string pluginsDir;
|
|
bool adding;
|
|
};
|
|
#endif
|