Commit Graph

1108 Commits

Author SHA1 Message Date
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
Wolfgang Thaller
b1dde42211 Revert "Another attempt at skipping cachix upload without tokens"
This reverts commit 9e977cfd6e.
2022-08-01 16:58:49 +02:00
Wolfgang Thaller
9e977cfd6e Another attempt at skipping cachix upload without tokens 2022-08-01 10:29:52 +02:00
Wolfgang Thaller
b80961e6c1 simplify 2022-07-31 23:24:53 +02:00
Wolfgang Thaller
d8186c3af4 try a different method of testing whether the cachix token is available 2022-07-31 23:24:17 +02:00
Wolfgang Thaller
36a7828356
Merge pull request #162 from autc04/cachix-fix
don't try to upload PR builds to cachix
2022-07-31 23:08:29 +02:00
Wolfgang Thaller
d4d6fc69a9 don't try to upload PR builds to cachix 2022-07-31 22:54:06 +02:00
Wolfgang Thaller
cbeb763ab5
Merge pull request #159 from myon98/boost179-fix
Fix for Boost 1.79
2022-07-31 19:38:12 +02:00
Ryan Schmidt
60fe5bdec9
Raytracer: Fix typo in comment 2022-07-31 12:24:34 -05:00
Takamichi Horikawa
b6a68b59e9
Fix for Boost 1.79 2022-07-31 15:58:10 +09:00
Wolfgang Thaller
8704ff3756
Merge pull request #157 from wezm/patch-1
Update attribute for powerpc nix builds in README
2022-07-21 16:11:46 +02:00
Wesley Moore
e9ad55daf7
Update attribute for powerpc nix builds in README 2022-07-21 22:00:00 +10:00
Wolfgang Thaller
64e5ee1db7
Merge pull request #156 from PQCraft/master
Arch dependency command
2022-07-18 19:11:12 +02:00
PQCraft
ad7fb2b2d0
Arch dependency command
Added a command to install the prerequisites on Arch Linux to README.md
2022-07-13 03:17:40 -04:00
Wolfgang Thaller
943a34a2f8
Merge pull request #153 from ryandesign/patch-1
Fix typo in README.md
2022-03-18 10:44:52 +01:00
Ryan Schmidt
ecf9a4e12b
Fix typo in README.md 2022-03-17 23:10:37 -05:00
Wolfgang Thaller
6e00994e45
Merge pull request #151 from autc04/macnix
NIx-based CI for macOS
2022-01-29 18:46:40 +01:00
Wolfgang Thaller
461911892d re-enable regular builds 2022-01-29 17:47:48 +01:00
Wolfgang Thaller
5677cd6976 try adding carbon build 2022-01-19 00:58:03 +01:00
Wolfgang Thaller
67ca8f6e7c ADO is so strict about job names.... 2022-01-19 00:10:50 +01:00
Wolfgang Thaller
eb8be73b36 fix yaml syntax 2022-01-19 00:09:34 +01:00
Wolfgang Thaller
9791599661 matrix build 2022-01-19 00:06:02 +01:00
Wolfgang Thaller
19f143a4be syntax variation 2022-01-18 10:20:11 +01:00
Wolfgang Thaller
ae6785bcdc forgot export 2022-01-18 09:35:00 +01:00
Wolfgang Thaller
e00d4c692a try NIX_EXTRA_CONF 2022-01-18 09:30:03 +01:00
Wolfgang Thaller
636e1a26ec experiment 2022-01-18 09:20:04 +01:00
Wolfgang Thaller
423ac43905 use launchctl to restart nix daemon 2022-01-18 09:08:45 +01:00
Wolfgang Thaller
4b9d7265a2 cachix fixes 2022-01-18 00:41:23 +01:00
Wolfgang Thaller
0a3e5550c7 add cachix 2022-01-18 00:05:48 +01:00
Wolfgang Thaller
015529e93f experiment 2022-01-17 23:59:29 +01:00
Wolfgang Thaller
3508da596a source something else to get nix profile 2022-01-17 23:51:01 +01:00