Converting logging to ASCII and other Windows fixes.
This commit is contained in:
@@ -91,14 +91,14 @@ DiscImageDevice::~DiscImageDevice() {
|
||||
int DiscImageDevice::Init() {
|
||||
mmap_ = xe_mmap_open(pal_, kXEFileModeRead, local_path_, 0, 0);
|
||||
if (!mmap_) {
|
||||
XELOGE(XT("Disc image could not be mapped"));
|
||||
XELOGE("Disc image could not be mapped");
|
||||
return 1;
|
||||
}
|
||||
|
||||
gdfx_ = new GDFX(mmap_);
|
||||
GDFX::Error error = gdfx_->Load();
|
||||
if (error != GDFX::kSuccess) {
|
||||
XELOGE(XT("GDFX init failed: %d"), error);
|
||||
XELOGE("GDFX init failed: %d", error);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ Entry* DiscImageDevice::ResolvePath(const char* path) {
|
||||
// be in the form:
|
||||
// some\PATH.foo
|
||||
|
||||
XELOGFS(XT("DiscImageDevice::ResolvePath(%s)"), path);
|
||||
XELOGFS("DiscImageDevice::ResolvePath(%s)", path);
|
||||
|
||||
GDFXEntry* gdfx_entry = gdfx_->root_entry();
|
||||
|
||||
|
||||
@@ -85,16 +85,17 @@ Entry* LocalDirectoryDevice::ResolvePath(const char* path) {
|
||||
// be in the form:
|
||||
// some\PATH.foo
|
||||
|
||||
XELOGFS(XT("LocalDirectoryDevice::ResolvePath(%s)"), path);
|
||||
XELOGFS("LocalDirectoryDevice::ResolvePath(%s)", path);
|
||||
|
||||
#if XE_WCHAR
|
||||
xechar_t rel_path[XE_MAX_PATH];
|
||||
XEIGNORE(xestrwiden(rel_path, XECOUNT(rel_path), path));
|
||||
#else
|
||||
const xechar_t* rel_path = path;
|
||||
#endif
|
||||
|
||||
xechar_t full_path[XE_MAX_PATH];
|
||||
#if XE_WCHAR
|
||||
xesnprintf(full_path, XECOUNT(full_path), XT("%ls%c%hs"),
|
||||
local_path_, XE_PATH_SEPARATOR, path);
|
||||
#else
|
||||
xesnprintf(full_path, XECOUNT(full_path), XT("%s%c%s"),
|
||||
local_path_, XE_PATH_SEPARATOR, path);
|
||||
#endif // XE_WCHAR
|
||||
xe_path_join(local_path_, rel_path, full_path, XECOUNT(full_path));
|
||||
|
||||
// Swap around path separators.
|
||||
if (XE_PATH_SEPARATOR != '\\') {
|
||||
|
||||
@@ -111,6 +111,6 @@ Entry* FileSystem::ResolvePath(const char* path) {
|
||||
}
|
||||
}
|
||||
|
||||
XELOGE(XT("ResolvePath(%s) failed - no root found"), path);
|
||||
XELOGE("ResolvePath(%s) failed - no root found", path);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user