Skip to content

Commit

Permalink
fixes for rbox 6.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Sep 25, 2023
1 parent 389f434 commit 5b1afdb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
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.1"
#define RBSE_VERSION "3.8.2"
// maximum length of output file names
#define MAX_OUTFILE_NAME_LEN 64
// maximum length of output formats
Expand Down
1 change: 1 addition & 0 deletions Launcher/Versions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ using namespace std;
// list of supported versions
version_path versions[] = {
// Friendly name Default installation path
{ "Rekordbox 6.7.5", "C:\\Program Files\\Pioneer\\rekordbox 6.7.5\\rekordbox.exe" },
{ "Rekordbox 6.7.0", "C:\\Program Files\\Pioneer\\rekordbox 6.7.0\\rekordbox.exe" },
{ "Rekordbox 6.6.11", "C:\\Program Files\\Pioneer\\rekordbox 6.6.11\\rekordbox.exe" },
{ "Rekordbox 6.6.10", "C:\\Program Files\\Pioneer\\rekordbox 6.6.10\\rekordbox.exe" },
Expand Down
1 change: 1 addition & 0 deletions Module/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const char *rbver_strings[RBVER_COUNT] = {
"6.6.10", // RBVER_6610
"6.6.11", // RBVER_6611
"6.7.0", // RBVER_670
"6.7.5", // RBVER_675
};

// global config object
Expand Down
1 change: 1 addition & 0 deletions Module/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ typedef enum rbox_version_enum
RBVER_6610, // 6.6.10
RBVER_6611, // 6.6.11
RBVER_670, // 6.7.0
RBVER_675, // 6.7.5

RBVER_COUNT // the number of versions supported
} rbox_version_t;
Expand Down
3 changes: 2 additions & 1 deletion Module/LoadFileHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@ bool hook_load_file()
// and the number of bytes to copy out into a trampoline
uintptr_t lf_addr = 0;
switch (config.version) {
default: // Unfortunately after 6.6.4 this changed and I don't want to go back and do older verisons
case RBVER_664:
case RBVER_6610:
case RBVER_6611:
lf_addr = sig_scan(EVENT_LOAD_FILE_SIG);
break;
default: // Unfortunately after 6.6.4 this changed and I don't want to go back and do older verisons
case RBVER_670:
case RBVER_675:
lf_addr = sig_scan(EVENT_LOAD_FILE_SIG_670);
break;
};
Expand Down
3 changes: 2 additions & 1 deletion Module/RowDataTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ static row_data *new_row_data()
case RBVER_653:
case RBVER_661:
default: // RBVER_661+ just guess
rowdata = calloc(1, 0x488);
// this used to be 0x488 but it was crashing so I upped it to 0x512, should be enough
rowdata = calloc(1, 0x512);
break;
}
return (row_data *)rowdata;
Expand Down

0 comments on commit 5b1afdb

Please sign in to comment.