Avoid use of C++11, still too many compilers without support for auto :<
This commit is contained in:
parent
28d0e0a08b
commit
0bf6272b9c
|
@ -339,9 +339,10 @@ void DYNACALL reios_trap(u32 op) {
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 hook_addr(hook_fp* fn) {
|
u32 hook_addr(hook_fp* fn) {
|
||||||
auto pos = hooks_rev.find(fn);
|
if (hooks_rev.count(fn))
|
||||||
|
return hooks_rev[fn];
|
||||||
return pos != hooks_rev.end() ? pos->second : 0;
|
else
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool reios_init(u8* rom, u8* flash) {
|
bool reios_init(u8* rom, u8* flash) {
|
||||||
|
|
Loading…
Reference in New Issue