Skip to content

Commit

Permalink
fixed subfolders dmd
Browse files Browse the repository at this point in the history
  • Loading branch information
syd711 committed Dec 29, 2024
1 parent fb991d7 commit d1c10db
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## Release Notes 3.11.3

## Bugfixes

- **Tables / Uploads**: Fixed uploads of DMD packages for tables that are installed into subfolders.


---

## Release Notes 3.11.2

## Bugfixes
Expand Down
2 changes: 1 addition & 1 deletion resources/vpsdb.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ else if (folderName.contains(DMDPackageTypes.UltraDMD.name().toLowerCase())) {
return null;
}

public void installDMDPackage(@NonNull File archive, @Nullable String dmdPath, int emulatorId) {
public void installDMDPackage(@NonNull File archive, @Nullable String dmdPath, @NonNull File gameFile) {
if (dmdPath != null) {
File tablesFolder = frontendService.getGameEmulator(emulatorId).getTablesFolder();
File tablesFolder = gameFile.getParentFile();
String extension = FilenameUtils.getExtension(archive.getName()).toLowerCase();
if (extension.equals(PackageUtil.ARCHIVE_ZIP)) {
DMDInstallationUtil.unzip(archive, tablesFolder, dmdPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void importArchiveBasedAssets(@NonNull UploadDescriptor uploadDescriptor,
}
case DMD_PACK: {
if (!validateAssetType || analysis.validateAssetTypeInArchive(AssetType.DMD_PACK) == null) {
dmdService.installDMDPackage(tempFile, analysis.getDMDPath(), uploadDescriptor.getEmulatorId());
dmdService.installDMDPackage(tempFile, analysis.getDMDPath(), game.getGameFile());
}
break;
}
Expand Down

0 comments on commit d1c10db

Please sign in to comment.