Avoid use of C++11, still too many compilers without support for auto :<

This commit is contained in:
~skmp 2014-12-30 10:58:13 +02:00
parent 28d0e0a08b
commit 0bf6272b9c
1 changed files with 4 additions and 3 deletions

View File

@ -339,9 +339,10 @@ void DYNACALL reios_trap(u32 op) {
}
u32 hook_addr(hook_fp* fn) {
auto pos = hooks_rev.find(fn);
return pos != hooks_rev.end() ? pos->second : 0;
if (hooks_rev.count(fn))
return hooks_rev[fn];
else
return 0;
}
bool reios_init(u8* rom, u8* flash) {