Clean up unused headers.

This commit is contained in:
BearOso 2024-10-22 14:58:50 -05:00
parent 170a6aa1a4
commit f6a46f5831
20 changed files with 30 additions and 61 deletions

View File

@ -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"

View File

@ -2,7 +2,6 @@
#include "slang_helpers.hpp"
#include <fstream>
#include <cstring>
#include <charconv>
static std::string trim_comments(std::string str)
{

View File

@ -1,6 +1,4 @@
#include "vulkan_slang_pipeline.hpp"
#include "slang_helpers.hpp"
#include <unordered_map>
namespace Vulkan
{

View File

@ -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

View File

@ -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 */

View File

@ -5,7 +5,6 @@
\*****************************************************************************/
#include <stdlib.h>
#include <string.h>
#include "gtk_builder_window.h"
extern const unsigned char snes9x_ui[];

View File

@ -7,7 +7,6 @@
#include "gtk_s9x.h"
#include "gtk_cheat.h"
#include "cheats.h"
#include "display.h"
enum {
COLUMN_ENABLED = 0,

View File

@ -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>

View File

@ -5,7 +5,6 @@
\*****************************************************************************/
#include <fcntl.h>
#include <filesystem>
#include "SDL_joystick.h"
#include "fscompat.h"

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -5,7 +5,6 @@
\*****************************************************************************/
#include <sys/stat.h>
#include <errno.h>
#include <string>
#include <filesystem>

View File

@ -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")

View File

@ -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:
{
// GLibs g_critical() does not terminate the process
g_critical(message);
g_critical("%s", message);
break;
}
case S9X_FATAL_ERROR:
{
// GLibs g_error() terminates the process
g_error(message);
g_error("%s", message);
break;
}
default:
{
g_message(message);
g_message("%s", message);
}
}
}

View File

@ -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"

View File

@ -2,7 +2,6 @@
#include "EmuApplication.hpp"
#include "EmuConfig.hpp"
#include "fscompat.h"
#include <tuple>
#include <QMessageBox>
#include <QDir>

View File

@ -3,7 +3,6 @@
#include "EmuApplication.hpp"
#include "EmuConfig.hpp"
#include "SDL_gamecontroller.h"
#include <optional>
#include <QtEvents>
#include <QTimer>

View File

@ -2,7 +2,6 @@
#include "SDL_joystick.h"
#include <QString>
#include <QKeySequence>
#include <sstream>
// Hash format:
//

View File

@ -1,5 +1,4 @@
#include "FoldersPanel.hpp"
#include "EmuBinding.hpp"
#include "EmuConfig.hpp"
#include <QSpinBox>
#include <QFileDialog>