mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
a82675b7d5
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
32 lines
729 B
C++
32 lines
729 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <wx/string.h>
|
|
|
|
class wxBitmap;
|
|
|
|
// A shortcut to access the bitmaps
|
|
#define wxGetBitmapFromMemory(name) WxUtils::_wxGetBitmapFromMemory(name, sizeof(name))
|
|
|
|
namespace WxUtils
|
|
{
|
|
|
|
// Launch a file according to its mime type
|
|
void Launch(const std::string& filename);
|
|
|
|
// Launch an file explorer window on a certain path
|
|
void Explore(const std::string& path);
|
|
|
|
double GetCurrentBitmapLogicalScale();
|
|
|
|
wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length);
|
|
|
|
} // namespace
|
|
|
|
std::string WxStrToStr(const wxString& str);
|
|
wxString StrToWxStr(const std::string& str);
|