***************
*** 6,12 ****
BACKUP ~
DSotSC/backup~
AUTHOR ~
http://www.shsforums...02-dsotsc-bgt/~- VERSION ~v 2.16~
README ~
DSotSC/ReadMe-
DSotSC.txt~
AUTO_TRA ~
DSotSC/Language/%s/D~
--- 6,12 ----
BACKUP ~
DSotSC/backup~
AUTHOR ~
http://www.shsforums...02-dsotsc-bgt/~+ VERSION ~v 2.16.1~
README ~
DSotSC/ReadMe-
DSotSC.txt~
AUTO_TRA ~
DSotSC/Language/%s/D~
***************
*** 3730,3750 ****
ACTION_BASH_FOR ~
DSotSC/Ogg~ EVALUATE_REGEXP ~^.*\.ogg$~ BEGIN
//backup if already existing
ACTION_IF FILE_EXISTS ~override/%BASH_FOR_RES%.wav~ BEGIN
- MOVE ~override/%BASH_FOR_RES%.wav~ ~
dsotsc/backup/%COMPONENT_NUMBER%/%BASH_FOR_RES%.wav~
END
//detect if translated .ogg file exists
ACTION_IF FILE_EXISTS ~
DSotSC/Language/%LANGUAGE%/Ogg/%BASH_FOR_FILE%~ BEGIN
- OUTER_SPRINT file ~
DSotSC/Language/%LANGUAGE%/Ogg/%BASH_FOR_FILE%~
END ELSE BEGIN
- OUTER_SPRINT file ~%BASH_FOR_FILESPEC%~
END
- OUTER_SPRINT dest ~
dsotsc/bif/%BASH_FOR_RES%.wav~
//conversion
ACTION_IF win THEN BEGIN
- AT_NOW ~%oggdec% %file%%debug_ogg%~ //the output file is now in the input dir
SILENT
ACTION_TRY
- MOVE + ~%BASH_FOR_DIRECTORY%/%BASH_FOR_RES%.wav~ ~%dest%~
VERBOSE
WITH
~Unix.Unix_error(20, "rename", "%BASH_FOR_DIRECTORY%/%BASH_FOR_RES%.wav")~ BEGIN //conversion didn't work
--- 3730,3750 ----
ACTION_BASH_FOR ~
DSotSC/Ogg~ EVALUATE_REGEXP ~^.*\.ogg$~ BEGIN
//backup if already existing
ACTION_IF FILE_EXISTS ~override/%BASH_FOR_RES%.wav~ BEGIN
+ MOVE ~override/%BASH_FOR_RES%.wav~ ~
dsotsc/backup/%COMPONENT_NUMBER%/%BASH_FOR_RES%.wav~ //-> DELETE
END
//detect if translated .ogg file exists
ACTION_IF FILE_EXISTS ~
DSotSC/Language/%LANGUAGE%/Ogg/%BASH_FOR_FILE%~ BEGIN
+ OUTER_SPRINT file ~
DSotSC%slash%Language%slash%%LANGUAGE%%slash%Ogg%slash%%BASH_FOR_RES%~
END ELSE BEGIN
+ OUTER_SPRINT file ~
DSotSC%slash%Ogg%slash%%BASH_FOR_RES%~
END
+ OUTER_SPRINT dest ~
dsotsc%slash%bif%slash%%BASH_FOR_RES%.wav~
//conversion
ACTION_IF win THEN BEGIN
+ AT_NOW ~%oggdec% %file%.ogg%debug_ogg%~ EXACT //the output file is now in the input dir
SILENT
ACTION_TRY
+ MOVE + /*~%BASH_FOR_DIRECTORY%/%BASH_FOR_RES%.wav~*/~%file%.wav~ ~%dest%~ //failed in German
VERBOSE
WITH
~Unix.Unix_error(20, "rename", "%BASH_FOR_DIRECTORY%/%BASH_FOR_RES%.wav")~ BEGIN //conversion didn't work
***************
*** 3757,3765 ****
END ELSE BEGIN //unix-like
//two different programs are used on Unix and Mac
ACTION_IF ~%WEIDU_OS%~ STRING_EQUAL_CASE ~osx~ BEGIN
- AT_NOW ~%oggdec% %file% %dest%%debug%~
END ELSE BEGIN //unix
- AT_NOW ~%oggdec% %file% -o %dest% %debug_ogg%~// EXACT
END
// for unix AND Mac: did conversion work?
ACTION_IF NOT FILE_EXISTS ~%dest%~ BEGIN
--- 3757,3765 ----
END ELSE BEGIN //unix-like
//two different programs are used on Unix and Mac
ACTION_IF ~%WEIDU_OS%~ STRING_EQUAL_CASE ~osx~ BEGIN
+ AT_NOW ~%oggdec% %file%.ogg %dest%%debug%~
END ELSE BEGIN //unix
+ AT_NOW ~%oggdec% %file%.ogg -o %dest% %debug_ogg%~// EXACT
END
// for unix AND Mac: did conversion work?
ACTION_IF NOT FILE_EXISTS ~%dest%~ BEGIN