Skip to content

Commit

Permalink
Looking up base IOS fixed by xabby666 (thanx).
Browse files Browse the repository at this point in the history
git-svn-id: https://wiiflow-advanced.googlecode.com/svn/trunk@361 43c7226f-5572-e80b-0314-b0280708705f
  • Loading branch information
r-win@live.com committed Jun 25, 2011
1 parent b05b0a9 commit 6efaa0f
Show file tree
Hide file tree
Showing 14 changed files with 395 additions and 416 deletions.
9 changes: 2 additions & 7 deletions source/loader/alt_ios.cpp
Expand Up @@ -10,7 +10,6 @@
#include "usbstorage.h"
#include "mem2.hpp"
#include "alt_ios.h"
#include "ios_base.h"
#include "mload_modules.h"
#include "sys.h"
#include "wbfs.h"
Expand Down Expand Up @@ -121,12 +120,8 @@ u32 get_ios_base()
{
u32 revision = IOS_GetRevision();
if (is_ios_type(IOS_TYPE_WANIN) && revision >= 17)
{
u32 index = get_ios_info_from_tmd();

if (index != 0xFF) return atoi(bases[index]);
else return wanin_mload_get_IOS_base();
}
return wanin_mload_get_IOS_base();

else if (is_ios_type(IOS_TYPE_HERMES) && revision >= 4)
return mload_get_IOS_base();

Expand Down
7 changes: 7 additions & 0 deletions source/loader/fs.c
Expand Up @@ -33,5 +33,12 @@ u8 *ISFS_GetFile(u8 *path, u32 *size, s32 length)
}
ISFS_Close(fd);
}

if (*size > 0)
{
DCFlushRange(buf, *size);
ICInvalidateRange(buf, *size);
}

return buf;
}
297 changes: 0 additions & 297 deletions source/loader/ios_base.c

This file was deleted.

20 changes: 0 additions & 20 deletions source/loader/ios_base.h

This file was deleted.

0 comments on commit 6efaa0f

Please sign in to comment.