diff --git a/trunk/CardSaveData/Mover/Imp/OMakefile b/trunk/CardSaveData/Mover/Imp/OMakefile index c530e20..39a742c 100644 --- a/trunk/CardSaveData/Mover/Imp/OMakefile +++ b/trunk/CardSaveData/Mover/Imp/OMakefile @@ -40,9 +40,9 @@ LIBS += libnn_ps IMPORTEE_CIA = importee.cia -#SRC_IMPORTEE_PATH = ../body/images/$(BUILD_TARGET_DIR)/$(BUILD_TYPE_DIR)/CtrSaveDataMover.cia +SRC_IMPORTEE_PATH = ../body/images/$(BUILD_TARGET_DIR)/$(BUILD_TYPE_DIR)/CtrSaveDataMover.cia #とりあえず、マスタリング時は直おき、配置時に改名 -SRC_IMPORTEE_PATH = CtrSaveDataMover_master.cia +#SRC_IMPORTEE_PATH = CtrSaveDataMover_master.cia # ビルドタイプ別に romfs を作る #ROMFS_ROOT = $`(TARGET.getObjectDirectory)/romfsroot diff --git a/trunk/CardSaveData/Mover/Imp/source/main.cpp b/trunk/CardSaveData/Mover/Imp/source/main.cpp index e7936a2..8458556 100644 --- a/trunk/CardSaveData/Mover/Imp/source/main.cpp +++ b/trunk/CardSaveData/Mover/Imp/source/main.cpp @@ -80,7 +80,7 @@ bool ImportFile(nn::fs::MediaType mediaType, wchar_t* filename) while(s32 read = in.Read(readBuf, READ_BUFFER_SIZE)) { - stream->Write(readBuf, read); + stream->Write(readBuf, read,true); } result = nn::am::EndImportProgram(stream); } @@ -250,7 +250,8 @@ void nnMain( void ) s32 fsize; extern bool prohibitHome;// HOME ボタン禁止 - nn::os::Initialize(); + + //nn::os::Initialize();//SDK4.2 より不要、入れると止まる nn::fs::Initialize(); //DEA-SUPにて推奨のフリーズ暫定対策:無線デーモンを停止 (2011.3.1 現在) @@ -276,7 +277,8 @@ void nnMain( void ) nn::applet::DisableSleep();//スリープ非対応 // ヒープの確保 - appHeap.Initialize(nn::os::GetDeviceMemoryAddress(), nn::os::GetDeviceMemorySize(), nn::os::ALLOCATE_OPTION_LINEAR); + // appHeap.Initialize(nn::os::GetDeviceMemoryAddress(), nn::os::GetDeviceMemorySize(), nn::os::ALLOCATE_OPTION_LINEAR); + appHeap.Initialize(nn::os::GetDeviceMemoryAddress(), nn::os::GetDeviceMemorySize(), 0); const u32 s_GxHeapSize = 0x800000; // RenderSystem の準備