[UI] Remove MAX_PATH limit from WM_DROPFILES
Also required const-ifying a file drop message.
This commit is contained in:
@@ -291,9 +291,8 @@ bool EmulatorWindow::Initialize() {
|
||||
return true;
|
||||
}
|
||||
|
||||
void EmulatorWindow::FileDrop(wchar_t* filename) {
|
||||
std::wstring path = filename;
|
||||
auto result = emulator_->LaunchPath(path);
|
||||
void EmulatorWindow::FileDrop(const wchar_t* filename) {
|
||||
auto result = emulator_->LaunchPath(filename);
|
||||
if (XFAILED(result)) {
|
||||
// TODO: Display a message box.
|
||||
XELOGE("Failed to launch target: %.8X", result);
|
||||
|
||||
@@ -43,7 +43,7 @@ class EmulatorWindow {
|
||||
|
||||
bool Initialize();
|
||||
|
||||
void FileDrop(wchar_t* filename);
|
||||
void FileDrop(const wchar_t* filename);
|
||||
void FileOpen();
|
||||
void FileClose();
|
||||
void ShowContentDirectory();
|
||||
|
||||
Reference in New Issue
Block a user