Commit Graph

988 Commits

Author SHA1 Message Date
Wolfgang Thaller
4007b27d05 fix plain C pascal strings 2023-07-04 23:30:47 +02:00
Wolfgang Thaller
281135ccfa add test for pascal strings in C++ 2022-12-04 10:28:57 +01:00
Wolfgang Thaller
a966fd5f8a Elf2Mac: don't insist that sections actually exist 2022-12-04 10:28:33 +01:00
Wolfgang Thaller
b7f956111a nix: add texinfo build input 2022-12-04 10:27:21 +01:00
Wolfgang Thaller
2abb66c0b7 work around (fix?) the strange cross-segment refs that GNU ld generates when debug info is present 2022-10-28 18:03:30 +02:00
Wolfgang Thaller
74fc6d3995 add automated test for pascal string literals 2022-10-28 11:39:46 +02:00
Wolfgang Thaller
ca8e6715cb PowerPC: we need XCOFF_DEBUG, dwarf doesn't work 2022-10-28 11:38:55 +02:00
Wolfgang Thaller
d0bc757570 fixes for gcc 12.2 update 2022-10-27 23:05:23 +02:00
Wolfgang Thaller
3bd66e8819 re-apply fix lost in merge 2022-10-27 22:00:33 +02:00
Wolfgang Thaller
326b9c406d Merge branch 'upstream' into gcc12-update 2022-10-27 21:55:34 +02:00
Wolfgang Thaller
70cf4d1e0b gcc 12.2.0 and newlib 4.2.0 (484d2ebf8d82) 2022-10-27 20:55:19 +02:00
Wolfgang Thaller
f485e125c4 binutils 2.39 2022-10-27 20:45:45 +02:00
Wolfgang Thaller
6ea1bcda2b Revert "switch from binutils only to binutils-gdb, tag gdb-10.1-release"
This reverts commit 6c5c652ee1.
2022-10-27 20:43:13 +02:00
Wolfgang Thaller
2d38cceb19
Merge pull request #189 from ryandesign/minivmac-copy-attrs
MiniVMac.cc: Preserve attributes when copying
2022-10-25 23:27:07 +02:00
Wolfgang Thaller
932ceadf9c
Merge pull request #190 from ryandesign/LaunchAPPL-find-libhfs
LaunchAPPL: Find libhfs header/library
2022-10-25 23:26:29 +02:00
Ryan Schmidt
f06c07d40d LaunchAPPL: Find libhfs header/library 2022-10-08 00:06:46 -05:00
Ryan Schmidt
14f5ad3728 MiniVMac.cc: Preserve attributes when copying
When copying files from the system disk image to the new disk image,
preserve all attributes (creation date, modification date, bundle bit,
locked bit, etc.), except clear the inited bit so that the Finder
chooses new icon positions, otherwise (under System 6 at least) the
icons pile up on top of each other. Preserving the bundle bit in
particular tells the Finder to look in the file for icon information
when building the desktop database, without which the files all show
generic icons in the Finder.
2022-10-06 17:11:32 -05:00
Wolfgang Thaller
3db76c9abe
Merge pull request #188 from ryandesign/libretro-typos
Fix typos in comments in libretro
2022-10-06 23:36:06 +02:00
Ryan Schmidt
97b257e8b4 Fix typos in comments in libretro 2022-10-05 19:53:00 -05:00
Wolfgang Thaller
280a1e4ac6
Merge pull request #186 from ryandesign/LaunchAPPL.cfg-typos
LaunchAPPL.cfg.example: Fix typos
2022-10-02 14:12:19 +02:00
Ryan Schmidt
18f189162e LaunchAPPL.cfg.example: Fix typos 2022-10-02 00:28:47 -05:00
Wolfgang Thaller
1f533b761c
Merge pull request #183 from ryandesign/minivmac-find-folder
MiniVMac.cc: Use localized Extensions and Startup Items folder names
2022-10-01 11:12:47 +02:00
Wolfgang Thaller
c5c9e281f4
Merge pull request #182 from ryandesign/minivmac-finder-macsbug
MiniVMac.cc: Get Finder/MacsBug name from boot blocks
2022-10-01 11:12:06 +02:00
Wolfgang Thaller
ccc8ad12bb
Merge pull request #181 from ryandesign/LaunchAPPL.cfg-minivmac-system7
LaunchAPPL.cfg.example: Update for System 7
2022-10-01 11:11:28 +02:00
Wolfgang Thaller
8798070524
Merge pull request #177 from ryandesign/minivmac-alias
MiniVMac.cc: Fix alias creation code
2022-10-01 11:11:09 +02:00
Wolfgang Thaller
45236e10c0
Merge pull request #180 from ryandesign/azure-macos11
Azure: Update to macOS 11
2022-09-22 22:02:00 +02:00
Wolfgang Thaller
0288f3d5a6
Merge pull request #178 from ryandesign/add_application-r-absolute
cmake: Allow rez files specified by absolute path
2022-09-22 22:01:30 +02:00
Wolfgang Thaller
c0fcf42d04
Merge pull request #173 from ryandesign/cmake-powerpc
Make ppc/carbon cmake files refer to powerpc dir
2022-09-22 21:58:10 +02:00
Wolfgang Thaller
48d5bc0bb0
Merge pull request #169 from autc04/ppc601-by-default
switch PROCESSOR_DEFAULT to PROCESSOR_PPC601
2022-09-22 21:57:39 +02:00
Ryan Schmidt
72322d65d7 MiniVMac.cc: New method FindFolder
Remove hardcoded Extensions and Startup Items folder names and get the
correct localized names from the System file's 'fld#' resource.
2022-09-22 06:35:53 -05:00
Ryan Schmidt
425bb8b054 MiniVMac.cc: New method ReadSystemResources
Move the System file resource-reading code out of GetSystemVersion and
into a new ReadSystemResources method which stores the resources in a
new member variable so that it can be used by multiple methods.
2022-09-22 05:27:51 -05:00
Ryan Schmidt
171577c140 MiniVMac.cc: Get Finder/MacsBug name from boot blocks
Closes: #172
2022-09-22 03:33:04 -05:00
Ryan Schmidt
00cd6666a4 LaunchAPPL.cfg.example: Update for System 7 2022-09-22 01:47:30 -05:00
Ryan Schmidt
087989661c MiniVMac.cc: Fix alias creation code
* Convert all field values from host order to big-endian so they aren't
  byte-swapped when created on little-endian systems.
* Pack the struct so the compiler doesn't insert padding on 64-bit
  systems.
* Fix the volume and file creation timestamps by converting them from
  UNIX to Macintosh time base, using a function copied from hfsutils.
* Pad volume and file names with null bytes instead of random memory.
* Add the "end of variable-length data" marker so the OS doesn't crash
  when trying to resolve the alias.
* Set the alias flag so the OS treats the file as an alias.
2022-09-22 00:38:06 -05:00
Ryan Schmidt
e03a4d2344 Azure: Update to macOS 11
The macOS 10.15 environment is scheduled for removal by December and is
subject to periodic scheduled brownouts until then.
2022-09-22 00:23:58 -05:00
Ryan Schmidt
3616f855a9 cmake: Allow specifying rez files by absolute path
This allows generated rez files to be listed in add_application by their
full path in the build directory, e.g. ${CMAKE_CURRENT_BINARY_DIR}/foo.r

Closes #176
2022-09-22 00:16:22 -05:00
Wolfgang Thaller
8fdb2f3a84
Merge pull request #175 from ryandesign/minivmac
MiniVMac.cc: Copy some extensions if present
2022-09-20 23:40:26 +02:00
Ryan Schmidt
17cbe507a2 MiniVMac.cc: Copy some extensions if present
See: https://github.com/autc04/Retro68/issues/171
2022-09-20 04:54:15 -05:00
Ryan Schmidt
a4ce95e1a8 Make ppc/carbon cmake files refer to powerpc dir 2022-09-20 00:04:00 -05:00
Wolfgang Thaller
3d744ea86e switch PROCESSOR_DEFAULT to PROCESSOR_PPC601 2022-08-28 19:31:47 +02:00
Wolfgang Thaller
104f61d5bf
Merge pull request #166 from Kristine1975/patch-1
Link to www.nixos.org is Github-relative
2022-08-28 18:59:26 +02:00
Kristine1975
710c90bcc1
Link to www.nixos.org is Github-relative
This link to www.nixos.org incorrectly leads to https://github.com/autc04/Retro68/blob/master/www.nixos.org: 8109463758/README.md (L155)

The reason is the missing `https://` schema, so when Github renders the markdown, it treats the link as Github-relative. This PR fixes that.
2022-08-17 09:56:29 +02:00
Wolfgang Thaller
8109463758
Merge pull request #164 from ryandesign/patch-1
interfaces-and-libraries.sh: Fix typo in comment
2022-08-04 12:25:35 +02:00
Wolfgang Thaller
328a53676e
Merge pull request #165 from ryandesign/patch-3
cmake: Change double slash to single slash
2022-08-04 12:15:03 +02:00
Wolfgang Thaller
b99cec8763
Merge pull request #160 from ryandesign/patch-2
LaunchAPPL: Fix two macOS Mini vMac launching bugs
2022-08-04 12:12:58 +02:00
Ryan Schmidt
53244b19c9 cmake: Change double slash to single slash 2022-08-03 14:27:30 -05:00
Ryan Schmidt
4a7b698ab4 LaunchAPPL: Fix two macOS Mini vMac launching bugs
On all macOS versions, Mini vMac would launch behind other applications
because it was being launched by running the executable within the
application bundle directly. The solution is to let the OS launch the
app normally by using the open utility. This eliminates the 30 lines of
code that laboriously determined the executable name.

On macOS 10.12 and later, Mini vMac could not find the ROM or disk
files. These files were being placed in the same directory as the Mini
vMac application, but a new macOS security measure called Gatekeeper
Path Randomization or App Translocation prevents that from working
anymore. See https://www.gryphel.com/c/minivmac/osx_note.html. The
solution is to place the ROM and disk files within the mnvm_dat
directory in the Contents directory in the application bundle.

The code that copies Mini vMac into the temporary directory had to be
moved earlier so that when the ROM file is symlinked and the disk image
is created the mnvm_dat directory into which they go will be there.

Since more than one method needed to know whether Mini vMac was an app
bundle, a Boolean instance var was added on macOS to indicate that.
2022-08-03 14:07:41 -05:00
Ryan Schmidt
a8910354d2
interfaces-and-libraries.sh: Fix typo in comment 2022-08-03 13:20:03 -05:00
Wolfgang Thaller
75631f17ae
Merge pull request #161 from ryandesign/patch-1
Raytracer: Fix typo in comment
2022-08-02 17:47:57 +02:00
Wolfgang Thaller
32c718987d cachix: suppress failures 2022-08-01 18:06:16 +02:00