webplay fix

This commit is contained in:
2026-01-25 20:04:29 +01:00
parent 4d19fba935
commit b548955ed9
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -88,6 +88,7 @@ func (s *SoftwareUpdaterTIC80Service) handleLuaCartridge(name, contentsPath stri
Version: version,
CartridgePath: s.fileRepository.GetCartridgePath(software.Name, version, contentsPath),
SourcePath: s.fileRepository.GetSourcePath(software.Name, version, contentsPath),
WebPlayable: true,
}
return s.releaseRepository.Create(release)
+1 -1
View File
@@ -157,7 +157,7 @@ func (c *PlayController) ServeContent(w http.ResponseWriter, r *http.Request) {
return
}
htmlBaseDir := filepath.Join(contentsPath, "html", name, version)
htmlBaseDir := filepath.Join(contentsPath, name, fmt.Sprintf("%s-%s-html", name, version))
if _, err := os.Stat(htmlBaseDir); os.IsNotExist(err) {
http.Error(w, fmt.Sprintf("Content for '%s' not found.", name), http.StatusNotFound)