Skip to content

Commit

Permalink
Support for 1.53
Browse files Browse the repository at this point in the history
  • Loading branch information
dariowouters committed Nov 30, 2024
1 parent 130971c commit a52b66f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.53
- Updated to support 1.53

## 1.52
- Updated to support 1.52

Expand Down
Binary file modified dist/ts-fmod-plugin.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions ts-fmod-plugin/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace common
{
inline const char* plugin_version = "1.52";
constexpr uint32_t supported_game_version = 52;
inline const char* plugin_version = "1.53";
constexpr uint32_t supported_game_version = 53;

inline FMOD_GUID get_guid(const std::string& s_guid)
{
Expand Down
23 changes: 12 additions & 11 deletions ts-fmod-plugin/memory_structure.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ class unit_t // Size: 0x0010

static_assert(sizeof(unit_t) == 0x10);

class game_actor_u : public unit_t // Size: 0x10A8
class game_actor_u : public unit_t // Size: 0x10D8
{
public:
char pad_0010[8]; //0x0010 (0x08)
class game_physics_vehicle_u* game_physics_vehicle; //0x0018 (0x08)
class visual_interior_u* visual_interior; //0x0020 (0x08)
class game_actor_hud_u* game_actor_hud; //0x0028 (0x08)
char pad_0030[88]; //0x0030 (0x58)
class history_stream_set_u* history_stream_set; //0x0088 (0x08)
char pad_0090[24]; //0x0090 (0x18)
class history_manager_u* history_manager; //0x00A8 (0x08)
class game_trailer_actor_u* game_trailer_actor; //0x00B0 (0x08)
char pad_00B8[96]; //0x00B8 (0x60)
char pad_0030[104]; //0x0030 (0x68)
class history_stream_set_u* history_stream_set; //0x0098 (0x08)
char pad_00A0[16]; //0x00A0 (0x10)
class history_manager_u* history_manager; //0x00B0 (0x08)
class game_trailer_actor_u* game_trailer_actor; //0x00B8 (0x08)
char pad_00C0[88]; //0x00C0 (0x58)
uint32_t current_camera; //0x0118 (0x04) 2 = int, 1 = chase, 7 = top, 5 = roof, 4 = side_back, 3 = hood, 6 = side_front, 9 = cinematic, 0 = dev
char pad_011C[8]; //0x011C (0x08)
uint32_t engine_state; //0x0124 (0x04) 0 = engine off, 1 = starting, 2 = running, 3 = shutting down
Expand Down Expand Up @@ -118,9 +118,10 @@ class game_actor_u : public unit_t // Size: 0x10A8
class physics_gearbox_direct_u* physics_gearbox_direct; //0x0AD0 (0x08)
char pad_0AD8[8]; //0x0AD8 (0x08)
class accessory_head_lights_data_u* accessory_head_lights_data; //0x0AE0 (0x08)
char pad_0AE8[1184]; //0x0AE8 (0x4a0)
token_t N00002CB4; //0x0F88 (0x08)
char pad_0F90[280]; //0x0F90 (0x118)
char pad_0AE8[1232]; //0x0AE8 (0x4d0)
token_t N00002CB4; //0x0FB8 (0x08)
char pad_0FC0[280]; //0x0FC0 (0x118)


public:
float get_light_switch_state() const
Expand Down Expand Up @@ -164,7 +165,7 @@ class game_actor_u : public unit_t // Size: 0x10A8
}
};

static_assert(sizeof(game_actor_u) == 0x10A8);
static_assert(sizeof(game_actor_u) == 0x10D8);

class sound_t
{
Expand Down
8 changes: 4 additions & 4 deletions ts-fmod-plugin/ts-fmod-plugin.rc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,52,0,0
PRODUCTVERSION 1,52,0,0
FILEVERSION 1,53,0,0
PRODUCTVERSION 1,53,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -69,12 +69,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Dario Wouters"
VALUE "FileDescription", "Sound Plugin for ATS/ETS2"
VALUE "FileVersion", "1.52.0.0"
VALUE "FileVersion", "1.53.0.0"
VALUE "InternalName", "ts-fmod-plugin.dll"
VALUE "LegalCopyright", "Copyright (C) 2023"
VALUE "OriginalFilename", "ts-fmod-plugin.dll"
VALUE "ProductName", "Sound Plugin for ATS/ETS2"
VALUE "ProductVersion", "1.52.0.0"
VALUE "ProductVersion", "1.53.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit a52b66f

Please sign in to comment.