Skip to content

Instantly share code, notes, and snippets.

@emoose
emoose / UpdateDLSS.psm1
Last active April 8, 2024 17:39
PowerShell script/module that allows globally updating DLSS for all games
# Global DLSS update script by emoose - https://gist.github.com/emoose/11271bbb3b42fb3b1b0e1c83eef47c05
# This allows setting a single global DLSS DLL for games to use
# If the global version is newer than the one included with game, it should get loaded automatically
# (more info at https://forums.guru3d.com/threads/.439761/page-143#post-6221767)
#
# Two ways of using this script:
# - save script as UpdateDLSS.ps1 then run it through powershell like "powershell .\UpdateDLSS.ps1"
# (or "powershell .\UpdateDLSS.ps1 -DllPath C:\DLLs\nvngx_dlss.dll")
#
# - save script into powershell modules folder, so you can use it from any location
@emoose
emoose / ida python idc analysis pause.txt
Last active April 9, 2023 14:16
IDA stop/pause analysis, hopefully google might pick this up...
idc: Analysis(0)
idapython: idc.set_flag(INF_GENFLAGS, INFFL_AUTO, 0)
@emoose
emoose / xam_table_1838.inc
Created September 6, 2022 21:00
Xenia xam_table for XEX1 / 1838
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
// This is a partial file designed to be included by other files when
@emoose
emoose / README.md
Last active January 3, 2022 21:56
Xenoblade Chronicles 2 1080p/1440p resolution patch for Yuzu

E: ah darn, seems this does cause some minor issues with certain things in game (namely map & cutscene effects), thanks to theboy181 for letting me know, who has tried making a res patch for it in the past, sadly seems it would take a lot of work to fix all the shaders etc - too bad, since as the comparison below shows, letting game scale itself does fix a lot of graphics issues :(

If you aren't bothered by those minor issues this still might be useful for some people though, who want the game to look its best, so I've left it up here.


So yuzu's resolution scaler is pretty awesome, but sadly XC2 has some issues with it causing weird lines to appear pretty often, decided to try looking into the game exe to see if a patch could be made to change resolution there instead, luckily wasn't too hard to find where it was setup, and with that changed the game seems to scale up fine without any weird artifacts :)

Comparison between yuzu 2x scale (left side) & patched game: https:

@emoose
emoose / dllmain.cpp
Last active February 19, 2022 23:30
Bloodstained RotN dialogue/menu resolution fix
// This code requires some files from my Arise-SDK project:
// https://github.com/emoose/Arise-SDK/tree/b73c7ea9fceea2c494cbb8ebc74c6b3d1d35cbf6
#include "pch.h"
#include <cstdio>
#define SDK_VERSION "0.1.25"
HMODULE DllHModule;
HMODULE GameHModule;
@emoose
emoose / NVNiTypes.h
Last active October 15, 2021 18:59
New Vegas structs
#pragma once
#include <nvse/NiNodes.h>
// Most definitions here taken from JIP LN NVSE:
// https://github.com/jazzisparis/JIP-LN-NVSE/blob/master/internal/netimmerse.h
// Though most lighting-related structs have had some extra things mapped out here
template <typename T_Data> struct DListNode
{
DListNode* next;
@emoose
emoose / main.cpp
Last active July 9, 2022 15:42
Improved Lighting Shaders Plugin for FNV (https://www.nexusmods.com/newvegas/mods/69833)
// Improved Lighting Shaders for FNV, 1.5beta4, by emoose (stoker25)
// Released under MIT License
#include "nvse/PluginAPI.h"
#include "nvse/SafeWrite.h"
#include "nvse/GameObjects.h"
#include "nvse/ParamInfos.h"
#include "NiTypes.h"
#include <string>
@emoose
emoose / BSPver.cs
Last active March 28, 2017 14:39
BSPver 0.1
using System;
using System.Collections.Generic;
using System.IO;
namespace BSPver
{
class Program
{
struct BSPVersion
{