1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     fs.h
4 
5   Copyright (C)2009-2012 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 46365 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_SAMPLE_DEMOS_DEMO1_FS_H_
17 #define NN_SAMPLE_DEMOS_DEMO1_FS_H_
18 
19 #include "device.h"
20 
21 class FsDemo : public Device
22 {
23 public:
Initialize(demo::RenderSystemDrawing * p_RenderSystem)24     virtual void Initialize(demo::RenderSystemDrawing* p_RenderSystem) { Device::Initialize(p_RenderSystem); }
25     void Initialize(demo::RenderSystemDrawing* p_RenderSystem, nn::fnd::ExpHeap* p_AppHeap);
26     virtual void Finalize(void);
27 
28     virtual void Start(void);
29     virtual void End(void);
30 
31 private:
32     virtual void DrawFrame(void);
33     nn::fnd::ExpHeap* mp_AppHeap;
34     nn::fs::FileReader m_RomFsFile;
35     char* m_FileBuffer;
36 
37     void ThreadFuncImpl();
38     static void ThreadFunc(FsDemo* pFsDemo);
39 
40     NN_PADDING4;
41 
42     nn::os::Thread m_Thread;
43     nn::os::StackBuffer<1024>   m_Stack;
44 
45     nn::os::LightEvent m_ExitEvent;
46 };
47 
48 /* NN_SAMPLE_DEMOS_DEMO1_FS_H_ */
49 #endif
50 
51 /*---------------------------------------------------------------------------*
52   End of file
53  *---------------------------------------------------------------------------*/
54