; Script
DECLARE_GLOBAL_MACRO(Orpheus_PDA_FOLDER,"%PROGRAMFILES_FOLDER%\Dolphin\Orpheus")
DECLARE_GLOBAL_MACRO(Orpheus_NAME, "Pocket Orpheus Software Synthesiser")
DECLARE_GLOBAL_MACRO(Orpheus_FOLDER, "%THIS_FOLDER%")
DECLARE_GLOBAL_MACRO(Orpheus_LANG_PDA_FOLDER,"%Orpheus_PDA_FOLDER%\language")

DECLARE_GROUP("Orpheus")
{
	SET_DISPLAY_NAME("%Orpheus_NAME%")
	INSTALL_ALWAYS;

	; Copy the core components
	MKDIR(%Orpheus_PDA_FOLDER%);
	MCOPY(%THIS_FOLDER%\PPC2003\ARMv4\*.*, %Orpheus_PDA_FOLDER%, ALWAYS_OVERWRITE, TRUE);

	; Copy documentation - don't copy documentation onto PDA!
	; MCOPY(%THIS_FOLDER%\docs\???%INSTALL_LANG%.*, %Orpheus_PDA_FOLDER%, ALWAYS_OVERWRITE, FALSE);

	; Copy help/prompt files
	MCOPY(%THIS_FOLDER%\ORP%INSTALL_LANG%.ini,  %Orpheus_PDA_FOLDER%, ALWAYS_OVERWRITE, FALSE);
	MCOPY(%THIS_FOLDER%\sam\*.ini, %Orpheus_PDA_FOLDER%\sam, ALWAYS_OVERWRITE, FALSE);
	MCOPY(%THIS_FOLDER%\sam\*.dll, %Orpheus_PDA_FOLDER%\sam, ALWAYS_OVERWRITE, FALSE);

	; Create settings folder
	MKDIR(%Orpheus_PDA_FOLDER%\settings);

	; Copy sound effects
	MKDIR(%Orpheus_PDA_FOLDER%\sfx);
	MCOPY(%THIS_FOLDER%\sfx\*.*, %Orpheus_PDA_FOLDER%\sfx, ALWAYS_OVERWRITE, FALSE);

	; Copy the .sys and .msi files
	COPY(%THIS_FOLDER%\orpheus.sys, %Orpheus_PDA_FOLDER%\orpheus.sys, ALWAYS_OVERWRITE);
	COPY(%THIS_FOLDER%\setup.msi, %Orpheus_PDA_FOLDER%\setup.msi, ALWAYS_OVERWRITE);
	COPY(%THIS_FOLDER%\OldBetaSetup.msi, %Orpheus_PDA_FOLDER%\setup.msi, ALWAYS_OVERWRITE);

	; Create shortcuts
	MKSHORTCUT(%START_MENU_PROGRAMS%\Dolphin\Configure Orpheus.lnk, %Orpheus_PDA_FOLDER%\oconfig.exe);
	; don't copy documentation onto PDA!
	; MKSHORTCUT(%START_MENU_PROGRAMS%\Dolphin\Orpheus Documentation.lnk, %Orpheus_PDA_FOLDER%\ORP%INSTALL_LANG%.doc);

	; Create the language folder (what goes in it is selected by the user)
	MKDIR(%Orpheus_LANG_PDA_FOLDER%);
}

; Supported languages
; Each language is in a separate group to allow the user to install it.
; If we installed all of them we would rapidly run out of space on the device!

; voices

; UK English Synthetic voices
DECLARE_GROUP("Orpheus\00044")
{
	SET_DISPLAY_NAME("%LANG_00044_DESC%");
	#ifdef 00044
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00044\00044.*, %Orpheus_LANG_PDA_FOLDER%\00044, ALWAYS_OVERWRITE, FALSE);
	MCOPY(%Orpheus_FOLDER%\language\00044\synth*.vcx, %Orpheus_LANG_PDA_FOLDER%\00044, ALWAYS_OVERWRITE, FALSE);
}
; UK English Natural voices
DECLARE_GROUP("Orpheus\00044NAT")
{
	SELECTED_BY_DEFAULT;
	SET_DISPLAY_NAME("%LANG_00044_DESC% %NATURAL_VOICE%")
}
DECLARE_GROUP("Orpheus\00044NAT\ALAN")
{
	SET_DISPLAY_NAME("Alan")
	COPY(%Orpheus_FOLDER%\language\00044\Alan1.vcx, %Orpheus_LANG_PDA_FOLDER%\00044\Alan1.vcx, ALWAYS_OVERWRITE);
}
DECLARE_GROUP("Orpheus\00044NAT\CAROL")
{
	SET_DISPLAY_NAME("Carol")
	COPY(%Orpheus_FOLDER%\language\00044\Carol1.vcx, %Orpheus_LANG_PDA_FOLDER%\00044\Carol1.vcx, ALWAYS_OVERWRITE);
}
; Compact Natural voices
DECLARE_GROUP("Orpheus\00044NAT\ALANCompact")
{
	SET_DISPLAY_NAME("Alan Compact")
	COPY(%Orpheus_FOLDER%\language\00044\Alan1C.vcx, %Orpheus_LANG_PDA_FOLDER%\00044\Alan1C.vcx, ALWAYS_OVERWRITE);
}
DECLARE_GROUP("Orpheus\00044NAT\CAROLCompact")
{
	SET_DISPLAY_NAME("Carol Compact")
	COPY(%Orpheus_FOLDER%\language\00044\Carol1C.vcx, %Orpheus_LANG_PDA_FOLDER%\00044\Carol1C.vcx, ALWAYS_OVERWRITE);
}
; Minimal Natural voices
DECLARE_GROUP("Orpheus\00044NAT\ALANMinimal")
{
	SET_DISPLAY_NAME("Alan Minimal")
	COPY(%Orpheus_FOLDER%\language\00044\Alan1M.vcx, %Orpheus_LANG_PDA_FOLDER%\00044\Alan1M.vcx, ALWAYS_OVERWRITE);
}
DECLARE_GROUP("Orpheus\00044NAT\CAROLMinimal")
{
	SET_DISPLAY_NAME("Carol Minimal")
	COPY(%Orpheus_FOLDER%\language\00044\Carol1M.vcx, %Orpheus_LANG_PDA_FOLDER%\00044\Carol1M.vcx, ALWAYS_OVERWRITE);
}

; US English Synthetic voices
DECLARE_GROUP("Orpheus\00001")
{
	SET_DISPLAY_NAME("%LANG_00001_DESC%")
	#ifdef 00001
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00001\00001.*, %Orpheus_LANG_PDA_FOLDER%\00001, ALWAYS_OVERWRITE, FALSE);
	MCOPY(%Orpheus_FOLDER%\language\00001\synth*.vcx, %Orpheus_LANG_PDA_FOLDER%\00001, ALWAYS_OVERWRITE, FALSE);
}
; US English Natural voices
DECLARE_GROUP("Orpheus\00001NAT")
{
	SELECTED_BY_DEFAULT;
	SET_DISPLAY_NAME("%LANG_00001_DESC% %NATURAL_VOICE%")
}
DECLARE_GROUP("Orpheus\00001NAT\BRAD")
{
	SET_DISPLAY_NAME("Brad")
	COPY(%Orpheus_FOLDER%\language\00001\Brad1.vcx, %Orpheus_LANG_PDA_FOLDER%\00001\Brad1.vcx, ALWAYS_OVERWRITE);
}
DECLARE_GROUP("Orpheus\00001NAT\LUCY")
{
	SET_DISPLAY_NAME("Lucy")
	COPY(%Orpheus_FOLDER%\language\00001\Lucy1.vcx, %Orpheus_LANG_PDA_FOLDER%\00001\Lucy1.vcx, ALWAYS_OVERWRITE);
}
; Compact Natural voices
DECLARE_GROUP("Orpheus\00001NAT\BRADCompact")
{
	SET_DISPLAY_NAME("Brad Compact")
	COPY(%Orpheus_FOLDER%\language\00001\Brad1C.vcx, %Orpheus_LANG_PDA_FOLDER%\00001\Brad1C.vcx, ALWAYS_OVERWRITE);
}
DECLARE_GROUP("Orpheus\00001NAT\LUCYCompact")
{
	SET_DISPLAY_NAME("Lucy Compact")
	COPY(%Orpheus_FOLDER%\language\00001\Lucy1C.vcx, %Orpheus_LANG_PDA_FOLDER%\00001\Lucy1C.vcx, ALWAYS_OVERWRITE);
}
; Minimal Natural voices
DECLARE_GROUP("Orpheus\00001NAT\BRADMinimal")
{
	SET_DISPLAY_NAME("Brad Minimal")
	COPY(%Orpheus_FOLDER%\language\00001\Brad1M.vcx, %Orpheus_LANG_PDA_FOLDER%\00001\Brad1M.vcx, ALWAYS_OVERWRITE);
}
DECLARE_GROUP("Orpheus\00001NAT\LUCYMinimal")
{
	SET_DISPLAY_NAME("Lucy Minimal")
	COPY(%Orpheus_FOLDER%\language\00001\Lucy1M.vcx, %Orpheus_LANG_PDA_FOLDER%\00001\Lucy1M.vcx, ALWAYS_OVERWRITE);
}

DECLARE_GROUP("Orpheus\00030")
{
	SET_DISPLAY_NAME("%LANG_00030_DESC%")
	#ifdef 00030
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00030\*.*, %Orpheus_LANG_PDA_FOLDER%\00030, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00031")
{
	SET_DISPLAY_NAME("%LANG_00031_DESC%")
	#ifdef 00031
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00031\*.*, %Orpheus_LANG_PDA_FOLDER%\00031, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00033")
{
	SET_DISPLAY_NAME("%LANG_00033_DESC%")
	#ifdef 00033
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00033\*.*, %Orpheus_LANG_PDA_FOLDER%\00033, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00034")
{
	SET_DISPLAY_NAME("%LANG_00034_DESC%")
	#ifdef 00034
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00034\*.*, %Orpheus_LANG_PDA_FOLDER%\00034, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00038")
{
	SET_DISPLAY_NAME("%LANG_00038_DESC%")
	#ifdef 00038
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00038\*.*, %Orpheus_LANG_PDA_FOLDER%\00038, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00039")
{
	SET_DISPLAY_NAME("%LANG_00039_DESC%")
	#ifdef 00039
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00039\*.*, %Orpheus_LANG_PDA_FOLDER%\00039, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00042")
{
	SET_DISPLAY_NAME("%LANG_00042_DESC%")
	#ifdef 00042
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00042\*.*, %Orpheus_LANG_PDA_FOLDER%\00042, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00045")
{
	SET_DISPLAY_NAME("%LANG_00045_DESC%")
	#ifdef 00045
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00045\*.*, %Orpheus_LANG_PDA_FOLDER%\00045, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00046")
{
	SET_DISPLAY_NAME("%LANG_00046_DESC%")
	#ifdef 00046
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00046\*.*, %Orpheus_LANG_PDA_FOLDER%\00046, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00047")
{
	SET_DISPLAY_NAME("%LANG_00047_DESC%")
	#ifdef 00047
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00047\*.*, %Orpheus_LANG_PDA_FOLDER%\00047, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00048")
{
	SET_DISPLAY_NAME("%LANG_00048_DESC%")
	#ifdef 00048
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00048\*.*, %Orpheus_LANG_PDA_FOLDER%\00048, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00049")
{
	SET_DISPLAY_NAME("%LANG_00049_DESC%")
	#ifdef 00049
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00049\*.*, %Orpheus_LANG_PDA_FOLDER%\00049, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00052")
{
	SET_DISPLAY_NAME("%LANG_00052_DESC%")
	#ifdef 00052
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00052\*.*, %Orpheus_LANG_PDA_FOLDER%\00052, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00055")
{
	SET_DISPLAY_NAME("%LANG_00055_DESC%")
	#ifdef 00055
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00055\*.*, %Orpheus_LANG_PDA_FOLDER%\00055, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00060")
{
	SET_DISPLAY_NAME("%LANG_00060_DESC%")
	#ifdef 00060
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00060\*.*, %Orpheus_LANG_PDA_FOLDER%\00060, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00086")
{
	SET_DISPLAY_NAME("%LANG_00086_DESC%")
	#ifdef 00086
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00086\*.*, %Orpheus_LANG_PDA_FOLDER%\00086, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00351")
{
	SET_DISPLAY_NAME("%LANG_00351_DESC%")
	#ifdef 00351
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00351\*.*, %Orpheus_LANG_PDA_FOLDER%\00351, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\00358")
{
	SET_DISPLAY_NAME("%LANG_00358_DESC%")
	#ifdef 00358
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\00358\*.*, %Orpheus_LANG_PDA_FOLDER%\00358, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\10044")
{
	SET_DISPLAY_NAME("%LANG_10044_DESC%")
	#ifdef 10044
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\10044\*.*, %Orpheus_LANG_PDA_FOLDER%\10044, ALWAYS_OVERWRITE, FALSE);
}
DECLARE_GROUP("Orpheus\10086")
{
	SET_DISPLAY_NAME("%LANG_10086_DESC%")
	#ifdef 10086
		SELECTED_BY_DEFAULT;
	#endif
	MCOPY(%Orpheus_FOLDER%\language\10086\*.*, %Orpheus_LANG_PDA_FOLDER%\10086, ALWAYS_OVERWRITE, FALSE);
}

