-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pikalax_work' of github.com:PikalaxALT/pokediamond into…
… pikalax_work
- Loading branch information
Showing
18 changed files
with
96 additions
and
93 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
#include "play_timer.h" | ||
|
||
u64 sTimer3Start; | ||
u64 sUnused; | ||
u64 sDuration; | ||
struct IGT * sIGT_p; | ||
BOOL sTimerActive; | ||
|
||
THUMB_FUNC void PlayTimerInit() | ||
{ | ||
sTimerActive = FALSE; | ||
} | ||
|
||
THUMB_FUNC void PlayTimerStart(struct IGT *igt) | ||
{ | ||
sTimerActive = TRUE; | ||
sUnused = 0; | ||
sDuration = 0; | ||
sIGT_p = igt; | ||
|
||
sTimer3Start = GetTimer3Count(); | ||
} | ||
|
||
THUMB_FUNC void PlayTimerUpdate(void) | ||
{ | ||
if (sTimerActive) | ||
{ | ||
u64 res = Timer3CountToSeconds(GetTimer3Count() - sTimer3Start); | ||
|
||
if (sDuration < res) | ||
{ | ||
AddIGTSeconds(sIGT_p, (u32)(res - sDuration)); | ||
sDuration = res; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
cell0.NCGR | ||
cell0.NCLR | ||
dp_areawindow.NCGR | ||
dp_areawindow.NCLR |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// | ||
// Created by scott on 16-Sep-21. | ||
// | ||
|
||
#ifndef POKEDIAMOND_TRDATA_H | ||
#define POKEDIAMOND_TRDATA_H | ||
|
||
#endif //POKEDIAMOND_TRDATA_H |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef POKEDIAMOND_PLAY_TIMER_H | ||
#define POKEDIAMOND_PLAY_TIMER_H | ||
|
||
#include "global.h" | ||
#include "igt.h" | ||
#include "timer3.h" | ||
|
||
void PlayTimerInit(void); | ||
void PlayTimerStart(struct IGT *igt); | ||
void PlayTimerUpdate(void); | ||
|
||
#endif //POKEDIAMOND_PLAY_TIMER_H |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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