Temp fix so gdb works on out of tree wxvbam builds
filterMap was causing wxvbam to crash when run with gdb in any folder but the top level This needs a better fix, especially since filterMap is the cornerstone of my filters redesign/integration.
This commit is contained in:
parent
fedaa24799
commit
5e6cd24322
|
@ -8,7 +8,7 @@ namedfilter InsertFilter(std::string filterName, FilterFunc thirtyTwoBitFilter,
|
||||||
}
|
}
|
||||||
|
|
||||||
//Actually make the fitlermap (since C++11 doesn't work right now)
|
//Actually make the fitlermap (since C++11 doesn't work right now)
|
||||||
std::map<std::string,filterpair> makeFilterMap()
|
const std::map<std::string,filterpair> makeFilterMap()
|
||||||
{
|
{
|
||||||
InsertFilter("Pixelate",Pixelate32,Pixelate);
|
InsertFilter("Pixelate",Pixelate32,Pixelate);
|
||||||
InsertFilter("Scanlines",Scanlines32,Scanlines);
|
InsertFilter("Scanlines",Scanlines32,Scanlines);
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "interframe.hpp"
|
#include "interframe.hpp"
|
||||||
#include "../System.h"
|
#include "../common/Types.h"
|
||||||
|
|
||||||
//sdl
|
//sdl
|
||||||
// Function pointer type for a filter function
|
// Function pointer type for a filter function
|
||||||
|
@ -16,10 +16,10 @@ typedef std::pair<FilterFunc,FilterFunc> filterpair;
|
||||||
typedef std::pair<std::string,filterpair> namedfilter;
|
typedef std::pair<std::string,filterpair> namedfilter;
|
||||||
|
|
||||||
//Function to make the filterMap
|
//Function to make the filterMap
|
||||||
std::map<std::string,filterpair> makeFilterMap();
|
const std::map<std::string,filterpair> makeFilterMap();
|
||||||
|
|
||||||
//A named map of all the filters
|
//A named map of all the filters
|
||||||
static const std::map<std::string,filterpair> filterMap = makeFilterMap();
|
// static const std::map<std::string,filterpair> filterMap = makeFilterMap();
|
||||||
|
|
||||||
//These are the available filters
|
//These are the available filters
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#ifndef INTERFRAME_HPP
|
#ifndef INTERFRAME_HPP
|
||||||
#define INTERFRAME_HPP
|
#define INTERFRAME_HPP
|
||||||
|
|
||||||
#include "../System.h"
|
#include "../common/Types.h"
|
||||||
|
|
||||||
extern int RGB_LOW_BITS_MASK;
|
extern int RGB_LOW_BITS_MASK;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue