mirror of https://github.com/zeldaret/tp.git
dTimer_c::restart
This commit is contained in:
parent
9d049c1549
commit
a15c20dcd7
|
@ -87,7 +87,7 @@ public:
|
||||||
/* 8025D7C0 */ int stock_start(s16);
|
/* 8025D7C0 */ int stock_start(s16);
|
||||||
/* 8025D708 */ bool stock_start();
|
/* 8025D708 */ bool stock_start();
|
||||||
/* 8025D7E8 */ int stop(u8);
|
/* 8025D7E8 */ int stop(u8);
|
||||||
/* 8025D86C */ void restart(u8);
|
/* 8025D86C */ int restart(u8);
|
||||||
/* 8025D920 */ void end(int);
|
/* 8025D920 */ void end(int);
|
||||||
/* 8025D9E0 */ int deleteRequest();
|
/* 8025D9E0 */ int deleteRequest();
|
||||||
/* 8025D9F0 */ int getTimeMs();
|
/* 8025D9F0 */ int getTimeMs();
|
||||||
|
|
|
@ -308,14 +308,22 @@ int dTimer_c::stop(u8 param_0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 8025D86C-8025D920 2581AC 00B4+00 1/1 1/1 0/0 .text restart__8dTimer_cFUc */
|
/* 8025D86C-8025D920 2581AC 00B4+00 1/1 1/1 0/0 .text restart__8dTimer_cFUc */
|
||||||
#pragma push
|
int dTimer_c::restart(u8 param_0) {
|
||||||
#pragma optimization_level 0
|
if (field_0x16A != 1 || field_0x16B != param_0) {
|
||||||
#pragma optimizewithasm off
|
return 0;
|
||||||
asm void dTimer_c::restart(u8 param_0) {
|
} else {
|
||||||
nofralloc
|
if (mDeleteCheck != 4 && mDeleteCheck != 2) {
|
||||||
#include "asm/d/d_timer/restart__8dTimer_cFUc.s"
|
return 0;
|
||||||
|
} else {
|
||||||
|
mTime2 = dLib_time_c::getTime();
|
||||||
|
OSTime tmp = mTime2 - mTime3;
|
||||||
|
mTime5 += tmp;
|
||||||
|
field_0x16A = 0;
|
||||||
|
field_0x16B = 0;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#pragma pop
|
|
||||||
|
|
||||||
/* 8025D920-8025D9E0 258260 00C0+00 0/0 1/1 0/0 .text end__8dTimer_cFi */
|
/* 8025D920-8025D9E0 258260 00C0+00 0/0 1/1 0/0 .text end__8dTimer_cFi */
|
||||||
#pragma push
|
#pragma push
|
||||||
|
|
Loading…
Reference in New Issue