mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 03:51:46 +00:00
Fix download of levels
This commit is contained in:
parent
37367a9756
commit
41e8b80f97
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ void network_receive_mod_list(struct Packet* p) {
|
|||
packet_read(p, &relativePathLength, sizeof(u16));
|
||||
packet_read(p, file->relativePath, relativePathLength * sizeof(u8));
|
||||
packet_read(p, &file->size, sizeof(u64));
|
||||
if (mod->isDirectory && !strstr(file->relativePath, "actors")) {
|
||||
if (mod->isDirectory && !strstr(file->relativePath, "actors") && !strstr(file->relativePath, "levels")) {
|
||||
char tmp[SYS_MAX_PATH];
|
||||
if (snprintf(tmp, SYS_MAX_PATH, "%s-%s", mod->relativePath, file->relativePath) >= 0) {
|
||||
memcpy(file->relativePath, tmp, strlen(tmp) + 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue