xboxscene.org forums

Pages: 1 [2] 3

Author Topic: Clock Setting In Ndure And Nkpatcher?  (Read 131 times)

triggernum5

  • Archived User
  • Hero Member
  • *
  • Posts: 896
Clock Setting In Ndure And Nkpatcher?
« Reply #15 on: September 11, 2005, 03:52:00 PM »

QUOTE
OPENREAD listFile date.txt
READFILELN listFile fileline
Set date %fileline%
READFILELN listFile fileline
Set month %fileline%
READFILELN listFile fileline
Set year %fileline%
CLOSEFILE listFile
Add date 1

IF# %date% > 28 GOTO NEWMONTH

:CHECKMONTH
IF# %month% > 12 GOTO NEWYEAR

:SETDATE
OPENWrite listFile date.txt
WRITEFILELN listFile %date%
WRITEFILELN listFile %month%
WRITEFILELN listFile %year%
CLOSEFILE listFile
Date %date% %month% %year%
GOTO DATEDONE

:NEWMONTH
Add month 1
SET date 1
GOTO CHECKMONTH

:NEWYEAR
Add year 1
SET month 1
GOTO SETDATE

:DATEDONE
EXEC "c:\\avalaunch.xbe"


mxm:\date.txt
QUOTE
11
9
5


Logged

xman954

  • Archived User
  • Hero Member
  • *
  • Posts: 835
Clock Setting In Ndure And Nkpatcher?
« Reply #16 on: September 11, 2005, 09:34:00 PM »

QUOTE(dus @ Sep 11 2005, 03:21 PM)
I'm unsure if 1970 is the 'unset' value. According to the SetSystemTime  documentation the base is January 1, 1601 (UTC). Also check the following post by rmenhal that mentions setting the clock to zero!


found out the hard way anything less then 2000 will
set a strange year 8709 and anything more then 2100 will
do the same but nothing will kick it to the clock menu.

it look like the RTC is in MCPX the 32.768 xtal goes stright to it.
and if it's like other RTC there is a status reg that indcates
that there was power down and the clock needs to be set
but when the system call (set time) is made by the fonts it must clear it
so the ms dash never sees it

i do have working code that tests the time and if it was set by the
fonts it will run a .xbe and then you can IGR to dashboard_path

i have zero documentation it's learn as you go...
so what value is January 1, 1601 (UTC)
Logged

triggernum5

  • Archived User
  • Hero Member
  • *
  • Posts: 896
Clock Setting In Ndure And Nkpatcher?
« Reply #17 on: September 11, 2005, 10:52:00 PM »

Perhaps do what unleashx does to set the clock..  We'd need a separate xbe to mimick the ms clock settings..
Logged

PedrosPad

  • Archived User
  • Hero Member
  • *
  • Posts: 1277
Clock Setting In Ndure And Nkpatcher?
« Reply #18 on: September 12, 2005, 03:17:00 AM »

QUOTE(triggernum5 @ Sep 11 2005, 04:03 PM)
Question:  Can you program the time without invoking msdash, with i2c maybe?  Duh, there must be a way since fonts have been doing it for years..smile.gif
Logged

xman954

  • Archived User
  • Hero Member
  • *
  • Posts: 835
Clock Setting In Ndure And Nkpatcher?
« Reply #19 on: September 12, 2005, 09:32:00 AM »

blink.gif

QUOTE
The LD_LAUNCH_DASHBOARD structure is used in the XLaunchNewImage function to specify the reason that the Xbox Dashboard is being launched by the title.
dwReason = XLD_LAUNCH_DASHBOARD_SETTINGS,
dwParameter1 = XLD_SETTINGS_CLOCK Adjust the clock.


part of the 007 hack
QUOTE
6800000000 push 00000000 ; param 2 = NULL
8D857F010000 lea eax, dword ptr [ebp+0000017F]   
50 push eax ; param 1 = "D:\UDATA\4541000d\000000000000\default.xbe"
FF95F7000000 call dword ptr [ebp+000000F7] ; call XLaunchNewImage
 
EBFE jmp 000000F5 ; infinite loop


so: ????????
CODE

XLaunchNewImage:   dd   0x80000000 + 247

        push    (unknown value) < dwReason + dwParameter1
        lea      eax, [msdash_path]  
        push    eax
        call    dword [XLaunchNewImage]



Logged

PedrosPad

  • Archived User
  • Hero Member
  • *
  • Posts: 1277
Clock Setting In Ndure And Nkpatcher?
« Reply #20 on: September 13, 2005, 02:13:00 AM »

QUOTE(dus @ Sep 13 2005, 09:39 AM)
We need someone with the XDK that can tell us the values of XLD_LAUNCH_DASHBOARD_SETTINGS and XLD_SETTINGS_CLOCK are, but also the structure of LD_LAUNCH_DASHBOARD.
Logged

triggernum5

  • Archived User
  • Hero Member
  • *
  • Posts: 896
Clock Setting In Ndure And Nkpatcher?
« Reply #21 on: September 13, 2005, 07:53:00 AM »

QUOTE
Promoting, Endorsing, and/or encouraging the use of Clone Modchips: Bans will be handed out without warning. XS values the Authentic Modchip market and it’s developers.  The Modchip teams are the ones who have helped to make adding a chip affordable and accessable to the average consumer via quality of parts, support information and innovation, and via sponsorship through their online retailers.
In anycase, XBOXSCENE is fucking pathetic now..  This quote from the rules is a good part of why I'm going to suggest that the fucking hipocrits that run this bullshit maketing site take a flying leap off a tall cliff..  I'm gone forever as of now..  Suck it HSDEMONZ!!!!!!!!!!!
Logged

PedrosPad

  • Archived User
  • Hero Member
  • *
  • Posts: 1277
Clock Setting In Ndure And Nkpatcher?
« Reply #22 on: September 13, 2005, 09:00:00 AM »

QUOTE(triggernum5 @ Sep 13 2005, 04:04 PM)
Ok, I just scoured the rules and I see absolutely no grounds to say that it is against the rules to ask somebody with the xdk to help provide information about a structure.
Logged

xman954

  • Archived User
  • Hero Member
  • *
  • Posts: 835
Clock Setting In Ndure And Nkpatcher?
« Reply #23 on: September 13, 2005, 11:57:00 AM »

QUOTE(PedrosPad @ Sep 13 2005, 11:11 AM)
My natural urge was to simply cut & paste the information from the XDK's

how about just posting a small .ASM block of code to do this,,,,
from your vast memory of code that you have already done, of course   biggrin.gif
Logged

PedrosPad

  • Archived User
  • Hero Member
  • *
  • Posts: 1277
Clock Setting In Ndure And Nkpatcher?
« Reply #24 on: September 22, 2005, 09:00:00 AM »

QUOTE(dus @ Sep 22 2005, 04:17 PM)
Ok, so no XDK... why should that stop us? Let's scratch that itch.

View Post

Logged

xman954

  • Archived User
  • Hero Member
  • *
  • Posts: 835
Clock Setting In Ndure And Nkpatcher?
« Reply #25 on: September 22, 2005, 09:19:00 AM »

QUOTE(dus @ Sep 22 2005, 10:17 AM)
To implement, just copy the LDP setup from the fonts (ernie.asm) and do the following:
(Assuming ebx is loaded with the pointer to LDP in memory and the path to xboxdash.xbe is copied into [ebx+8h])
write 1 into dword [ebx+0h]
write 3 into dword [ebx+400h]
write 1 into dword [ebx+408h]

NICE
will give it a shot  beerchug.gif
Logged

xman954

  • Archived User
  • Hero Member
  • *
  • Posts: 835
Clock Setting In Ndure And Nkpatcher?
« Reply #26 on: September 22, 2005, 11:25:00 AM »

OK nice find Dus this is what i got and it's works beerchug.gif
CODE
       cld
        mov     edi, ebx
        xor     eax, eax
        mov     ecx, dword 0x00000400+0x010; extra bytes to zero of LDP !!!!
        rep     stosd

        lea     edi, [ebx+8]
        lea     esi, [clk_ph]
        push    byte CLKSZ
   pop     ecx
        rep     movsb     ; move dash path into DP

   mov     [ebx+000h], dword 0x01   ; use parmeters
   mov     [ebx+400h], dword 0x03   ; parameter for settings in dashboard
   mov     [ebx+408h], dword 0x01   ; CLOCK within settings

        push    byte 0x02  ; quick reboot
        call    dword [HalReturnToFirmware]
   jmp   short $
;-----------------------------------------
   align   4
clk_ph: db      '\Device\Harddisk0\Partition2\xboxdash.xbe',0,0
CLKSZ:  equ     $-clk_ph


right now the last thing NKPatcher does is:
test the time and if it's before 9/20/05 it goes stright to the clock settings(in shadowC if enabled) then you IGR to dashboard_path

Logged

krayzie

  • Archived User
  • Hero Member
  • *
  • Posts: 3350
Clock Setting In Ndure And Nkpatcher?
« Reply #27 on: September 22, 2005, 12:37:00 PM »

awesome work.
Logged

xman954

  • Archived User
  • Hero Member
  • *
  • Posts: 835
Clock Setting In Ndure And Nkpatcher?
« Reply #28 on: September 22, 2005, 12:38:00 PM »

QUOTE
That is 400h double words (4 bytes). In total, 1000h bytes are cleared

was not sure but that clears it up thanks
(just wanted the space between 401h and 407h cleared)

will put something together later for anyone interested... smile.gif
Logged

DaddyJ

  • Archived User
  • Hero Member
  • *
  • Posts: 1324
Clock Setting In Ndure And Nkpatcher?
« Reply #29 on: September 22, 2005, 01:46:00 PM »

QUOTE(xman954 @ Sep 22 2005, 02:49 PM)
was not sure but that clears it up thanks
Logged
Pages: 1 [2] 3