From 0390fa230e54f7ed4cc088a15c22faa6c5e1f2cc Mon Sep 17 00:00:00 2001 From: Rupert Carmichael <5050061-carmiker@users.noreply.gitlab.com> Date: Sun, 16 Jun 2024 10:37:48 -0400 Subject: [PATCH] libretro: Proper line endings in program.h --- bsnes/target-libretro/program.h | 168 ++++++++++++++++---------------- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/bsnes/target-libretro/program.h b/bsnes/target-libretro/program.h index 32a9d13a..fdf4f542 100644 --- a/bsnes/target-libretro/program.h +++ b/bsnes/target-libretro/program.h @@ -1,84 +1,84 @@ -#pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resources.hpp" - -struct Program : Emulator::Platform -{ - Program(Emulator::Interface * emu); - ~Program(); - - auto open(uint id, string name, vfs::file::mode mode, bool required) -> shared_pointer override; - auto load(uint id, string name, string type, vector options = {}) -> Emulator::Platform::Load override; - auto videoFrame(const uint16* data, uint pitch, uint width, uint height, uint scale) -> void override; - auto audioFrame(const double* samples, uint channels) -> void override; - auto inputPoll(uint port, uint device, uint input) -> int16 override; - auto inputRumble(uint port, uint device, uint input, bool enable) -> void override; - - auto load() -> void; - auto loadFile(string location) -> vector; - auto loadSuperFamicom(string location) -> bool; - auto loadGameBoy(string location) -> bool; - auto loadBSMemory(string location) -> bool; - - auto save() -> void; - - auto openRomSuperFamicom(string name, vfs::file::mode mode) -> shared_pointer; - auto openRomGameBoy(string name, vfs::file::mode mode) -> shared_pointer; - auto openRomBSMemory(string name, vfs::file::mode mode) -> shared_pointer; - - auto hackPatchMemory(vector& data) -> void; - auto updateVideoPalette() -> void; - - string base_name; - - bool overscan{false}; - -public: - struct Game { - explicit operator bool() const { return (bool)location; } - - string option; - string location; - string manifest; - Markup::Node document; - boolean patched; - boolean verified; - }; - - struct SuperFamicom : Game { - string title; - string region; - vector program; - vector data; - vector expansion; - vector firmware; - } superFamicom; - - struct GameBoy : Game { - vector program; - } gameBoy; - - struct BSMemory : Game { - vector program; - } bsMemory; - - uint32_t palette[32768]; - uint32_t paletteDimmed[32768]; - uint32_t videoOut[2304*2160]; - - Filter::Render filterRender; - Filter::Size filterSize; - - double luminance{1.0}; - double saturation{1.0}; - double gamma{1.5}; -}; +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "resources.hpp" + +struct Program : Emulator::Platform +{ + Program(Emulator::Interface * emu); + ~Program(); + + auto open(uint id, string name, vfs::file::mode mode, bool required) -> shared_pointer override; + auto load(uint id, string name, string type, vector options = {}) -> Emulator::Platform::Load override; + auto videoFrame(const uint16* data, uint pitch, uint width, uint height, uint scale) -> void override; + auto audioFrame(const double* samples, uint channels) -> void override; + auto inputPoll(uint port, uint device, uint input) -> int16 override; + auto inputRumble(uint port, uint device, uint input, bool enable) -> void override; + + auto load() -> void; + auto loadFile(string location) -> vector; + auto loadSuperFamicom(string location) -> bool; + auto loadGameBoy(string location) -> bool; + auto loadBSMemory(string location) -> bool; + + auto save() -> void; + + auto openRomSuperFamicom(string name, vfs::file::mode mode) -> shared_pointer; + auto openRomGameBoy(string name, vfs::file::mode mode) -> shared_pointer; + auto openRomBSMemory(string name, vfs::file::mode mode) -> shared_pointer; + + auto hackPatchMemory(vector& data) -> void; + auto updateVideoPalette() -> void; + + string base_name; + + bool overscan{false}; + +public: + struct Game { + explicit operator bool() const { return (bool)location; } + + string option; + string location; + string manifest; + Markup::Node document; + boolean patched; + boolean verified; + }; + + struct SuperFamicom : Game { + string title; + string region; + vector program; + vector data; + vector expansion; + vector firmware; + } superFamicom; + + struct GameBoy : Game { + vector program; + } gameBoy; + + struct BSMemory : Game { + vector program; + } bsMemory; + + uint32_t palette[32768]; + uint32_t paletteDimmed[32768]; + uint32_t videoOut[2304*2160]; + + Filter::Render filterRender; + Filter::Size filterSize; + + double luminance{1.0}; + double saturation{1.0}; + double gamma{1.5}; +};