UWP: Output verbose to debug plus turn off view scaling (nw)
This commit is contained in:
parent
61bcb87960
commit
6b390947c7
@ -98,9 +98,9 @@ class winuniversal_output_error : public osd_output
|
|||||||
public:
|
public:
|
||||||
virtual void output_callback(osd_output_channel channel, const char *msg, va_list args) override
|
virtual void output_callback(osd_output_channel channel, const char *msg, va_list args) override
|
||||||
{
|
{
|
||||||
|
char buffer[2048];
|
||||||
if (channel == OSD_OUTPUT_CHANNEL_ERROR)
|
if (channel == OSD_OUTPUT_CHANNEL_ERROR)
|
||||||
{
|
{
|
||||||
char buffer[1024];
|
|
||||||
vsnprintf(buffer, ARRAY_LENGTH(buffer), msg, args);
|
vsnprintf(buffer, ARRAY_LENGTH(buffer), msg, args);
|
||||||
|
|
||||||
std::wstring wcbuffer(osd::text::to_wstring(buffer));
|
std::wstring wcbuffer(osd::text::to_wstring(buffer));
|
||||||
@ -109,6 +109,15 @@ public:
|
|||||||
auto dlg = ref new MessageDialog(ref new Platform::String(wcbuffer.data()), ref new Platform::String(wcbuffer.data()));
|
auto dlg = ref new MessageDialog(ref new Platform::String(wcbuffer.data()), ref new Platform::String(wcbuffer.data()));
|
||||||
dlg->ShowAsync();
|
dlg->ShowAsync();
|
||||||
}
|
}
|
||||||
|
else if (channel == OSD_OUTPUT_CHANNEL_VERBOSE)
|
||||||
|
{
|
||||||
|
vsnprintf(buffer, ARRAY_LENGTH(buffer), msg, args);
|
||||||
|
std::wstring wcbuffer = osd::text::to_wstring(buffer);
|
||||||
|
OutputDebugString(wcbuffer.c_str());
|
||||||
|
|
||||||
|
// Chain to next anyway
|
||||||
|
chain_output(channel, msg, args);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
chain_output(channel, msg, args);
|
chain_output(channel, msg, args);
|
||||||
}
|
}
|
||||||
@ -358,6 +367,8 @@ int main(Platform::Array<Platform::String^>^ args)
|
|||||||
|
|
||||||
MameMainApp::MameMainApp()
|
MameMainApp::MameMainApp()
|
||||||
{
|
{
|
||||||
|
// Turn off application view scaling so XBOX gets full screen
|
||||||
|
Windows::UI::ViewManagement::ApplicationViewScaling::TrySetDisableLayoutScaling(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MameMainApp::Initialize(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView)
|
void MameMainApp::Initialize(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView)
|
||||||
@ -628,3 +639,4 @@ static int is_double_click_start(int argc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user