1 /*
2  *  compression/DecompressorUMX.h
3  *
4  *  Copyright 2009 Peter Barth
5  *
6  *  This file is part of Milkytracker.
7  *
8  *  Milkytracker is free software: you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation, either version 3 of the License, or
11  *  (at your option) any later version.
12  *
13  *  Milkytracker is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with Milkytracker.  If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 /*
24  *  DecompressorUMX.h
25  *  milkytracker_universal
26  *
27  *  Created by Peter Barth on 22.06.08.
28  *
29  */
30 
31 #ifndef __DECOMPRESSOR_UMX_H__
32 #define __DECOMPRESSOR_UMX_H__
33 
34 #include "Decompressor.h"
35 
36 /*****************************************************************************
37  * Unreal Music (UMX) "decompressor"
38  *****************************************************************************/
39 class DecompressorUMX : public DecompressorBase
40 {
41 public:
42 	DecompressorUMX(const PPSystemString& fileName);
43 
44 	virtual bool identify(XMFile& f);
45 
46 	// this type of archive only contain modules
doesServeHint(Hints hint)47 	virtual bool doesServeHint(Hints hint) { return (hint == HintAll || hint == HintModules); }
48 
49 	virtual const PPSimpleVector<Descriptor>& getDescriptors(Hints hint) const;
50 
51 	virtual bool decompress(const PPSystemString& outFileName, Hints hint);
52 
53 	virtual DecompressorBase* clone();
54 };
55 
56 
57 #endif
58 
59