[Scummvm-git-logs] scummvm-tools master -> b51bd55391e7ff30cadc082807567c407254d11c

sdelamarre noreply at scummvm.org
Wed Aug 30 11:26:05 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-tools' repo located at https://github.com/scummvm/scummvm-tools .

Summary:
b51bd55391 GOB: Add .JTK in the list of accepted archive files extensions


Commit: b51bd55391e7ff30cadc082807567c407254d11c
    https://github.com/scummvm/scummvm-tools/commit/b51bd55391e7ff30cadc082807567c407254d11c
Author: Benjamin Funke (58399929+BJNFNE at users.noreply.github.com)
Date: 2023-08-30T13:26:01+02:00

Commit Message:
GOB: Add .JTK in the list of accepted archive files extensions

This allows to extract the JTK files found in Adibou 2 Sciences.

Changed paths:
    engines/gob/extract_gob_stk.cpp


diff --git a/engines/gob/extract_gob_stk.cpp b/engines/gob/extract_gob_stk.cpp
index d98c046b..8b4217e6 100644
--- a/engines/gob/extract_gob_stk.cpp
+++ b/engines/gob/extract_gob_stk.cpp
@@ -49,7 +49,7 @@ ExtractGobStk::ExtractGobStk(const std::string &name) : Tool(name, TOOLTYPE_EXTR
 	input.format = "*.*";
 	_inputPaths.push_back(input);
 
-	_shorthelp = "Extract the files from a Stick file used by 'gob' engine (.STK/.ITK/.LTK).";
+	_shorthelp = "Extract the files from a Stick file used by 'gob' engine (.STK/.ITK/.LTK/.JTK).";
 	_helptext  = "Usage: " + getName() + " [-o outputname] stickname\nwhere\n  ouputname is used to force the gob config filename (used by compress_gob)\n  stickname is the name of the file to extract/decompress";
 }
 
@@ -58,12 +58,13 @@ ExtractGobStk::~ExtractGobStk() {
 }
 
 InspectionMatch ExtractGobStk::inspectInput(const Common::Filename &filename) {
-	// Accept either any file with stk, itk or ltk extension
+	// Accept either any file with stk, itk, ltk or jtk extension
 	std::string ext = filename.getExtension();
 	if (
 		scumm_stricmp(ext.c_str(), "stk") == 0 ||
 		scumm_stricmp(ext.c_str(), "itk") == 0 ||
-		scumm_stricmp(ext.c_str(), "ltk") == 0
+		scumm_stricmp(ext.c_str(), "ltk") == 0 ||
+		scumm_stricmp(ext.c_str(), "jtk") == 0
 		)
 		return IMATCH_PERFECT;
 	return IMATCH_AWFUL;




More information about the Scummvm-git-logs mailing list