Skip to content

Commit

Permalink
Merge pull request #24 from darkxex/master
Browse files Browse the repository at this point in the history
OC with ShaderMania
  • Loading branch information
darkxex authored Feb 8, 2022
2 parents 4acd8dc + b264880 commit d45ba25
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/UI/playerWindows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#include "imgui.h"
#include "utils.h"
#include "imgui_internal.h"
#ifdef NXMP_SWITCH
#include "SwitchSys.h"
#endif

#ifdef NXMP_SWITCH
using namespace c2d;
Expand Down
12 changes: 12 additions & 0 deletions source/libmpv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
#include <sstream>
#include "libmpv.h"
#include "utils.h"
#ifdef NXMP_SWITCH
#include "SwitchSys.h"
#endif

#ifdef NXMP_SWITCH
using namespace c2d;
#endif

bool codecSort(const decoderlist_struct &a, const decoderlist_struct &b) {

Expand Down Expand Up @@ -677,9 +683,15 @@ bool libMpv::getAudioNormalize(){
void libMpv::setShader(std::string _filename){
std::string command = std::string("no-osd change-list glsl-shaders set ") + _filename;
mpv_command_string(handle,command.c_str());
#ifdef NXMP_SWITCH
SwitchSys::maxClock();
#endif
}
void libMpv::clearShader(){
mpv_command_string(handle,"no-osd change-list glsl-shaders clr \"\"");
#ifdef NXMP_SWITCH
SwitchSys::defaultClock(SwitchSys::stock_cpu_clock, SwitchSys::stock_gpu_clock, SwitchSys::stock_emc_clock);
#endif
}

void libMpv::resetFileInfo(){
Expand Down

0 comments on commit d45ba25

Please sign in to comment.