1
0
mirror of https://github.com/pumpitupdev/pumptools.git synced 2024-11-28 00:20:47 +01:00

patch/net-profile: Bugfix, incorrect reference to virtual profile file

This didn't work with NXA because some parts were always pointing at
the NX2 data
This commit is contained in:
icex2 2021-04-07 10:20:30 +02:00
parent 0c472b8adc
commit c4feccf2d6

View File

@ -349,7 +349,7 @@ static bool _patch_net_profile_determine_is_profile_and_player_and_file_type(
for (int j = 0; j < PUMPNET_LIB_FILE_TYPE_COUNT; j++) { for (int j = 0; j < PUMPNET_LIB_FILE_TYPE_COUNT; j++) {
if (!strcmp( if (!strcmp(
irp->open_filename, irp->open_filename,
_patch_net_profile_virtual_mnt_point_infos->player[i] _patch_net_profile_file_info_ref->player[i]
.file_info[j] .file_info[j]
.file_path)) { .file_path)) {
*player = i; *player = i;
@ -382,8 +382,7 @@ static struct profile_virtual_file *_patch_net_profile_setup_virtual_file(
virtual_file->player_ref_id = player_ref_id; virtual_file->player_ref_id = player_ref_id;
virtual_file->handle = cnh_filehook_open_dummy_file_handle(); virtual_file->handle = cnh_filehook_open_dummy_file_handle();
virtual_file->file_info = virtual_file->file_info =
&_patch_net_profile_virtual_mnt_point_infos->player[player] &_patch_net_profile_file_info_ref->player[player].file_info[file_type];
.file_info[file_type];
virtual_file->buffer_pos = 0; virtual_file->buffer_pos = 0;
virtual_file->is_written = false; virtual_file->is_written = false;