Coder Social home page Coder Social logo

ntr's Introduction

NTR

ntr's People

Contributors

44670 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ntr's Issues

Makefile issue(?)

Seems due to the nature of bootloader.s, you need -pie passed to the linker. But that only solves half the problem. With -pie, the payload can run and everything is fine up till BootNTR says 'exiting...' then it crashes and ntr menu doesnt work.

Update GSP patch address for 11.6 to enable brightness control past version 11.3

from source/tools.c

line 651

 int GSPPid = 0x14;
int isGSPPatchRequired = 0;
uintptr_t gspPatchAddr = 0;
int bklightValue = 50;

int checkBacklightSupported() {

	
	Handle hGSPProcess = 0;
	u32 ret;
	u8 buf[16] = { 0 };
	static u8 desiredHeader[16] = { 0x30, 0x40, 0x2D, 0xE9, 0x00, 0x40, 0xA0, 0xE1, 0x01, 0x5C, 0x80, 0xE2, 0x8C, 0x01, 0xD0, 0xE5 };

	if (!(ntrConfig->isNew3DS)) {
		return 1;
	}

	ret = svc_openProcess(&hGSPProcess, GSPPid);
	if (ret != 0) {
		return 0;
	}
	gspPatchAddr = 0x0010740C;
	copyRemoteMemory(getCurrentProcessHandle(), buf, hGSPProcess, (void*) gspPatchAddr, 16);

	if (memcmp(buf, desiredHeader, 16) == 0) {
		goto requirePatch;
	}

	// 11.3.0
	gspPatchAddr = 0x0010743C;
	copyRemoteMemory(getCurrentProcessHandle(), buf, hGSPProcess, (void*) gspPatchAddr, 16);

	if (memcmp(buf, desiredHeader, 16) == 0) {
		goto requirePatch;
	}

	svc_closeHandle(hGSPProcess);
	return 0;

requirePatch:
	svc_closeHandle(hGSPProcess);
	isGSPPatchRequired = 1;
	return 1;
}

This would fix the brightness control not working in system versions past 11.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.