Eclipse Community
https://board.eclipse.cx/

Kitsune Tails Next Fest Demo on Windows 7
https://board.eclipse.cx/viewtopic.php?t=699
Page 1 of 1
Author:  Jevil7452 [ 08 Jun 2024, 19:14 ]
Post subject:  Kitsune Tails Next Fest Demo on Windows 7

Steam page for game:
The demo can be downloaded for free
It claims compatibility with Windows 7 on the store page:
[ img ]
...but in reality calls a function that isn't in Windows 7's user32.dll:
[ img ]
[ img ]
Just using VxKex doesn't work (maybe it doesn't work for .NET apps, as it didn't say anything about kxuser, or whatever the file that has user32.dll exports is called)
However, the game is based on .NET Framework (you can easily notice this when it starts to reinstall .NET Framework 4.8 for no damn reason on first run, as well as from the mention of "CLR" in the crash dialog)
This means, that you can simply use dnSpy to remove the call to the function that doesn't exist.
dnSpy download link: https://github.com/dnSpy/dnSpy/releases
Patching steps:
1. Open "KitsuneTails.exe" in dnSpy
2. Use dnSpy's search tool (at the bottom, or the search icon in the toolbar) to search for GetDpiForSystem
3. It will show you only one thing, double click it
4. Right click anywhere, then click "Edit Class (C#)..."
5. Remove the following 3 lines:
[ img ]
6. Scroll down until you see the following 6 lines:
[ img ]
and delete them too (alternatively you can click Compile after doing step 5, it will show you an error, double click on it and it'll bring you to the relevant piece of code)
7. Click File > Save All..., then just click OK
After that, you're done.
[ img ]

Author:  265 993 303 [ 08 Jun 2024, 19:18 ]
Post subject:  Kitsune Tails Next Fest Demo on Windows 7

In Win32, the correct way to detect dpi is to use
GetDeviceCaps(hdc,LOGPIXELSX)
for horizontal dpi and
GetDeviceCaps(hdc,LOGPIXELSY)
for vertical dpi.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited