├── LICENSE
├── cocos
└── kr2
│ ├── .cocos-project.json
│ ├── Resources
│ └── res
│ │ └── locale
│ │ ├── en_us.xml
│ │ ├── ja_jp.xml
│ │ ├── zh_cn.xml
│ │ └── zh_tw.xml
│ ├── cocosstudio
│ ├── img
│ │ ├── Cancel_Normal.png
│ │ ├── Cancel_Press.png
│ │ ├── CheckBoxNode_Normal.png
│ │ ├── CheckBoxNode_Press.png
│ │ ├── CheckBox_Disable.png
│ │ ├── CheckBox_Normal.png
│ │ ├── CheckBox_Press.png
│ │ ├── about_icon.png
│ │ ├── back_btn_off.png
│ │ ├── back_btn_on.png
│ │ ├── back_icon.png
│ │ ├── circle_arrow.png
│ │ ├── circle_arrow_normal.png
│ │ ├── circle_arrow_press.png
│ │ ├── circle_white.png
│ │ ├── empty.png
│ │ ├── exit_icon.png
│ │ ├── gray.png
│ │ ├── keyboard_icon.png
│ │ ├── menu_handler.png
│ │ ├── menu_icon.png
│ │ ├── menu_press.png
│ │ ├── mouse_2btn.png
│ │ ├── mouse_icon.png
│ │ ├── mouse_left_btn.png
│ │ ├── mouse_right_btn.png
│ │ ├── right_triangle.png
│ │ ├── syssetting_btn_ff.png
│ │ ├── syssetting_btn_on.png
│ │ ├── touch1.png
│ │ ├── touch2.png
│ │ ├── touch_icon.png
│ │ ├── triangle.png
│ │ ├── white.png
│ │ └── windows_icon.png
│ ├── mouse_2btn.png
│ ├── mouse_left_btn.png
│ ├── mouse_right_btn.png
│ └── ui
│ │ ├── BottomBar.csd
│ │ ├── BottomBarTextInput.csd
│ │ ├── CheckListDialog.csd
│ │ ├── FileItem.csd
│ │ ├── FileManageMenu.csd
│ │ ├── GameMenu.csd
│ │ ├── KeySelect.csd
│ │ ├── ListItem.csd
│ │ ├── ListView.csd
│ │ ├── MainFileSelector.csd
│ │ ├── MediaPlayerBody.csd
│ │ ├── MediaPlayerFoot.csd
│ │ ├── MediaPlayerNavi.csd
│ │ ├── MenuList.csd
│ │ ├── MessageBox.csd
│ │ ├── NaviBar.csd
│ │ ├── NaviBarWithMenu.csd
│ │ ├── ProgressBox.csd
│ │ ├── RecentListItem.csd
│ │ ├── SelectList.csd
│ │ ├── SelectListItem.csd
│ │ ├── TableView.csd
│ │ ├── TextPairInput.csd
│ │ ├── WinMgrOverlay.csd
│ │ ├── comctrl
│ │ ├── CheckBoxItem.csd
│ │ ├── SelectListItem.csd
│ │ ├── SeperateItem.csd
│ │ ├── SliderIconItem.csd
│ │ ├── SliderTextItem.csd
│ │ └── SubDirItem.csd
│ │ └── help
│ │ ├── AllTips.csd
│ │ ├── MouseModeTips.csd
│ │ ├── ScreenModeTips.csd
│ │ └── TouchModeTips.csd
│ ├── kr2.ccs
│ └── kr2.cfg
├── privacy_policy.txt
├── project
└── android
│ ├── AndroidManifest.xml
│ ├── jni
│ ├── Android.mk
│ ├── Application.mk
│ └── src
│ │ └── SDL_android_main.cpp
│ ├── project.properties
│ └── src
│ └── org
│ └── tvp
│ └── kirikiri2
│ ├── KR2Activity.java
│ ├── Kirikiroid2.java
│ └── MediaStoreHack.java
├── readme.md
└── src
├── core
├── Android.mk
├── base
│ ├── 7zArchive.cpp
│ ├── BinaryStream.cpp
│ ├── BinaryStream.h
│ ├── CharacterSet.cpp
│ ├── CharacterSet.h
│ ├── EventIntf.cpp
│ ├── EventIntf.h
│ ├── PluginIntf.cpp
│ ├── PluginIntf.h
│ ├── ScriptMgnIntf.cpp
│ ├── ScriptMgnIntf.h
│ ├── StorageIntf.cpp
│ ├── StorageIntf.h
│ ├── SysInitIntf.cpp
│ ├── SysInitIntf.h
│ ├── SystemIntf.cpp
│ ├── SystemIntf.h
│ ├── TARArchive.cpp
│ ├── TextStream.cpp
│ ├── TextStream.h
│ ├── UserEvent.h
│ ├── UtilStreams.cpp
│ ├── UtilStreams.h
│ ├── XP3Archive.cpp
│ ├── XP3Archive.h
│ ├── ZIPArchive.cpp
│ ├── common.h
│ ├── tar.h
│ └── win32
│ │ ├── EventImpl.cpp
│ │ ├── EventImpl.h
│ │ ├── FileSelector.cpp
│ │ ├── FileSelector.h
│ │ ├── FuncStubs.cpp
│ │ ├── FuncStubs.h
│ │ ├── NativeEventQueue.cpp
│ │ ├── NativeEventQueue.h
│ │ ├── PluginImpl.cpp
│ │ ├── PluginImpl.h
│ │ ├── ScriptMgnImpl.cpp
│ │ ├── ScriptMgnImpl.h
│ │ ├── StorageImpl.cpp
│ │ ├── StorageImpl.h
│ │ ├── SusieArchive.cpp
│ │ ├── SusieArchive.h
│ │ ├── SysInitImpl.cpp
│ │ ├── SysInitImpl.h
│ │ ├── SystemImpl.cpp
│ │ ├── SystemImpl.h
│ │ └── win32io.h
├── environ
│ ├── Application.cpp
│ ├── Application.h
│ ├── ConfigManager
│ │ ├── GlobalConfigManager.cpp
│ │ ├── GlobalConfigManager.h
│ │ ├── IndividualConfigManager.cpp
│ │ ├── IndividualConfigManager.h
│ │ ├── LocaleConfigManager.cpp
│ │ └── LocaleConfigManager.h
│ ├── DetectCPU.cpp
│ ├── DetectCPU.h
│ ├── DumpSend.cpp
│ ├── Platform.h
│ ├── XP3ArchiveRepack.cpp
│ ├── XP3ArchiveRepack.h
│ ├── android
│ │ ├── AndroidUtils.cpp
│ │ └── AndroidUtils.h
│ ├── cocos2d
│ │ ├── AppDelegate.cpp
│ │ ├── AppDelegate.h
│ │ ├── CCKeyCodeConv.cpp
│ │ ├── CCKeyCodeConv.h
│ │ ├── CustomFileUtils.cpp
│ │ ├── CustomFileUtils.h
│ │ ├── CustomFileUtils.mm
│ │ ├── MainScene.cpp
│ │ ├── MainScene.h
│ │ ├── YUVSprite.cpp
│ │ └── YUVSprite.h
│ ├── combase.h
│ ├── cpu_types.h
│ ├── linux
│ │ └── Platform.cpp
│ ├── sdl
│ │ └── tvpsdl.cpp
│ ├── typedefine.h
│ ├── ui
│ │ ├── BaseForm.cpp
│ │ ├── BaseForm.h
│ │ ├── ConsoleWindow.cpp
│ │ ├── ConsoleWindow.h
│ │ ├── DebugViewLayerForm.cpp
│ │ ├── DebugViewLayerForm.h
│ │ ├── FileSelectorForm.cpp
│ │ ├── FileSelectorForm.h
│ │ ├── GameMainMenu.cpp
│ │ ├── GameMainMenu.h
│ │ ├── GlobalPreferenceForm.cpp
│ │ ├── GlobalPreferenceForm.h
│ │ ├── InGameMenuForm.cpp
│ │ ├── InGameMenuForm.h
│ │ ├── IndividualPreferenceForm.cpp
│ │ ├── IndividualPreferenceForm.h
│ │ ├── MainFileSelectorForm.cpp
│ │ ├── MainFileSelectorForm.h
│ │ ├── MessageBox.cpp
│ │ ├── MessageBox.h
│ │ ├── PreferenceConfig.h
│ │ ├── PreferenceForm.cpp
│ │ ├── PreferenceForm.h
│ │ ├── SeletListForm.cpp
│ │ ├── SeletListForm.h
│ │ ├── SimpleMediaFilePlayer.cpp
│ │ ├── SimpleMediaFilePlayer.h
│ │ ├── TipsHelpForm.cpp
│ │ ├── TipsHelpForm.h
│ │ ├── XP3RepackForm.cpp
│ │ ├── XP3RepackForm.h
│ │ └── extension
│ │ │ ├── ActionExtension.cpp
│ │ │ ├── ActionExtension.h
│ │ │ ├── UIExtension.cpp
│ │ │ └── UIExtension.h
│ ├── vkdefine.h
│ ├── win32
│ │ ├── ApplicationSpecialPath.h
│ │ ├── CompatibleNativeFuncs.cpp
│ │ ├── CompatibleNativeFuncs.h
│ │ ├── ConfigFormUnit.cpp
│ │ ├── ConfigFormUnit.h
│ │ ├── DetectCPU.cpp
│ │ ├── DetectCPU.h
│ │ ├── EmergencyExit.cpp
│ │ ├── EmergencyExit.h
│ │ ├── HintWindow.cpp
│ │ ├── HintWindow.h
│ │ ├── ImeControl.h
│ │ ├── MainFormUnit.cpp
│ │ ├── MainFormUnit.h
│ │ ├── MouseCursor.cpp
│ │ ├── MouseCursor.h
│ │ ├── Platform.cpp
│ │ ├── SystemControl.cpp
│ │ ├── SystemControl.h
│ │ ├── TVPWindow.cpp
│ │ ├── TVPWindow.h
│ │ ├── TouchPoint.cpp
│ │ ├── TouchPoint.h
│ │ ├── VersionFormUnit.cpp
│ │ ├── VersionFormUnit.h
│ │ ├── WindowFormUnit.cpp
│ │ ├── WindowFormUnit.h
│ │ ├── WindowsUtil.cpp
│ │ ├── WindowsUtil.h
│ │ ├── config.h
│ │ └── my_HintWindow.cpp
│ └── win32type.h
├── extension
│ ├── Extension.cpp
│ └── Extension.h
├── movie
│ ├── ffmpeg
│ │ ├── AE.h
│ │ ├── AEAudioFormat.h
│ │ ├── AEChannelData.h
│ │ ├── AEChannelInfo.cpp
│ │ ├── AEChannelInfo.h
│ │ ├── AEFactory.cpp
│ │ ├── AEFactory.h
│ │ ├── AEStream.h
│ │ ├── AEStreamData.h
│ │ ├── AEStreamInfo.cpp
│ │ ├── AEStreamInfo.h
│ │ ├── AEUtil.cpp
│ │ ├── AEUtil.h
│ │ ├── AudioCodec.h
│ │ ├── AudioCodecFFmpeg.cpp
│ │ ├── AudioCodecFFmpeg.h
│ │ ├── AudioCodecPassthrough.cpp
│ │ ├── AudioCodecPassthrough.h
│ │ ├── AudioDevice.cpp
│ │ ├── AudioDevice.h
│ │ ├── BaseRenderer.cpp
│ │ ├── BaseRenderer.h
│ │ ├── BitstreamStats.cpp
│ │ ├── BitstreamStats.h
│ │ ├── Clock.cpp
│ │ ├── Clock.h
│ │ ├── CodecUtils.cpp
│ │ ├── CodecUtils.h
│ │ ├── Codecs.h
│ │ ├── Demux.cpp
│ │ ├── Demux.h
│ │ ├── DemuxFFmpeg.cpp
│ │ ├── DemuxFFmpeg.h
│ │ ├── DemuxPacket.cpp
│ │ ├── DemuxPacket.h
│ │ ├── FactoryCodec.cpp
│ │ ├── FactoryCodec.h
│ │ ├── Geometry.h
│ │ ├── IAudioCallback.h
│ │ ├── IVideoPlayer.h
│ │ ├── InputStream.cpp
│ │ ├── InputStream.h
│ │ ├── KRMovieDef.h
│ │ ├── KRMovieLayer.cpp
│ │ ├── KRMovieLayer.h
│ │ ├── KRMoviePlayer.cpp
│ │ ├── KRMoviePlayer.h
│ │ ├── MathUtils.h
│ │ ├── Message.cpp
│ │ ├── Message.h
│ │ ├── MessageQueue.cpp
│ │ ├── MessageQueue.h
│ │ ├── OptionInfo.h
│ │ ├── ProcessInfo.cpp
│ │ ├── ProcessInfo.h
│ │ ├── Ref.h
│ │ ├── RenderFlags.cpp
│ │ ├── RenderFlags.h
│ │ ├── RenderFormats.h
│ │ ├── StreamInfo.cpp
│ │ ├── StreamInfo.h
│ │ ├── TVPMediaDemux.cpp
│ │ ├── TVPMediaDemux.h
│ │ ├── Thread.cpp
│ │ ├── Thread.h
│ │ ├── TimeUtils.cpp
│ │ ├── TimeUtils.h
│ │ ├── Timer.cpp
│ │ ├── Timer.h
│ │ ├── VideoCodec.cpp
│ │ ├── VideoCodec.h
│ │ ├── VideoCodecFFmpeg.cpp
│ │ ├── VideoCodecFFmpeg.h
│ │ ├── VideoPlayer.cpp
│ │ ├── VideoPlayer.h
│ │ ├── VideoPlayerAudio.cpp
│ │ ├── VideoPlayerAudio.h
│ │ ├── VideoPlayerVideo.cpp
│ │ ├── VideoPlayerVideo.h
│ │ ├── VideoReferenceClock.cpp
│ │ ├── VideoReferenceClock.h
│ │ ├── VideoRenderer.cpp
│ │ ├── VideoRenderer.h
│ │ ├── config.h
│ │ └── krffmpeg.cpp
│ └── krmovie.cpp
├── msg
│ ├── MsgIntf.cpp
│ ├── MsgIntf.h
│ ├── MsgIntfInc.h
│ └── win32
│ │ ├── MsgImpl.cpp
│ │ ├── MsgImpl.h
│ │ ├── MsgLoad.cpp
│ │ ├── OptionsDesc.cpp
│ │ ├── OptionsDesc.h
│ │ ├── ReadOptionDesc.cpp
│ │ └── ReadOptionDesc.h
├── sound
│ ├── ARM
│ │ ├── WaveFunctionARM.cpp
│ │ └── wavemix_arm.c
│ ├── CDDAIntf.cpp
│ ├── CDDAIntf.h
│ ├── FFWaveDecoder.cpp
│ ├── FFWaveDecoder.h
│ ├── MIDIIntf.cpp
│ ├── MIDIIntf.h
│ ├── MathAlgorithms.cpp
│ ├── MathAlgorithms.h
│ ├── PhaseVocoderDSP.cpp
│ ├── PhaseVocoderDSP.h
│ ├── PhaseVocoderFilter.cpp
│ ├── PhaseVocoderFilter.h
│ ├── RingBuffer.h
│ ├── SoundBufferBaseIntf.cpp
│ ├── SoundBufferBaseIntf.h
│ ├── VorbisWaveDecoder.cpp
│ ├── VorbisWaveDecoder.h
│ ├── WaveFormatConverter.cpp
│ ├── WaveFormatConverter_SSE.cpp
│ ├── WaveIntf.cpp
│ ├── WaveIntf.h
│ ├── WaveLoopManager.cpp
│ ├── WaveLoopManager.h
│ ├── WaveSegmentQueue.cpp
│ ├── WaveSegmentQueue.h
│ └── win32
│ │ ├── CDDAImpl.cpp
│ │ ├── CDDAImpl.h
│ │ ├── MIDIImpl.cpp
│ │ ├── MIDIImpl.h
│ │ ├── SoundBufferBaseImpl.cpp
│ │ ├── SoundBufferBaseImpl.h
│ │ ├── WaveImpl.cpp
│ │ ├── WaveImpl.h
│ │ ├── WaveMixer.cpp
│ │ ├── WaveMixer.h
│ │ ├── kmp_pi.h
│ │ ├── oldwaveunpacker.h
│ │ ├── tvpsnd.c
│ │ ├── tvpsnd.cpp
│ │ ├── tvpsnd.h
│ │ └── tvpsnd.idl
├── tjs2
│ ├── tjs.cpp
│ ├── tjs.h
│ ├── tjs.tab.cpp
│ ├── tjs.tab.h
│ ├── tjs.tab.hpp
│ ├── tjsArray.cpp
│ ├── tjsArray.h
│ ├── tjsBinarySerializer.cpp
│ ├── tjsBinarySerializer.h
│ ├── tjsByteCodeLoader.cpp
│ ├── tjsByteCodeLoader.h
│ ├── tjsCommHead.h
│ ├── tjsCompileControl.cpp
│ ├── tjsCompileControl.h
│ ├── tjsConfig.cpp
│ ├── tjsConfig.h
│ ├── tjsConstArrayData.cpp
│ ├── tjsConstArrayData.h
│ ├── tjsDate.cpp
│ ├── tjsDate.h
│ ├── tjsDateParser.cpp
│ ├── tjsDateParser.h
│ ├── tjsDateWordMap.cc
│ ├── tjsDebug.cpp
│ ├── tjsDebug.h
│ ├── tjsDictionary.cpp
│ ├── tjsDictionary.h
│ ├── tjsDisassemble.cpp
│ ├── tjsError.cpp
│ ├── tjsError.h
│ ├── tjsErrorDefs.h
│ ├── tjsErrorInc.h
│ ├── tjsError_jp.h
│ ├── tjsException.cpp
│ ├── tjsException.h
│ ├── tjsGlobalStringMap.cpp
│ ├── tjsGlobalStringMap.h
│ ├── tjsHashSearch.h
│ ├── tjsInterCodeExec.cpp
│ ├── tjsInterCodeExec.h
│ ├── tjsInterCodeGen.cpp
│ ├── tjsInterCodeGen.h
│ ├── tjsInterface.cpp
│ ├── tjsInterface.h
│ ├── tjsLex.cpp
│ ├── tjsLex.h
│ ├── tjsMT19937ar-cok.cpp
│ ├── tjsMT19937ar-cok.h
│ ├── tjsMath.cpp
│ ├── tjsMath.h
│ ├── tjsMessage.cpp
│ ├── tjsMessage.h
│ ├── tjsNamespace.cpp
│ ├── tjsNamespace.h
│ ├── tjsNative.cpp
│ ├── tjsNative.h
│ ├── tjsObject.cpp
│ ├── tjsObject.h
│ ├── tjsObjectExtendable.cpp
│ ├── tjsObjectExtendable.h
│ ├── tjsOctPack.cpp
│ ├── tjsOctPack.h
│ ├── tjsRandomGenerator.cpp
│ ├── tjsRandomGenerator.h
│ ├── tjsRegExp.cpp
│ ├── tjsRegExp.h
│ ├── tjsScriptBlock.cpp
│ ├── tjsScriptBlock.h
│ ├── tjsScriptCache.cpp
│ ├── tjsScriptCache.h
│ ├── tjsString.cpp
│ ├── tjsString.h
│ ├── tjsTypes.h
│ ├── tjsUtils.cpp
│ ├── tjsUtils.h
│ ├── tjsVariant.cpp
│ ├── tjsVariant.h
│ ├── tjsVariantString.cpp
│ ├── tjsVariantString.h
│ ├── tjsdate.tab.cpp
│ ├── tjsdate.tab.h
│ ├── tjsdate.tab.hpp
│ ├── tjspp.tab.cpp
│ └── tjspp.tab.hpp
├── utils
│ ├── ClipboardIntf.cpp
│ ├── ClipboardIntf.h
│ ├── DebugIntf.cpp
│ ├── DebugIntf.h
│ ├── Debugger.h
│ ├── Exception.h
│ ├── FilePathUtil.h
│ ├── KAGParser.cpp
│ ├── KAGParser.h
│ ├── MathAlgorithms.h
│ ├── MathAlgorithms_Default.cpp
│ ├── MathAlgorithms_Default.h
│ ├── MiscUtility.cpp
│ ├── ObjectList.h
│ ├── PadIntf.cpp
│ ├── PadIntf.h
│ ├── Random.cpp
│ ├── Random.h
│ ├── RealFFT.h
│ ├── RealFFT_Default.cpp
│ ├── StringUtil.h
│ ├── ThreadIntf.cpp
│ ├── ThreadIntf.h
│ ├── TickCount.cpp
│ ├── TickCount.h
│ ├── TimerIntf.cpp
│ ├── TimerIntf.h
│ ├── VelocityTracker.cpp
│ ├── VelocityTracker.h
│ ├── encoding
│ │ ├── gbk2unicode.c
│ │ └── jis2unicode.c
│ ├── iconv
│ │ ├── iconv.h
│ │ └── utf8.h
│ ├── md5.c
│ ├── md5.h
│ ├── minizip
│ │ ├── crypt.h
│ │ ├── ioapi.cpp
│ │ ├── ioapi.h
│ │ ├── unzip.c
│ │ ├── unzip.h
│ │ ├── zip.c
│ │ └── zip.h
│ └── win32
│ │ ├── ClipboardImpl.cpp
│ │ ├── ClipboardImpl.h
│ │ ├── DebugImpl.cpp
│ │ ├── DebugImpl.h
│ │ ├── PadImpl.cpp
│ │ ├── PadImpl.h
│ │ ├── TVPTimer.cpp
│ │ ├── TVPTimer.h
│ │ ├── ThreadImpl.cpp
│ │ ├── ThreadImpl.h
│ │ ├── TimerImpl.cpp
│ │ └── TimerImpl.h
└── visual
│ ├── ARM
│ ├── AlphaMovie_mjpeg.h
│ ├── tvpgl_arm.cpp
│ └── tvpgl_arm_intf.h
│ ├── BitmapIntf.cpp
│ ├── BitmapIntf.h
│ ├── BitmapLayerTreeOwner.cpp
│ ├── BitmapLayerTreeOwner.h
│ ├── CharacterData.cpp
│ ├── CharacterData.h
│ ├── ComplexRect.cpp
│ ├── ComplexRect.h
│ ├── FontImpl.cpp
│ ├── FontImpl.h
│ ├── FontRasterizer.h
│ ├── FontSystem.cpp
│ ├── FontSystem.h
│ ├── FreeType.cpp
│ ├── FreeType.h
│ ├── FreeTypeFace.h
│ ├── FreeTypeFontRasterizer.cpp
│ ├── FreeTypeFontRasterizer.h
│ ├── GraphicsLoadThread.cpp
│ ├── GraphicsLoadThread.h
│ ├── GraphicsLoaderIntf.cpp
│ ├── GraphicsLoaderIntf.h
│ ├── ImageFunction.cpp
│ ├── ImageFunction.h
│ ├── LayerBitmapIntf.cpp
│ ├── LayerBitmapIntf.h
│ ├── LayerIntf.cpp
│ ├── LayerIntf.h
│ ├── LayerManager.cpp
│ ├── LayerManager.h
│ ├── LayerTreeOwner.h
│ ├── LayerTreeOwnerImpl.cpp
│ ├── LayerTreeOwnerImpl.h
│ ├── LoadBPG.cpp
│ ├── LoadJPEG.cpp
│ ├── LoadJXR.cpp
│ ├── LoadPNG.cpp
│ ├── LoadPVRv3.cpp
│ ├── LoadTLG.cpp
│ ├── LoadTLG.h
│ ├── LoadWEBP.cpp
│ ├── MenuItemIntf.cpp
│ ├── MenuItemIntf.h
│ ├── PrerenderedFont.cpp
│ ├── PrerenderedFont.h
│ ├── RectItf.cpp
│ ├── RectItf.h
│ ├── RenderManager.cpp
│ ├── RenderManager.h
│ ├── RenderManager_software.h
│ ├── SaveTLG.h
│ ├── SaveTLG5.cpp
│ ├── SaveTLG6.cpp
│ ├── TransIntf.cpp
│ ├── TransIntf.h
│ ├── VideoOvlIntf.cpp
│ ├── VideoOvlIntf.h
│ ├── WindowIntf.cpp
│ ├── WindowIntf.h
│ ├── argb.cpp
│ ├── argb.h
│ ├── drawable.h
│ ├── gl
│ ├── ResampleImage.cpp
│ ├── ResampleImage.h
│ ├── ResampleImageInternal.h
│ ├── WeightFunctor.cpp
│ ├── WeightFunctor.h
│ ├── blend_function.cpp
│ ├── blend_functor_c.h
│ ├── blend_util_func.h
│ ├── blend_variation.h
│ └── tvpgl_mathutil.h
│ ├── ogl
│ ├── RenderManager_ogl.cpp
│ ├── RenderManager_ogl_test.hpp
│ ├── astcrt.cpp
│ ├── astcrt.h
│ ├── etcpak.cpp
│ ├── etcpak.h
│ ├── imagepacker.cpp
│ ├── imagepacker.h
│ ├── ogl_common.h
│ ├── pvr.h
│ ├── pvrtc.cpp
│ └── pvrtc.h
│ ├── transhandler.h
│ ├── tvpfontstruc.h
│ ├── tvpgl.cpp
│ ├── tvpgl.h
│ ├── tvpgl_asm_init.h
│ ├── tvphal.h
│ ├── tvpinputdefs.h
│ ├── tvpps.inc
│ ├── voMode.h
│ └── win32
│ ├── BasicDrawDevice.cpp
│ ├── BasicDrawDevice.h
│ ├── BitmapBitsAlloc.cpp
│ ├── BitmapBitsAlloc.h
│ ├── BitmapInfomation.cpp
│ ├── BitmapInfomation.h
│ ├── DInputMgn.cpp
│ ├── DInputMgn.h
│ ├── DrawDevice.cpp
│ ├── DrawDevice.h
│ ├── GDIFontRasterizer.cpp
│ ├── GDIFontRasterizer.h
│ ├── GraphicsLoaderImpl.cpp
│ ├── GraphicsLoaderImpl.h
│ ├── LayerBitmapImpl.cpp
│ ├── LayerBitmapImpl.h
│ ├── LayerImpl.cpp
│ ├── LayerImpl.h
│ ├── MenuItemImpl.cpp
│ ├── MenuItemImpl.h
│ ├── NativeFreeTypeFace.cpp
│ ├── NativeFreeTypeFace.h
│ ├── PassThroughDrawDevice.cpp
│ ├── PassThroughDrawDevice.h
│ ├── TVPColor.h
│ ├── TVPScreen.cpp
│ ├── TVPScreen.h
│ ├── TVPSysFont.cpp
│ ├── TVPSysFont.h
│ ├── VSyncTimingThread.cpp
│ ├── VSyncTimingThread.h
│ ├── VideoOvlImpl.cpp
│ ├── VideoOvlImpl.h
│ ├── WindowImpl.cpp
│ ├── WindowImpl.h
│ └── krmovie.h
└── plugins
├── Android.mk
├── InternalPlugins.cpp
├── LayerExBase.cpp
├── LayerExBase.h
├── PluginStub.h
├── addFont.cpp
├── csvParser.cpp
├── dirlist.cpp
├── fftgraph.cpp
├── getSample.cpp
├── getabout.cpp
├── layerExBase.hpp
├── layerExMovie.cpp
├── layerExPerspective.cpp
├── ncbind
├── ncb_foreach.h
├── ncb_invoke.hpp
├── ncbind.cpp
└── ncbind.hpp
├── saveStruct.cpp
├── tp_stub.h
├── varfile.cpp
├── win32dialog.cpp
├── wutcwf.cpp
├── xp3filter.cpp
└── xp3filter.h
/cocos/kr2/.cocos-project.json:
--------------------------------------------------------------------------------
1 | {
2 | "engine_type": "prebuilt",
3 | "engine_version": "cocos2d-x-3.6",
4 | "project_type": "cpp"
5 | }
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/Cancel_Normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/Cancel_Normal.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/Cancel_Press.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/Cancel_Press.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/CheckBoxNode_Normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/CheckBoxNode_Normal.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/CheckBoxNode_Press.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/CheckBoxNode_Press.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/CheckBox_Disable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/CheckBox_Disable.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/CheckBox_Normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/CheckBox_Normal.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/CheckBox_Press.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/CheckBox_Press.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/about_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/about_icon.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/back_btn_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/back_btn_off.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/back_btn_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/back_btn_on.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/back_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/back_icon.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/circle_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/circle_arrow.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/circle_arrow_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/circle_arrow_normal.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/circle_arrow_press.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/circle_arrow_press.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/circle_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/circle_white.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/empty.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/exit_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/exit_icon.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/gray.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/keyboard_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/keyboard_icon.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/menu_handler.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/menu_handler.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/menu_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/menu_icon.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/menu_press.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/menu_press.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/mouse_2btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/mouse_2btn.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/mouse_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/mouse_icon.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/mouse_left_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/mouse_left_btn.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/mouse_right_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/mouse_right_btn.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/right_triangle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/right_triangle.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/syssetting_btn_ff.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/syssetting_btn_ff.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/syssetting_btn_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/syssetting_btn_on.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/touch1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/touch1.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/touch2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/touch2.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/touch_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/touch_icon.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/triangle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/triangle.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/white.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/img/windows_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/img/windows_icon.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/mouse_2btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/mouse_2btn.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/mouse_left_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/mouse_left_btn.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/mouse_right_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/cocos/kr2/cocosstudio/mouse_right_btn.png
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/ui/BottomBar.csd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/ui/ListItem.csd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/ui/ListView.csd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/ui/SelectListItem.csd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/ui/TableView.csd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/cocos/kr2/cocosstudio/ui/comctrl/SeperateItem.csd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/cocos/kr2/kr2.cfg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | -
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/privacy_policy.txt:
--------------------------------------------------------------------------------
1 | Privacy Policy
2 |
3 | This APP will not collect and store your personal information in any form, including account information and location information, advertising identification, device ID and other private information, and it is impossible to share your information with third parties or other users.
4 |
5 | Privacy Policy Terms
6 |
7 | By using this App, you agree to the terms and conditions of this Privacy Policy. If you do not agree to this policy, please do not use the App. We reserve the right to change, modify, add or delete parts of this policy at any time at our discretion. Please check this page periodically for any revisions. If you continue to use our App after the posting of any changes to these terms will mean that you have accepted those adjustments.
8 |
9 |
--------------------------------------------------------------------------------
/project/android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
25 |
27 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/project/android/jni/Android.mk:
--------------------------------------------------------------------------------
1 | #ndk-build MODULE_PATH=jni
2 |
3 | LOCAL_PATH := $(call my-dir)
4 |
5 | include $(CLEAR_VARS)
6 |
7 | LOCAL_MODULE := kirikiri2
8 |
9 | LOCAL_MODULE_FILENAME := libgame
10 |
11 | LOCAL_SRC_FILES := src/SDL_android_main.cpp
12 |
13 | LOCAL_LDLIBS := -lGLESv1_CM -llog -ldl -lGLESv2 -landroid -lm
14 | LOCAL_LDLIBS += -Wl,--wrap=malloc -Wl,--wrap=free -Wl,--wrap=realloc -Wl,--wrap=calloc
15 |
16 | LOCAL_C_INCLUDES := \
17 | $(LOCAL_PATH)/../../../vendor/libgdiplus/src \
18 | $(LOCAL_PATH)/../../../vendor/google_breakpad/current/src \
19 | $(LOCAL_PATH)/../../../vendor/google_breakpad/current/src/common/android/include \
20 | $(LOCAL_PATH)/../../../src/core/environ \
21 | $(LOCAL_PATH)/../../../src/core/environ/android \
22 | $(LOCAL_PATH)/../../../src/core/tjs2 \
23 | $(LOCAL_PATH)/../../../src/core/base \
24 | $(LOCAL_PATH)/../../../src/core/visual \
25 | $(LOCAL_PATH)/../../../src/core/visual/win32 \
26 | $(LOCAL_PATH)/../../../src/core/sound \
27 | $(LOCAL_PATH)/../../../src/core/sound/win32 \
28 | $(LOCAL_PATH)/../../../src/core/utils \
29 |
30 | LOCAL_WHOLE_STATIC_LIBRARIES := kr2plugin krkr2 krkr2_neon_opt cocos2dx_static
31 | #LOCAL_WHOLE_STATIC_LIBRARIES += tcmalloc
32 | LOCAL_STATIC_LIBRARIES := android-ndk-profiler
33 | LOCAL_CPPFLAGS += -Dtypeof=decltype
34 |
35 | include $(BUILD_SHARED_LIBRARY)
36 | $(call import-module, core)
37 | $(call import-module, ARM_neon)
38 | $(call import-module, plugins)
39 | #$(call import-module, png) #cocos
40 | #$(call import-module, jpeg) #cocos
41 | $(call import-module, cocos)
42 | #$(call import-module, tcmalloc)
43 | #$(call import-module, ../../../vendor/libgdiplus/jni)
--------------------------------------------------------------------------------
/project/android/jni/Application.mk:
--------------------------------------------------------------------------------
1 | APP_STL := gnustl_static
2 | APP_CPPFLAGS := -fexceptions -std=c++11
3 | APP_CPPFLAGS += -O3 -DNDEBUG -Wno-inconsistent-missing-override
4 | #APP_CPPFLAGS += -D__DO_PROF__ -g -pg
5 | APP_ABI := armeabi-v7a
6 | APP_ABI += arm64-v8a
7 | APP_PLATFORM := android-10
8 | #NDK_TOOLCHAIN_VERSION := 4.9
9 | NDK_TOOLCHAIN_VERSION := clang
--------------------------------------------------------------------------------
/project/android/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-22
15 | android.library.reference.1=../../vendor/cocos2d-x/current/cocos/platform/android/java
16 |
--------------------------------------------------------------------------------
/project/android/src/org/tvp/kirikiri2/Kirikiroid2.java:
--------------------------------------------------------------------------------
1 | package org.tvp.kirikiri2;
2 |
3 | import java.io.BufferedInputStream;
4 | import java.io.File;
5 | import java.io.FileInputStream;
6 | import java.io.FileNotFoundException;
7 | import java.io.FileOutputStream;
8 | import java.io.IOException;
9 | import java.io.UnsupportedEncodingException;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import java.net.URLConnection;
13 | import java.net.URLEncoder;
14 | import java.util.Date;
15 |
16 | import android.app.AlertDialog;
17 | import android.app.ProgressDialog;
18 | import android.content.DialogInterface;
19 | import android.os.Bundle;
20 | import android.os.Environment;
21 | import android.os.Handler;
22 | import android.os.Message;
23 |
24 | public class Kirikiroid2 extends KR2Activity {
25 |
26 | @Override
27 | public int get_res_sd_operate_step() { return R.drawable.sd_operate_step; }
28 | }
29 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | Kirikiroid2 - A cross-platform port of Kirikiri2/KirikiriZ
2 | ==========================================================
3 |
4 | Based on most code from [Kirikiri2](http://kikyou.info/tvp/) and [KirikiriZ](https://github.com/krkrz/krkrz)
5 |
6 | Video playback module modified from [kodi](https://github.com/xbmc/xbmc)
7 |
8 | Some string code from [glibc](https://www.gnu.org/s/libc) and [Apple Libc](https://opensource.apple.com/source/Libc).
9 |
10 | Real-time texture codec modified from [etcpak](https://bitbucket.org/wolfpld/etcpak.git), [pvrtccompressor](https://bitbucket.org/jthlim/pvrtccompressor), [astcrt](https://github.com/daoo/astcrt)
11 |
12 | Android storage accessing code from [AmazeFileManager](https://github.com/arpitkh96/AmazeFileManager)
13 |
--------------------------------------------------------------------------------
/src/core/base/BinaryStream.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // Text read/write stream
10 | //---------------------------------------------------------------------------
11 | #ifndef BinaryStreamH
12 | #define BinaryStreamH
13 |
14 |
15 | #include "StorageIntf.h"
16 |
17 | //---------------------------------------------------------------------------
18 | // BinaryStream Functions
19 | //---------------------------------------------------------------------------
20 | TJS_EXP_FUNC_DEF(tTJSBinaryStream *, TVPCreateBinaryStreamForRead, (const ttstr &name, const ttstr &modestr));
21 | TJS_EXP_FUNC_DEF(tTJSBinaryStream *, TVPCreateBinaryStreamForWrite, (const ttstr &name, const ttstr &modestr));
22 | //---------------------------------------------------------------------------
23 |
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/src/core/base/CharacterSet.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/src/core/base/CharacterSet.cpp
--------------------------------------------------------------------------------
/src/core/base/CharacterSet.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // Character code conversion
10 | //---------------------------------------------------------------------------
11 |
12 | #ifndef __CharacterSet_H__
13 | #define __CharacterSet_H__
14 |
15 | // various character conding conversion.
16 | // currently only utf-8 related functions are implemented.
17 | #include "tjsTypes.h"
18 |
19 |
20 | TJS_EXP_FUNC_DEF(tjs_int, TVPWideCharToUtf8String, (const tjs_char *in, char * out));
21 | TJS_EXP_FUNC_DEF(tjs_int, TVPUtf8ToWideCharString, (const char * in, tjs_char *out));
22 |
23 | extern tjs_int TVPUtf8ToWideCharString(const char * in, tjs_uint length, tjs_char *out);
24 |
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/src/core/base/PluginIntf.cpp:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // "Plugins" class interface
10 | //---------------------------------------------------------------------------
11 | #include "tjsCommHead.h"
12 |
13 |
14 | #include "PluginIntf.h"
15 | #include "MsgIntf.h"
16 |
17 |
18 | //---------------------------------------------------------------------------
19 | // tTJSNC_Plugins
20 | //---------------------------------------------------------------------------
21 | tjs_uint32 tTJSNC_Plugins::ClassID = -1;
22 | tTJSNC_Plugins::tTJSNC_Plugins() : inherited(TJS_W("Plugins"))
23 | {
24 | // registration of native members
25 |
26 | TJS_BEGIN_NATIVE_MEMBERS(Plugins)
27 | TJS_DECL_EMPTY_FINALIZE_METHOD
28 | //----------------------------------------------------------------------
29 |
30 | //-- methods
31 |
32 | //----------------------------------------------------------------------
33 |
34 | //--properties
35 |
36 | //---------------------------------------------------------------------------
37 |
38 | TJS_END_NATIVE_MEMBERS
39 | }
40 | //---------------------------------------------------------------------------
41 | tTJSNativeInstance * tTJSNC_Plugins::CreateNativeInstance()
42 | {
43 | // this class cannot create an instance
44 | TVPThrowExceptionMessage(TVPCannotCreateInstance);
45 | return NULL;
46 | }
47 | //---------------------------------------------------------------------------
48 |
49 |
--------------------------------------------------------------------------------
/src/core/base/PluginIntf.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // "Plugins" class interface
10 | //---------------------------------------------------------------------------
11 | #ifndef PluginIntfH
12 | #define PluginIntfH
13 |
14 | #include "tjsNative.h"
15 | #if 0
16 | #ifndef __stdcall
17 | #define __stdcall
18 | #endif
19 | #ifndef __cdecl
20 | #define __cdecl
21 | #endif
22 | #ifndef _stdcall
23 | #define _stdcall
24 | #endif
25 | #ifndef _cdecl
26 | #define _cdecl
27 | #endif
28 | #endif
29 |
30 | //---------------------------------------------------------------------------
31 | // tTJSNC_Plugins : TJS Plugins class
32 | //---------------------------------------------------------------------------
33 | class tTJSNC_Plugins : public tTJSNativeClass
34 | {
35 | typedef tTJSNativeClass inherited;
36 |
37 | public:
38 | tTJSNC_Plugins();
39 | static tjs_uint32 ClassID;
40 |
41 | protected:
42 | tTJSNativeInstance *CreateNativeInstance();
43 | };
44 | //---------------------------------------------------------------------------
45 | extern tTJSNativeClass * TVPCreateNativeClass_Plugins();
46 | //---------------------------------------------------------------------------
47 |
48 |
49 | #endif
50 |
--------------------------------------------------------------------------------
/src/core/base/ScriptMgnIntf.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/src/core/base/ScriptMgnIntf.cpp
--------------------------------------------------------------------------------
/src/core/base/SystemIntf.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // "System" class interface
10 | //---------------------------------------------------------------------------
11 | #ifndef SystemIntfH
12 | #define SystemIntfH
13 | #include "tjsNative.h"
14 |
15 | //---------------------------------------------------------------------------
16 | // tTJSNC_System : TJS System class
17 | //---------------------------------------------------------------------------
18 | class tTJSNC_System : public tTJSNativeClass
19 | {
20 | typedef tTJSNativeClass inherited;
21 |
22 | public:
23 | tTJSNC_System();
24 | static tjs_uint32 ClassID;
25 |
26 | protected:
27 | tTJSNativeInstance *CreateNativeInstance();
28 | };
29 | //---------------------------------------------------------------------------
30 | extern tTJSNativeClass * TVPCreateNativeClass_System();
31 | //---------------------------------------------------------------------------
32 |
33 | //---------------------------------------------------------------------------
34 | TJS_EXP_FUNC_DEF(ttstr, TVPGetPlatformName, ());
35 | // retrieve platform name (eg. "Win32")
36 | // implement in each platform.
37 | TJS_EXP_FUNC_DEF(ttstr, TVPGetOSName, ());
38 | // retrieve OS name
39 | // implement in each platform.
40 | extern void TVPFireOnApplicationActivateEvent(bool activate_or_deactivate);
41 | extern tjs_int TVPGetOSBits();
42 | //---------------------------------------------------------------------------
43 | #endif
44 |
--------------------------------------------------------------------------------
/src/core/base/TextStream.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // Text read/write stream
10 | //---------------------------------------------------------------------------
11 | #ifndef TextStreamH
12 | #define TextStreamH
13 |
14 |
15 | #include "StorageIntf.h"
16 |
17 | //---------------------------------------------------------------------------
18 | // TextStream Functions
19 | //---------------------------------------------------------------------------
20 | TJS_EXP_FUNC_DEF(iTJSTextReadStream *, TVPCreateTextStreamForRead, (const ttstr &name, const ttstr &modestr));
21 | TJS_EXP_FUNC_DEF(iTJSTextWriteStream *, TVPCreateTextStreamForWrite, (const ttstr &name, const ttstr &modestr));
22 | TJS_EXP_FUNC_DEF(void, TVPSetDefaultReadEncoding, (const ttstr& encoding));
23 | TJS_EXP_FUNC_DEF(const tjs_char*, TVPGetDefaultReadEncoding, ());
24 | bool TVPStringDecode(const void *p, int len, ttstr& result, ttstr encoding = "utf8");
25 | bool TVPStringEncode(const ttstr &s, std::string &result, ttstr encoding = "utf8");
26 | //---------------------------------------------------------------------------
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/src/core/base/UserEvent.h:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ifndef __USER_EVENT_H__
4 | #define __USER_EVENT_H__
5 |
6 | #ifndef WM_APP
7 | #define WM_APP 0x10000
8 | #endif
9 | #define TVP_EV_TIMER_THREAD (WM_APP + 1)
10 | #define TVP_EV_WAVE_SND_BUF_THREAD (TVP_EV_TIMER_THREAD + 1)
11 | #define TVP_EV_VSYNC_TIMING_THREAD (TVP_EV_WAVE_SND_BUF_THREAD + 1)
12 | #define TVP_EV_CONTINUE_LIMIT_THREAD (TVP_EV_VSYNC_TIMING_THREAD + 1)
13 | #define TVP_EV_DELIVER_EVENTS_DUMMY (TVP_EV_CONTINUE_LIMIT_THREAD + 1)
14 | #define TVP_EV_KEEP_ALIVE (TVP_EV_DELIVER_EVENTS_DUMMY + 1)
15 | #define TVP_EV_IMAGE_LOAD_THREAD (TVP_EV_KEEP_ALIVE + 1)
16 | #define TVP_EV_WINDOW_RELEASE (TVP_EV_IMAGE_LOAD_THREAD + 1)
17 |
18 | #endif // __USER_EVENT_H__
19 |
20 |
--------------------------------------------------------------------------------
/src/core/base/common.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000-2007 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // TVP2 common header file
10 | //---------------------------------------------------------------------------
11 |
12 | #ifndef __CommonH__
13 | #define __CommonH__
14 |
15 | #include "tjsConfig.h"
16 |
17 | #include "config.h"
18 |
19 | #include
20 |
21 |
22 | using namespace TJS;
23 |
24 | typedef std::basic_string stdstring;
25 | typedef std::basic_string stdnstring;
26 |
27 |
28 |
29 | #endif
30 |
31 |
--------------------------------------------------------------------------------
/src/core/base/win32/EventImpl.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // Script Event Handling and Dispatching
10 | //---------------------------------------------------------------------------
11 | #ifndef EventImplH
12 | #define EventImplH
13 |
14 | #include "EventIntf.h"
15 |
16 | //---------------------------------------------------------------------------
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/core/base/win32/FileSelector.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // File Selector dialog box
10 | //---------------------------------------------------------------------------
11 | #ifndef FileSelectorH
12 | #define FileSelectorH
13 | //---------------------------------------------------------------------------
14 |
15 | #include "tjs.h"
16 |
17 |
18 | extern bool TVPSelectFile(iTJSDispatch2 *params);
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/src/core/base/win32/FuncStubs.h:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000-2009 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | /* This file is always generated by makestub.pl . */
9 | /* Modification by hand will be lost. */
10 |
11 | extern void TVPExportFunctions();
12 |
13 |
--------------------------------------------------------------------------------
/src/core/base/win32/NativeEventQueue.cpp:
--------------------------------------------------------------------------------
1 | #include "tjsCommHead.h"
2 | #include "NativeEventQueue.h"
3 | #include "Application.h"
4 |
5 | void NativeEventQueueImplement::PostEvent(const NativeEvent& ev) {
6 | Application->PostUserMessage([this, ev](){ Dispatch(*const_cast(&ev)); }, this);
7 | }
8 |
9 | void NativeEventQueueImplement::Clear(int msg)
10 | {
11 | Application->FilterUserMessage([this, msg](std::vector > &lst){
12 | for (auto it = lst.begin(); it != lst.end();) {
13 | if (std::get<0>(*it) == this && (!msg || std::get<1>(*it) == msg)) {
14 | it = lst.erase(it);
15 | } else {
16 | ++it;
17 | }
18 | }
19 | });
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/src/core/base/win32/NativeEventQueue.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/src/core/base/win32/NativeEventQueue.h
--------------------------------------------------------------------------------
/src/core/base/win32/ScriptMgnImpl.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000-2007 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // TJS2 Script Managing
10 | //---------------------------------------------------------------------------
11 | #ifndef ScriptMgnImplH
12 | #define ScriptMgnImplH
13 |
14 |
15 | #include "ScriptMgnIntf.h"
16 |
17 |
18 |
19 |
20 | //---------------------------------------------------------------------------
21 | // TVPInitializeStartupScript
22 | //---------------------------------------------------------------------------
23 | extern void TVPInitializeStartupScript();
24 | //extern bool TVPCheckProcessLog(int argc, char *argv[]);
25 |
26 | //---------------------------------------------------------------------------
27 | #endif
28 |
--------------------------------------------------------------------------------
/src/core/base/win32/SusieArchive.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // Archive eXtractor Susie plug-in support
10 | //---------------------------------------------------------------------------
11 | #ifndef SusieArchiveH
12 | #define SusieArchiveH
13 | //---------------------------------------------------------------------------
14 | #include "StorageIntf.h"
15 |
16 | void TVPLoadArchiveSPI(HINSTANCE inst);
17 | void TVPUnloadArchiveSPI(HINSTANCE inst);
18 | class tTVPArchive;
19 | tTVPArchive * TVPOpenSusieArchive(const ttstr & name);
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/core/base/win32/SysInitImpl.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/src/core/base/win32/SysInitImpl.cpp
--------------------------------------------------------------------------------
/src/core/base/win32/SysInitImpl.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // System Initialization and Uninitialization
10 | //---------------------------------------------------------------------------
11 | #ifndef SysInitImplH
12 | #define SysInitImplH
13 |
14 | //---------------------------------------------------------------------------
15 | extern void TVPDumpHWException();
16 |
17 | extern void TVPInitializeBaseSystems();
18 |
19 | extern ttstr TVPNativeProjectDir;
20 | extern ttstr TVPNativeDataPath;
21 |
22 | extern bool TVPProjectDirSelected;
23 | extern void TVPEnsureDataPathDirectory();
24 |
25 |
26 | extern bool TVPExecuteUserConfig();
27 |
28 | extern bool TVPTerminated;
29 | extern bool TVPTerminateOnWindowClose;
30 | extern bool TVPTerminateOnNoWindowStartup;
31 | extern int TVPTerminateCode;
32 |
33 | //---------------------------------------------------------------------------
34 |
35 |
36 | #include "SysInitIntf.h"
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/src/core/base/win32/SystemImpl.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/src/core/base/win32/SystemImpl.cpp
--------------------------------------------------------------------------------
/src/core/base/win32/SystemImpl.h:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | /*
3 | TVP2 ( T Visual Presenter 2 ) A script authoring tool
4 | Copyright (C) 2000 W.Dee and contributors
5 |
6 | See details of license at "license.txt"
7 | */
8 | //---------------------------------------------------------------------------
9 | // "System" class implementation
10 | //---------------------------------------------------------------------------
11 | #ifndef SystemImplH
12 | #define SystemImplH
13 | //---------------------------------------------------------------------------
14 | TJS_EXP_FUNC_DEF(bool, TVPGetAsyncKeyState, (tjs_uint keycode, bool getcurrent = true));
15 | //---------------------------------------------------------------------------
16 | extern void TVPPostApplicationActivateEvent();
17 | extern void TVPPostApplicationDeactivateEvent();
18 | extern bool TVPShellExecute(const ttstr &target, const ttstr ¶m);
19 | extern void TVPDoSaveSystemVariables();
20 | //---------------------------------------------------------------------------
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/core/base/win32/win32io.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #ifdef WIN32
3 | // posix io api
4 | extern "C" {
5 | extern __int64 __cdecl lseek64(int _FileHandle, __int64 _Offset, int _Origin);
6 | extern void* valloc(int n);
7 | extern void vfree(void *p);
8 | }
9 | #endif
10 | #ifdef CC_TARGET_OS_IPHONE
11 | #define lseek64 lseek
12 | #endif
--------------------------------------------------------------------------------
/src/core/environ/Application.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/src/core/environ/Application.cpp
--------------------------------------------------------------------------------
/src/core/environ/Application.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zeas2/Kirikiroid2/d1c2b1259423542c893e0b65eaeb46c848848f2b/src/core/environ/Application.h
--------------------------------------------------------------------------------
/src/core/environ/ConfigManager/GlobalConfigManager.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include
3 | #include
4 | #include
5 | #include