mirror of https://github.com/snes9xgit/snes9x.git
Clean up unused headers.
This commit is contained in:
parent
170a6aa1a4
commit
f6a46f5831
|
@ -8,9 +8,7 @@
|
|||
#include <cstdio>
|
||||
#include <vector>
|
||||
#include <cctype>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <filesystem>
|
||||
#include <future>
|
||||
#include "external/SPIRV-Cross/spirv_cross.hpp"
|
||||
#include "external/SPIRV-Cross/spirv_glsl.hpp"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include "slang_helpers.hpp"
|
||||
#include <fstream>
|
||||
#include <cstring>
|
||||
#include <charconv>
|
||||
|
||||
static std::string trim_comments(std::string str)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#include "vulkan_slang_pipeline.hpp"
|
||||
#include "slang_helpers.hpp"
|
||||
#include <unordered_map>
|
||||
|
||||
namespace Vulkan
|
||||
{
|
||||
|
|
|
@ -4,37 +4,31 @@
|
|||
For further information, consult the LICENSE file in the root directory.
|
||||
\*****************************************************************************/
|
||||
|
||||
#ifdef DEBUGGER
|
||||
#include "debug.h"
|
||||
#include "missing.h"
|
||||
#endif
|
||||
|
||||
#include "port.h"
|
||||
#include "filter_epx_unsafe.h"
|
||||
|
||||
#undef AVERAGE_565
|
||||
#define AVERAGE_565(el0, el1) (((el0) & (el1)) + ((((el0) ^ (el1)) & 0xF7DE) >> 1))
|
||||
|
||||
/* Allows vertical overlap. We need this to avoid seams when threading */
|
||||
void EPX_16_unsafe (uint8 *srcPtr,
|
||||
void EPX_16_unsafe (uint8_t *srcPtr,
|
||||
int srcPitch,
|
||||
uint8 *dstPtr,
|
||||
uint8_t *dstPtr,
|
||||
int dstPitch,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
uint16 colorX, colorA, colorB, colorC, colorD;
|
||||
uint16 *sP, *uP, *lP;
|
||||
uint32 *dP1, *dP2;
|
||||
uint16_t colorX, colorA, colorB, colorC, colorD;
|
||||
uint16_t *sP, *uP, *lP;
|
||||
uint32_t *dP1, *dP2;
|
||||
int w;
|
||||
|
||||
for (; height; height--)
|
||||
{
|
||||
sP = (uint16 *) srcPtr;
|
||||
uP = (uint16 *) (srcPtr - srcPitch);
|
||||
lP = (uint16 *) (srcPtr + srcPitch);
|
||||
dP1 = (uint32 *) dstPtr;
|
||||
dP2 = (uint32 *) (dstPtr + dstPitch);
|
||||
sP = (uint16_t *) srcPtr;
|
||||
uP = (uint16_t *) (srcPtr - srcPitch);
|
||||
lP = (uint16_t *) (srcPtr + srcPitch);
|
||||
dP1 = (uint32_t *) dstPtr;
|
||||
dP2 = (uint32_t *) (dstPtr + dstPitch);
|
||||
|
||||
// left edge
|
||||
|
||||
|
@ -112,25 +106,25 @@ void EPX_16_unsafe (uint8 *srcPtr,
|
|||
}
|
||||
|
||||
/* Blends with edge pixel instead of just using it directly. */
|
||||
void EPX_16_smooth_unsafe (uint8 *srcPtr,
|
||||
void EPX_16_smooth_unsafe (uint8_t *srcPtr,
|
||||
int srcPitch,
|
||||
uint8 *dstPtr,
|
||||
uint8_t *dstPtr,
|
||||
int dstPitch,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
uint16 colorX, colorA, colorB, colorC, colorD;
|
||||
uint16 *sP, *uP, *lP;
|
||||
uint32 *dP1, *dP2;
|
||||
uint16_t colorX, colorA, colorB, colorC, colorD;
|
||||
uint16_t *sP, *uP, *lP;
|
||||
uint32_t *dP1, *dP2;
|
||||
int w;
|
||||
|
||||
for (; height; height--)
|
||||
{
|
||||
sP = (uint16 *) srcPtr;
|
||||
uP = (uint16 *) (srcPtr - srcPitch);
|
||||
lP = (uint16 *) (srcPtr + srcPitch);
|
||||
dP1 = (uint32 *) dstPtr;
|
||||
dP2 = (uint32 *) (dstPtr + dstPitch);
|
||||
sP = (uint16_t *) srcPtr;
|
||||
uP = (uint16_t *) (srcPtr - srcPitch);
|
||||
lP = (uint16_t *) (srcPtr + srcPitch);
|
||||
dP1 = (uint32_t *) dstPtr;
|
||||
dP2 = (uint32_t *) (dstPtr + dstPitch);
|
||||
|
||||
// left edge
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
#ifndef __FILTER_EPX_UNSAFE_H
|
||||
#define __FILTER_EPX_UNSAFE_H
|
||||
|
||||
void EPX_16_unsafe (uint8 *, int, uint8 *, int, int, int);
|
||||
void EPX_16_smooth_unsafe (uint8 *, int, uint8 *, int, int, int);
|
||||
#include <cstdint>
|
||||
void EPX_16_unsafe(uint8_t *, int, uint8_t *, int, int, int);
|
||||
void EPX_16_smooth_unsafe(uint8_t *, int, uint8_t *, int, int, int);
|
||||
|
||||
#endif /* __FILTER_EPX_UNSAFE_H */
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
\*****************************************************************************/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gtk_builder_window.h"
|
||||
|
||||
extern const unsigned char snes9x_ui[];
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include "gtk_s9x.h"
|
||||
#include "gtk_cheat.h"
|
||||
#include "cheats.h"
|
||||
#include "display.h"
|
||||
|
||||
enum {
|
||||
COLUMN_ENABLED = 0,
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
For further information, consult the LICENSE file in the root directory.
|
||||
\*****************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <filesystem>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
\*****************************************************************************/
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <filesystem>
|
||||
|
||||
#include "SDL_joystick.h"
|
||||
#include "fscompat.h"
|
||||
|
|
|
@ -13,13 +13,8 @@
|
|||
#include "gtk_display_driver_gtk.h"
|
||||
|
||||
#include "snes9x.h"
|
||||
#include "memmap.h"
|
||||
#include "cpuexec.h"
|
||||
#include "ppu.h"
|
||||
#include "gfx.h"
|
||||
#include "netplay.h"
|
||||
#include "controls.h"
|
||||
#include "movie.h"
|
||||
|
||||
#if defined(USE_XV) && defined(GDK_WINDOWING_X11)
|
||||
#include "gtk_display_driver_xv.h"
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#ifndef __GTK_DISPLAY_DRIVER_GTK_H
|
||||
#define __GTK_DISPLAY_DRIVER_GTK_H
|
||||
|
||||
#include "gtk_s9x.h"
|
||||
#include "gtk_display_driver.h"
|
||||
|
||||
class S9xGTKDisplayDriver : public S9xDisplayDriver
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include "gtk_display_driver_vulkan.h"
|
||||
#include "gtk_shader_parameters.h"
|
||||
#include "snes9x.h"
|
||||
#include "gfx.h"
|
||||
#include "fmt/format.h"
|
||||
|
||||
#include "snes9x_imgui.h"
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
\*****************************************************************************/
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include "fmt/format.h"
|
||||
#include "snes9x.h"
|
||||
#include "gfx.h"
|
||||
#include "display.h"
|
||||
|
||||
#define SAME_AS_GAME gettext("Same location as current game")
|
||||
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
#include "ppu.h"
|
||||
#include "fmt/format.h"
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
static void S9xThrottle(int);
|
||||
static void S9xCheckPointerTimer();
|
||||
static bool S9xIdleFunc();
|
||||
|
@ -383,35 +381,35 @@ void S9xMessage(int type, int number, const char *message)
|
|||
case S9X_TRACE:
|
||||
case S9X_DEBUG:
|
||||
{
|
||||
g_debug(message);
|
||||
g_debug("%s", message);
|
||||
break;
|
||||
}
|
||||
case S9X_WARNING:
|
||||
{
|
||||
g_warning(message);
|
||||
g_warning("%s", message);
|
||||
break;
|
||||
}
|
||||
case S9X_INFO:
|
||||
{
|
||||
g_info(message);
|
||||
g_message(message);
|
||||
g_info("%s", message);
|
||||
g_message("%s", message);
|
||||
break;
|
||||
}
|
||||
case S9X_ERROR:
|
||||
{
|
||||
// GLib’s g_critical() does not terminate the process
|
||||
g_critical(message);
|
||||
g_critical("%s", message);
|
||||
break;
|
||||
}
|
||||
case S9X_FATAL_ERROR:
|
||||
{
|
||||
// GLib’s g_error() terminates the process
|
||||
g_error(message);
|
||||
g_error("%s", message);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
g_message(message);
|
||||
g_message("%s", message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
For further information, consult the LICENSE file in the root directory.
|
||||
\*****************************************************************************/
|
||||
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "gtk_s9x.h"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include "EmuApplication.hpp"
|
||||
#include "EmuConfig.hpp"
|
||||
#include "fscompat.h"
|
||||
#include <tuple>
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QDir>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "EmuApplication.hpp"
|
||||
#include "EmuConfig.hpp"
|
||||
#include "SDL_gamecontroller.h"
|
||||
#include <optional>
|
||||
#include <QtEvents>
|
||||
#include <QTimer>
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include "SDL_joystick.h"
|
||||
#include <QString>
|
||||
#include <QKeySequence>
|
||||
#include <sstream>
|
||||
|
||||
// Hash format:
|
||||
//
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include "FoldersPanel.hpp"
|
||||
#include "EmuBinding.hpp"
|
||||
#include "EmuConfig.hpp"
|
||||
#include <QSpinBox>
|
||||
#include <QFileDialog>
|
||||
|
|
Loading…
Reference in New Issue