Skip to content

Commit

Permalink
Move song_data to use extern
Browse files Browse the repository at this point in the history
  • Loading branch information
esuo1198 committed Mar 28, 2024
1 parent 2bdfd6e commit 32d2f5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/bnusio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

extern GameVersion version;
extern std::vector<HMODULE> plugins;
extern u64 song_data_size;
extern void *song_data;
extern char accessCode1[21];
extern char accessCode2[21];
extern char chipId1[33];
Expand Down
2 changes: 2 additions & 0 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

GameVersion gameVersion = GameVersion::UNKNOWN;
std::vector<HMODULE> plugins;
u64 song_data_size = 1024 * 1024 * 64;
void *song_data;

std::string server = "127.0.0.1";
std::string port = "54430";
Expand Down
4 changes: 2 additions & 2 deletions src/patches/jp_nov_2020.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include "patches.h"
#include <safetyhook.hpp>

const u64 song_data_size = 1024 * 1024 * 64;
void *song_data;
extern u64 song_data_size;
extern void *song_data;

#define RDX_MOV 0x48, 0xBA
#define R8_MOV 0x49, 0xB8
Expand Down

0 comments on commit 32d2f5d

Please sign in to comment.