This is a minor patch fix for Touhou: Shining Shooting Star that allows it to be played under wine on linux.
This patch fixes the following error: System.Management.ManagementException: Error code: 0x80041002
- Added overload for Dpi.GetDpi() Function to accept custom Dpi value.
- Added new configuration entries under Mode (DpiX, DpiY)
- Added a new windowSize value (3 = 1920x1080) (Not confirmed to work. Can be changed in the config.)
- Download the zip file in
Releases
- Extract the .exe file in your in your touhou installation folder.
- Open the
Setting.INI
file and add the following entries UnderMode
DpiX={Your screen's Dpi X value}
DpiY={Your screen's Dpi Y value}
The easiest way to get the DPI values is to use the command xdpyinfo
or you can calculate it manually. You can learn how to do that here.
- Open your terminal
- Type
xdpyinfo | grep -B 2 resolution
- The resolution is your screen DPI (DpiX x DpiY dots per inch)
This patch was only tested in vanilla wine (64 bit), this might not work on other custom wine builds like lutris or proton.