I also noticed in the example that they use this for rendering. Download If you would like to install Paint.NET, please use one of the buttons. returning from main() returns to hbmenu when run under ninjhax Paint.NET is free image and photo editing software for computers that run Windows. close the file because we like being nice and tidy Ret=FSFILE_Write(fileHandle, &bytesWritten, 0x0, buffer,FS_WRITE_FLUSH) //RELYS: Not sure if we want to use FS_WRITE_FLUSH or FS_WRITE_NOFLUSH Memcpy(buffer,gfxGetFramebuffer(GFX_BOTTOM, GFX_BOTTOM, NULL, NULL), size) allocate a buffer on linear heap (could just be a malloc fwiw) Size=320*240*3 // RELYS: x resolution * y resolution * 3 colors per pixel check for errors : exit if there is one Not sure if FS_ATTRIBUTE_NONE needs to be changed to FS_ATTRIBUTE_ARCHIVE ![]() ![]() Result ret=FSUSER_OpenFileDirectly(NULL, &fileHandle, sdmcArchive, filePath, FS_OPEN_CREATE, FS_ATTRIBUTE_NONE) //RELYS: Changed FS_OPEN_READ to FS_OPEN_CREATE. create file path struct (note : FS_makePath actually only supports PATH_CHAR, it will change in the future)įS_path filePath=FS_makePath(PATH_CHAR, "/test.bin")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |