Skip to content

Commit

Permalink
Bumped spelunky version
Browse files Browse the repository at this point in the history
  • Loading branch information
Malacath-92 committed Feb 25, 2021
1 parent 7dd70d2 commit a5e84d2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.7] - 2021-25-02

<img src="https://img.shields.io/badge/Spelunky 2-1.20.3a-orange">

### Changed
- Bumped the supported version of Spelunky

## [0.5.6] - 2021-22-02

<img src="https://img.shields.io/badge/Spelunky 2-1.20.2a-orange">
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Playlunky
<p align="center">
<img src="https://img.shields.io/badge/Spelunky 2-1.20.2a-orange">
<img src="https://img.shields.io/badge/Spelunky 2-1.20.3a-orange">
<a href="https://isocpp.org/">
<img src="https://img.shields.io/badge/language-C%2B%2B20-blue.svg">
</a>
Expand Down
3 changes: 2 additions & 1 deletion source/playlunky/detour/file_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ static VirtualFilesystem* s_FileIOVfs{ nullptr };

struct DetourReadEncrypedFile {
inline static SigScan::Function<void* (__stdcall*)(const char*, void* (*)(size_t size))> Trampoline{
.Signature = "\x48\x8b\xc4\x48\x89\x58\x18\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x8d\xa8\x38\xff\xff\xff"_sig
.Signature = "\x48\x8b\xc4\x48\x89\x58\x18\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x8d\x6c\x24\x80\x48\x81\xec\x80\x01\x00\x00"_sig

};
static void* Detour(const char* file_path, void* (*alloc_fun)(size_t size))
{
Expand Down
4 changes: 2 additions & 2 deletions source/playlunky/detour/win_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <Windows.h>
#include <string_view>

inline constexpr std::string_view s_SupportedSpelunkyVersion = "1.20.2a";
inline constexpr std::string_view s_SupportedSpelunkyVersion = "1.20.3a";

struct DetourWinMain {
inline static SigScan::Function<int(__stdcall*)(HINSTANCE, HINSTANCE, LPSTR, int)> Trampoline{
Expand Down Expand Up @@ -43,7 +43,7 @@ struct DetourWinMain {
// This is the first function called in WinMain() after the global log is initialized
struct DetourGetSteamHandle {
inline static SigScan::Function<void*(__stdcall*)()> Trampoline{
.Signature = "\x40\x53\x48\x83\xec\x20\x48\x8b\x05\x2a\x2a\x2a\x2a\x48\x85\xc0\x75\x6d\xe8\x2a\x2a\x2a\x2a"_sig
.Signature = "\x40\x53\x48\x83\xec\x20\x48\x8b\x05\x2a\x2a\x2a\x2a\x48\x85\xc0\x75\x76\x48\x39\x05\x2a\x2a\x2a\x2a"_sig
};
static void* Detour() {
static bool s_PlaylunkyInit{ false };
Expand Down

0 comments on commit a5e84d2

Please sign in to comment.