Skip to content

Commit

Permalink
small fix for crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Jan 9, 2024
1 parent a0cacd0 commit 25e897a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Launcher/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string>

// The current version of RBSE
#define RBSE_VERSION "3.8.2"
#define RBSE_VERSION "3.8.3"
// maximum length of output file names
#define MAX_OUTFILE_NAME_LEN 64
// maximum length of output formats
Expand Down
9 changes: 9 additions & 0 deletions Module/UIPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,18 @@ uint32_t djplayer_uiplayer::getDeckBPM()
// change anytime new devices are added -- which seems not uncommon
bpm_device_offset = find_device_offset("@BPM");
}
if (!bpm_device_offset) {
break;
}
bpmDevice = *(void **)((uintptr_t)this + bpm_device_offset);
if (!bpmDevice) {
break;
}
// then the offsets for the bpm within the device should never change
bpmDeviceInner = *(void **)((uintptr_t)bpmDevice + 0x80);
if (!bpmDeviceInner) {
break;
}
bpm = *(uint32_t *)((uintptr_t)bpmDeviceInner + 0x154);
break;
}
Expand Down

0 comments on commit 25e897a

Please sign in to comment.