mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Add Wii sdcard to CommonPaths
This commit is contained in:
@ -118,6 +118,8 @@
|
|||||||
|
|
||||||
#define WII_STATE "state.dat"
|
#define WII_STATE "state.dat"
|
||||||
|
|
||||||
|
#define WII_SDCARD "sd.raw"
|
||||||
|
|
||||||
#define WII_SETTING "setting.txt"
|
#define WII_SETTING "setting.txt"
|
||||||
|
|
||||||
#define GECKO_CODE_HANDLER "codehandler.bin"
|
#define GECKO_CODE_HANDLER "codehandler.bin"
|
||||||
|
@ -798,6 +798,7 @@ static void RebuildUserDirectories(unsigned int dir_index)
|
|||||||
s_user_paths[F_ARAMDUMP_IDX] = s_user_paths[D_DUMP_IDX] + ARAM_DUMP;
|
s_user_paths[F_ARAMDUMP_IDX] = s_user_paths[D_DUMP_IDX] + ARAM_DUMP;
|
||||||
s_user_paths[F_FAKEVMEMDUMP_IDX] = s_user_paths[D_DUMP_IDX] + FAKEVMEM_DUMP;
|
s_user_paths[F_FAKEVMEMDUMP_IDX] = s_user_paths[D_DUMP_IDX] + FAKEVMEM_DUMP;
|
||||||
s_user_paths[F_GCSRAM_IDX] = s_user_paths[D_GCUSER_IDX] + GC_SRAM;
|
s_user_paths[F_GCSRAM_IDX] = s_user_paths[D_GCUSER_IDX] + GC_SRAM;
|
||||||
|
s_user_paths[F_WIISDCARD_IDX] = s_user_paths[D_WIIROOT_IDX] + DIR_SEP WII_SDCARD;
|
||||||
|
|
||||||
s_user_paths[D_MEMORYWATCHER_IDX] = s_user_paths[D_USER_IDX] + MEMORYWATCHER_DIR DIR_SEP;
|
s_user_paths[D_MEMORYWATCHER_IDX] = s_user_paths[D_USER_IDX] + MEMORYWATCHER_DIR DIR_SEP;
|
||||||
s_user_paths[F_MEMORYWATCHERLOCATIONS_IDX] =
|
s_user_paths[F_MEMORYWATCHERLOCATIONS_IDX] =
|
||||||
|
@ -55,6 +55,7 @@ enum
|
|||||||
F_GCSRAM_IDX,
|
F_GCSRAM_IDX,
|
||||||
F_MEMORYWATCHERLOCATIONS_IDX,
|
F_MEMORYWATCHERLOCATIONS_IDX,
|
||||||
F_MEMORYWATCHERSOCKET_IDX,
|
F_MEMORYWATCHERSOCKET_IDX,
|
||||||
|
F_WIISDCARD_IDX,
|
||||||
NUM_PATH_INDICES
|
NUM_PATH_INDICES
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ void CWII_IPC_HLE_Device_sdio_slot0::EventNotify()
|
|||||||
|
|
||||||
void CWII_IPC_HLE_Device_sdio_slot0::OpenInternal()
|
void CWII_IPC_HLE_Device_sdio_slot0::OpenInternal()
|
||||||
{
|
{
|
||||||
const std::string filename = File::GetUserPath(D_WIIROOT_IDX) + "/sd.raw";
|
const std::string filename = File::GetUserPath(F_WIISDCARD_IDX);
|
||||||
m_Card.Open(filename, "r+b");
|
m_Card.Open(filename, "r+b");
|
||||||
if (!m_Card)
|
if (!m_Card)
|
||||||
{
|
{
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
|
#include "Common/CommonPaths.h"
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/ENetUtil.h"
|
#include "Common/ENetUtil.h"
|
||||||
#include "Common/MD5.h"
|
#include "Common/MD5.h"
|
||||||
@ -1261,8 +1262,8 @@ void NetPlayClient::ComputeMD5(const std::string& file_identifier)
|
|||||||
m_should_compute_MD5 = true;
|
m_should_compute_MD5 = true;
|
||||||
|
|
||||||
std::string file;
|
std::string file;
|
||||||
if (file_identifier == "sd.raw")
|
if (file_identifier == WII_SDCARD)
|
||||||
file = File::GetUserPath(D_WIIROOT_IDX) + "/sd.raw";
|
file = File::GetUserPath(F_WIISDCARD_IDX);
|
||||||
else
|
else
|
||||||
file = m_dialog->FindGame(file_identifier);
|
file = m_dialog->FindGame(file_identifier);
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/textctrl.h>
|
#include <wx/textctrl.h>
|
||||||
|
|
||||||
|
#include "Common/CommonPaths.h"
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/FifoQueue.h"
|
#include "Common/FifoQueue.h"
|
||||||
#include "Common/FileUtil.h"
|
#include "Common/FileUtil.h"
|
||||||
@ -563,7 +564,7 @@ void NetPlayDialog::OnMD5ComputeRequested(wxCommandEvent&)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MD5Target::SdCard:
|
case MD5Target::SdCard:
|
||||||
file_identifier = "sd.raw";
|
file_identifier = WII_SDCARD;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user