This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Structs and comments taken from uOFW's chkreg pull request #91 https://github.com/uofw/uofw/pull/91 | |
s32 sceIdStorageLookup(u16 key, u32 offset, void *pBuf, u32 len); | |
/** | |
* This structure contains console specific information. It is a subset of the ::SceConsoleId. | |
* Check <openpsid_kernel.h> for possible member values. | |
*/ | |
typedef struct { | |
/* Company code. Set to 1. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tutorial05.c | |
// A pedagogical video player that really works! | |
// | |
// Code based on FFplay, Copyright (c) 2003 Fabrice Bellard, | |
// and a tutorial by Martin Bohme ([email protected]) | |
// Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1 | |
// With updates from https://github.com/chelyaev/ffmpeg-tutorial | |
// Updates tested on: | |
// LAVC 54.59.100, LAVF 54.29.104, LSWS 2.1.101, SDL 1.2.15 | |
// on GCC 4.7.2 in Debian February 2015 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Result AM_GetStorageId(u64 *storageId, FS_MediaType mediatype, u64 titleId) | |
{ | |
Result ret = 0; | |
u32 *cmdbuf = getThreadCommandBuffer(); | |
cmdbuf[0] = IPC_MakeHeader(0x6,3,0); // 0x000600C0 | |
cmdbuf[1] = mediatype; | |
cmdbuf[2] = titleId & 0xffffffff; | |
cmdbuf[3] = (u32)(titleId >> 32); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <3ds.h> | |
#include <stdio.h> | |
u32 getBrightness(u32 screen) | |
{ | |
u32 brightness = 0; | |
u32 result = 0; | |
if (R_SUCCEEDED(gspLcdInit())) | |
{ |