-fixed booting gamecube games in neek mode

This commit is contained in:
fix94.1 2012-11-24 19:41:27 +00:00
parent 012019ae91
commit cc0cc493fe

View File

@ -34,6 +34,7 @@
#include "loader/fst.h" #include "loader/fst.h"
#include "loader/cios.h" #include "loader/cios.h"
#include "loader/nk.h" #include "loader/nk.h"
#include "memory/memory.h"
#include "network/http.h" #include "network/http.h"
#include "network/gcard.h" #include "network/gcard.h"
@ -814,6 +815,9 @@ void CMenu::_launch(dir_discHdr *hdr)
void CMenu::_launchGC(dir_discHdr *hdr, bool disc) void CMenu::_launchGC(dir_discHdr *hdr, bool disc)
{ {
const char *id = hdr->id; const char *id = hdr->id;
memcpy((u8*)Disc_ID, id, 6);
DCFlushRange((u8*)Disc_ID, 32);
const char *path = hdr->path; const char *path = hdr->path;
m_cfg.setString(GC_DOMAIN, "current_item", id); m_cfg.setString(GC_DOMAIN, "current_item", id);
m_gcfg1.setInt("PLAYCOUNT", id, m_gcfg1.getInt("PLAYCOUNT", id, 0) + 1); m_gcfg1.setInt("PLAYCOUNT", id, m_gcfg1.getInt("PLAYCOUNT", id, 0) + 1);