Merge branch 'master' into global-config-screenshot
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
#
|
||||
# 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||
# running old operating systems and software designed for IBM
|
||||
# PC systems and compatibles from 1981 through fairly recent
|
||||
# system designs based on the PCI bus.
|
||||
# 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||
# running old operating systems and software designed for IBM
|
||||
# PC systems and compatibles from 1981 through fairly recent
|
||||
# system designs based on the PCI bus.
|
||||
#
|
||||
# This file is part of the 86Box distribution.
|
||||
# This file is part of the 86Box distribution.
|
||||
#
|
||||
# CMake build script.
|
||||
# CMake build script.
|
||||
#
|
||||
# Authors: Cacodemon345
|
||||
# David Hrdlička, <hrdlickadavid@outlook.com>
|
||||
# Authors: Cacodemon345
|
||||
# David Hrdlička, <hrdlickadavid@outlook.com>
|
||||
#
|
||||
# Copyright 2021 Cacodemon345.
|
||||
# Copyright 2021 David Hrdlička.
|
||||
# Copyright 2021 Cacodemon345.
|
||||
# Copyright 2021 David Hrdlička.
|
||||
#
|
||||
|
||||
add_library(plat OBJECT unix.c)
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
%global romver v3.7
|
||||
|
||||
Name: 86Box
|
||||
Version: 3.8
|
||||
Version: 3.11
|
||||
Release: 1%{?dist}
|
||||
Summary: Classic PC emulator
|
||||
License: GPLv2+
|
||||
@@ -117,5 +117,5 @@ popd
|
||||
%{_datadir}/%{name}/roms
|
||||
|
||||
%changelog
|
||||
* Tue Aug 30 2022 Robert de Rooy <robert.de.rooy[AT]gmail.com> 3.8-1
|
||||
* Fri Nov 18 2022 Robert de Rooy <robert.de.rooy[AT]gmail.com> 3.11-1
|
||||
- Bump release
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</categories>
|
||||
<launchable type="desktop-id">net.86box.86Box.desktop</launchable>
|
||||
<releases>
|
||||
<release version="3.8" date="2022-08-30"/>
|
||||
<release version="3.11" date="2022-11-18"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1" />
|
||||
<description>
|
||||
|
||||
@@ -8,36 +8,39 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
void getDefaultROMPath(char* Path)
|
||||
void
|
||||
getDefaultROMPath(char *Path)
|
||||
{
|
||||
NSFileManager* sharedFM = [NSFileManager defaultManager];
|
||||
NSArray* possibleURLs = [sharedFM URLsForDirectory:NSApplicationSupportDirectory
|
||||
inDomains:NSUserDomainMask];
|
||||
NSURL* appSupportDir = nil;
|
||||
NSURL* appDirectory = nil;
|
||||
NSFileManager *sharedFM = [NSFileManager defaultManager];
|
||||
NSArray *possibleURLs = [sharedFM URLsForDirectory:NSApplicationSupportDirectory
|
||||
inDomains:NSUserDomainMask];
|
||||
NSURL *appSupportDir = nil;
|
||||
NSURL *appDirectory = nil;
|
||||
|
||||
if ([possibleURLs count] >= 1) {
|
||||
// Use the first directory (if multiple are returned)
|
||||
appSupportDir = [possibleURLs objectAtIndex:0];
|
||||
}
|
||||
if ([possibleURLs count] >= 1) {
|
||||
// Use the first directory (if multiple are returned)
|
||||
appSupportDir = [possibleURLs objectAtIndex:0];
|
||||
}
|
||||
|
||||
// If a valid app support directory exists, add the
|
||||
// app's bundle ID to it to specify the final directory.
|
||||
if (appSupportDir) {
|
||||
NSString* appBundleID = [[NSBundle mainBundle] bundleIdentifier];
|
||||
appDirectory = [appSupportDir URLByAppendingPathComponent:appBundleID];
|
||||
appDirectory=[appDirectory URLByAppendingPathComponent:@"roms"];
|
||||
}
|
||||
// If a valid app support directory exists, add the
|
||||
// app's bundle ID to it to specify the final directory.
|
||||
if (appSupportDir) {
|
||||
NSString *appBundleID = [[NSBundle mainBundle] bundleIdentifier];
|
||||
appDirectory = [appSupportDir URLByAppendingPathComponent:appBundleID];
|
||||
appDirectory = [appDirectory URLByAppendingPathComponent:@"roms"];
|
||||
}
|
||||
// create ~/Library/Application Support/... stuff
|
||||
|
||||
NSError* theError = nil;
|
||||
if (![sharedFM createDirectoryAtURL:appDirectory withIntermediateDirectories:YES
|
||||
attributes:nil error:&theError])
|
||||
{
|
||||
// Handle the error.
|
||||
NSLog(@"Error creating user library rom path");
|
||||
} else NSLog(@"Create user rom path sucessfull");
|
||||
NSError *theError = nil;
|
||||
if (![sharedFM createDirectoryAtURL:appDirectory
|
||||
withIntermediateDirectories:YES
|
||||
attributes:nil
|
||||
error:&theError]) {
|
||||
// Handle the error.
|
||||
NSLog(@"Error creating user library rom path");
|
||||
} else
|
||||
NSLog(@"Create user rom path sucessfull");
|
||||
|
||||
strcpy(Path,[appDirectory fileSystemRepresentation]);
|
||||
// return appDirectory;
|
||||
strcpy(Path, [appDirectory fileSystemRepresentation]);
|
||||
// return appDirectory;
|
||||
}
|
||||
|
||||
@@ -244,37 +244,37 @@ plat_get_string(int i)
|
||||
return L"Press CTRL-END or middle button to release mouse";
|
||||
case IDS_2080:
|
||||
return L"Failed to initialize FluidSynth";
|
||||
case IDS_2130:
|
||||
case IDS_2131:
|
||||
return L"Invalid configuration";
|
||||
case IDS_4099:
|
||||
return L"MFM/RLL or ESDI CD-ROM drives never existed";
|
||||
case IDS_2093:
|
||||
return L"Failed to set up PCap";
|
||||
case IDS_2094:
|
||||
return L"No PCap devices found";
|
||||
return L"Failed to set up PCap";
|
||||
case IDS_2095:
|
||||
return L"No PCap devices found";
|
||||
case IDS_2096:
|
||||
return L"Invalid PCap device";
|
||||
case IDS_2110:
|
||||
return L"Unable to initialize FreeType";
|
||||
case IDS_2111:
|
||||
return L"Unable to initialize FreeType";
|
||||
case IDS_2112:
|
||||
return L"Unable to initialize SDL, libsdl2 is required";
|
||||
case IDS_2131:
|
||||
return L"libfreetype is required for ESC/P printer emulation.";
|
||||
case IDS_2132:
|
||||
return L"libgs is required for automatic conversion of PostScript files to PDF.\n\nAny documents sent to the generic PostScript printer will be saved as PostScript (.ps) files.";
|
||||
return L"libfreetype is required for ESC/P printer emulation.";
|
||||
case IDS_2133:
|
||||
return L"libgs is required for automatic conversion of PostScript files to PDF.\n\nAny documents sent to the generic PostScript printer will be saved as PostScript (.ps) files.";
|
||||
case IDS_2134:
|
||||
return L"libfluidsynth is required for FluidSynth MIDI output.";
|
||||
case IDS_2129:
|
||||
case IDS_2130:
|
||||
return L"Make sure libpcap is installed and that you are on a libpcap-compatible network connection.";
|
||||
case IDS_2114:
|
||||
case IDS_2115:
|
||||
return L"Unable to initialize Ghostscript";
|
||||
case IDS_2063:
|
||||
return L"Machine \"%hs\" is not available due to missing ROMs in the roms/machines directory. Switching to an available machine.";
|
||||
case IDS_2064:
|
||||
return L"Video card \"%hs\" is not available due to missing ROMs in the roms/video directory. Switching to an available video card.";
|
||||
case IDS_2128:
|
||||
case IDS_2129:
|
||||
return L"Hardware not available";
|
||||
case IDS_2142:
|
||||
case IDS_2143:
|
||||
return L"Monitor in sleep mode";
|
||||
}
|
||||
return L"";
|
||||
@@ -706,7 +706,7 @@ mouse_poll()
|
||||
mouse_y = mousedata.deltay;
|
||||
mouse_z = mousedata.deltaz;
|
||||
mousedata.deltax = mousedata.deltay = mousedata.deltaz = 0;
|
||||
mouse_buttons = mousedata.mousebuttons;
|
||||
mouse_buttons = mousedata.mousebuttons;
|
||||
SDL_UnlockMutex(mousemutex);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
/*
|
||||
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||
* running old operating systems and software designed for IBM
|
||||
* PC systems and compatibles from 1981 through fairly recent
|
||||
* system designs based on the PCI bus.
|
||||
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||
* running old operating systems and software designed for IBM
|
||||
* PC systems and compatibles from 1981 through fairly recent
|
||||
* system designs based on the PCI bus.
|
||||
*
|
||||
* This file is part of the 86Box distribution.
|
||||
* This file is part of the 86Box distribution.
|
||||
*
|
||||
* Handle the platform-side of CDROM/ZIP/MO drives.
|
||||
* Handle the platform-side of CDROM/ZIP/MO drives.
|
||||
*
|
||||
*
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
* Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
* Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
*
|
||||
* Copyright 2016-2018 Miran Grca.
|
||||
* Copyright 2017,2018 Fred N. van Kempen.
|
||||
* Copyright 2016-2018 Miran Grca.
|
||||
* Copyright 2017,2018 Fred N. van Kempen.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
Reference in New Issue
Block a user