Search found 170 matches

by shermanp
Fri 18 Feb, 2022 4:01 am
Forum: Development
Topic: Possible change to Meson
Replies: 1
Views: 2851

Re: Possible change to Meson

Yes please!

I've been using it with dosbox-staging, it is so much nicer than CMake IMHO.
by shermanp
Mon 27 Dec, 2021 10:03 pm
Forum: Development
Topic: How to compile latest version on windows 10
Replies: 13
Views: 7044

Re: How to compile latest version on windows 10

Note, you can use ntldd to automate the DLL copying.

See here for how I've done it in dosbox-staging. This could be adapted for PCem.
by shermanp
Fri 24 Dec, 2021 8:31 am
Forum: Development
Topic: How to compile latest version on windows 10
Replies: 13
Views: 7044

Re: How to compile latest version on windows 10

See Here . Also see my additional notes . For networking, you'll need to add mingw-w64-{i686,x86_64}-libpcap to the list of packages to install. To build with the ninja backend (MSYS2 recommendation), you will need mingw-w64-{i686,x86_64}-ninja, and add -DMSYS=TRUE to the cmake command line. Eg: cma...
by shermanp
Tue 21 Dec, 2021 7:57 pm
Forum: General
Topic: ANNOUNCEMENT: MichaelJManley taking over as PCem maintainer
Replies: 82
Views: 67025

Re: ANNOUNCEMENT: MichaelJManley taking over as PCem maintainer

Yay, PCem is back. Thanks @MichaelJManley I was thinking of replacing Autotools with Meson, but you beat me to it with CMake. Ah well, anything's better than Autotools! Personally, I feel maintaining the mingw makefiles will be a PITA. Inevitably, someone will add a new source file, and forget to up...
by shermanp
Mon 12 Apr, 2021 6:55 am
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

I've also had some differencing VHDs not boot because it thinks the parent was modified - which they were never modified (and set to read only after they were created+finalized anyway) The only thing I can think of about this is... possible daylight savings disreprancies? Parent was 2-18-2021, diff...
by shermanp
Mon 15 Mar, 2021 9:42 pm
Forum: General
Topic: Extracting files from PCem OS to my PC.
Replies: 11
Views: 5933

Re: Extracting files from PCem OS to my PC.

You can do the same with Winimage if you want to extract or add files, but be sure to exit from PCem before (closing main PCem window, not just closing that emulated machine) because it keeps the image file opened (bug???) and Winimage can't open shared files. I think Sarah fixed that bug for the v...
by shermanp
Mon 15 Mar, 2021 9:39 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

I've accidentally made a differencing VHD to a differencing VHD and have broke the VHDs in the process. oops Differencing VHD's are fragile unfortunately. Microsoft created the newer VHDX format for a reason... Having said that, it should be possible to chain them. The biggest gotcha is accidentall...
by shermanp
Thu 18 Feb, 2021 8:31 pm
Forum: Patches
Topic: [BUG/PATCHES] Linux ALSA RawMidi buffer overflow with Windows 95
Replies: 1
Views: 4105

Re: [BUG/PATCHES] Linux ALSA RawMidi buffer overflow with Windows 95

(small note: I've read the guidelines to submitting patches and it mentions a Mercurial repository, which I couldn't find. These patches go against the GitHub mirror .) Sarah moved the repository to GitHub when Bitbucket decided to drop mercurial support and offered no migration tools to convert me...
by shermanp
Mon 15 Feb, 2021 6:44 am
Forum: General
Topic: Joystick rudder/twist
Replies: 2
Views: 2007

Re: Joystick rudder/twist

Having a quick look at the code, it might be possible to add a 4-axis 4-button joystick. How Windows would see it though, I'm not sure. That would give you x/y, throttle, twist. But only 4 buttons and no POV/Hat switch is a bitter pill to swallow :( To get more from a gameport based joystick, one wo...
by shermanp
Wed 10 Feb, 2021 1:24 am
Forum: General
Topic: MT-32 and Linux
Replies: 6
Views: 4108

Re: MT-32 and Linux

Just as another datapoint, I compiled the 'master' branch of PCem yesterday on Xubuntu 20.04, with '--enable-alsa', and I too did not see any MIDI output options.

I know it used to work a year or two ago, so something must have changed since then.
by shermanp
Wed 27 Jan, 2021 8:39 pm
Forum: General
Topic: Soundcard Device selection
Replies: 2
Views: 2425

Re: Soundcard Device selection

If PCem ever changes audio API, probably easiest to switch to SDL2, since PCem is already using that.
by shermanp
Wed 25 Nov, 2020 8:26 pm
Forum: Merged patches
Topic: Documentation revamp submission
Replies: 9
Views: 10654

Re: Documentation revamp submission

There's probably plenty of online converters out there, but I'd suggest taking a look at Pandoc (https://pandoc.org/index.html), which can convert markdown to just about any other format under the sun.
by shermanp
Wed 25 Nov, 2020 12:05 pm
Forum: Merged patches
Topic: Documentation revamp submission
Replies: 9
Views: 10654

Re: Documentation revamp submission

Sorry, been meaning to reply to this for a while now! In general I think this looks okay. I'm not familiar with this kind of markup though, can it be processed to a plain text file for the binary release? The 'markup' is markdown, a simple text format that is actually quite readable as plain text. ...
by shermanp
Sun 22 Nov, 2020 10:23 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

Greatpsycho wrote: Sun 22 Nov, 2020 11:35 am The compiler only complaining about declaration in the for loop. This patch removes declaration in the for loop and solves compile problem on CentOS.
Feel free to integrate this into PCem Sarah, I've committed the changes to MiniVHD as-is.
by shermanp
Sun 22 Nov, 2020 10:25 am
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

My recommendation would be to upgrade your compiler. May not be possible on an old version of CentOS. I shouldn't think adding -std=gnu99" to configure.ac would cause too many issues though, although maaaybe it would need to be linux or gcc specific? EDIT: If the only thing the compiler is com...
by shermanp
Sun 22 Nov, 2020 9:20 am
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

There is still compile problem exists on CentOS. Your VHD code uses C99 extensions but it's not enabled by default on CentOS. To solve this problem, configure.ac file must be modified as described below, or all VHD related code must be rewritten to avoid using C99 extensions. pcem-compile-error.png...
by shermanp
Sat 21 Nov, 2020 9:13 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

SarahWalker wrote: Sat 21 Nov, 2020 8:59 pm All committed as of 8fa271d.
Thank you very much.

Thank you for your patience with this.
by shermanp
Sat 21 Nov, 2020 11:10 am
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

Just tried NT, first part of installation can be done normally, but during boot, I get gibberish during ntldr or unknown hard error on the dynamic VHD I'm using, this doesn't happen with fixed size VHD or plain RAW. Note that the file system is FAT16, not NTFS, of the dynamic vhd I'm using. I can't...
by shermanp
Fri 20 Nov, 2020 10:07 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

I can't reproduce this in PCem. I can reproduce it in another emulator. It is not yet known whether this is an underlying MiniVHD issue, or an integration issue.
by shermanp
Thu 19 Nov, 2020 7:05 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

@Greatpsycho does removing the typedef from minivhd_internal.h and including the minivhd.h header instead work for you? I'd rather avoid the #ifdef if I can.
by shermanp
Wed 18 Nov, 2020 11:45 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

Laucian wrote: Wed 18 Nov, 2020 11:43 pm I just tested the latest patch on Linux, everything still works.
Good to know.

I've got things setup on my Ubuntu box to do some rudimentary testing as well now, so I (hopefully) shouldn't break linux compilation any more.
by shermanp
Wed 18 Nov, 2020 10:16 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

Alright. Hopefully third times the charm... Now, MSVC gets _ftelli64/_fseeki64. MinGW and MinGW-w64 get ftello64/fseeko64. Linux gets large file ftello/fseeko by way of _FILE_OFFSET_BITS and OSX/BSD supposedly default to large file support for ftello/fseeko. Please let this work. diff --git a/src/mi...
by shermanp
Wed 18 Nov, 2020 9:23 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

SarahWalker wrote: Wed 18 Nov, 2020 8:47 pm With the most recent patch it no longer builds for me on mingw. ftello and fseeko don't exist.
Whyyyyyyyyyyyyy!!!!!!

Ok, looks like I need an ifdef for mingw specifically to separate from mingw-w64. They obviously can't be treated the same.
by shermanp
Wed 18 Nov, 2020 8:43 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

I just tested and it is working fine under Linux now. As usual cross-platform support is a bit of a pain. Thank you very much for the work on the patch, differencing images are such a lifesaver when it comes to managing Windows 9x and a large software library. Thanks. If you notice any issues with ...
by shermanp
Wed 18 Nov, 2020 1:04 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

Ok, here's a patch that should correct the segfaults on Linux. Turns out I had forgotten to set the large file macro's while attempting to use fseeko64 and friends. I decided in the end to switch to using fseeko, and setting _FILE_OFFSET_BITS 64 instead. It seems to work alright with both Linux and ...
by shermanp
Wed 18 Nov, 2020 3:52 am
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

I finally had more time to test out the changes. It compiles fine now. Under Linux I am experiencing Segmentation fault (core dumped) whenever I create a new VHD or attach an existing one to a machine. Nooooo, not the dreaded segfault :( Let's see if I can replicate. EDIT: yes I can. A bit more Lin...
by shermanp
Mon 16 Nov, 2020 11:04 pm
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

I have one more little tweak. My apologies for not including it earlier, it's something I meant to do, and it slipped my mind. This diff replaces the "remember to format" message with a "don't open/modify the parent" message when creating a differencing VHD image. The former mess...
by shermanp
Sun 15 Nov, 2020 10:00 am
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

Alright, here's some fixes. Committed at 322b25a4. I also unilaterally removed the use of _wfopen_s, commit 95e6819f. Thank you Sarah. I originally used _wfopen(), so that change is fine by me. Those '_s' functions were something I kind of glossed over during my review of the code. I know for next ...
by shermanp
Sun 15 Nov, 2020 6:54 am
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

Alright, here's some fixes.

And yes, I actually tested compiling this on linux this time...

Diff is against the latest pcem master as of writing this (5ae201b).

If you don't want to deal with the diff, the code is at https://github.com/shermp/pcem/tree/vhd ... tion-fixes
by shermanp
Sun 15 Nov, 2020 3:44 am
Forum: Merged patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 63
Views: 61038

Re: [Patch] New VHD support... now with added dynamics

leilei wrote: Sun 15 Nov, 2020 3:24 am I'm seeing the same strcpy/strncpy build failures with MinGW 4.7.2
Siigh... Thanks for the feedback.

I'll either revert back to what I had originally (strcpy, strncpy), or switch to a straight memcpy alternative (I'm copying between fixed arrays in some cases, so that's a viable option.