88 Commits

Author SHA1 Message Date
atsb
96ae43b569 Macos stb image branch 2024-05-15 18:54:13 +00:00
atsb
3b21410b26 bool to bool32 cleanup 2024-04-05 20:56:49 +00:00
atsb
2faaf8141d removing sdl big folder and file - #62 2024-02-03 09:55:29 +00:00
atsb
cc26406665 feat: alt keyboard flexibility changes - #49
fixing some bugs with left and right alt abilities

I also removed the hardcoded hex codes for three keys, added SDL scancode equivalents and also added right key support for modifiers.
2024-01-28 15:24:36 +01:00
atsb
509fbdb668 Partly fixing sensor weirdness for 64bit
Stubbing it for now, until a full fix is found.
2024-01-26 16:57:47 +01:00
atsb
712824e997 cleaning up spurious, unused and dead code 2024-01-26 16:57:13 +01:00
atsb
7971e3c20e Version string menu change 2024-01-15 18:47:42 +00:00
atsb
071b55f064 macOS: Fixing textures 2024-01-14 23:31:17 +01:00
atsb
96f868beca docs: MacOS: Adding build instructions for macOS
Consolidating macOS sections into one section on compilation instructions
2023-12-31 16:48:54 +01:00
atsb
0a16ea5d12 MacOS: Fixing build with latest code 2023-12-31 16:48:54 +01:00
atsb
764ceee06a feat: macOS: Universal port (Intel and ARM64)
macOS: The game now compiles and runs on modern (macOS 11.5+) macs, both
on x86_64 and arm64

macOS: When compiled for Raider Retreat, the game now uses a separate directory

macOS: utility_mac.c and File_Mac.c are now used by the build system
instead of utility.c and File.c respectively. This reduces the overall
amount of hard to read `#if`ed code on all platforms.
2023-09-19 18:47:00 +02:00
lmop
a81d6de727 Linking against OpenGL.framework, necessitated by deletion of RGL (r892-r894)
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@899 026c9d8a-83c9-0310-a9c7-971d0a006279
2011-04-04 08:17:35 +00:00
lmop
d79375f291 Removing references to files deleted in RGL removal (r894)
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@898 026c9d8a-83c9-0310-a9c7-971d0a006279
2011-04-04 08:17:33 +00:00
lmop
d4217c89ee Sanitising project/target settings for Homeworld/Raider Retreat
The project settings now define ALL configuration behaviour for
development/deployment, regardless of target. A number of settings
were not useful and were probably mistakenly set or not reverted
properly; these now use Xcode's defaults. The only settings remaining
at the target level are those specific to them: resource file names;
build flags. Things are now a lot cleaner and certainly less confusing,
particularly if you filter by "Settings defined at this level".

NB: 'Default' is not used; you must explicitly choose 'Development' or
'Deployment'.

git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@831 026c9d8a-83c9-0310-a9c7-971d0a006279
2011-03-26 21:57:41 +00:00
lmop
08e216b67f Removing references to frameworks we don't link against
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@830 026c9d8a-83c9-0310-a9c7-971d0a006279
2011-03-26 21:57:29 +00:00
lmop
ae6e5904eb Enabling compilation of sound files for Raider Retreat on Mac OS X
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@829 026c9d8a-83c9-0310-a9c7-971d0a006279
2011-03-26 21:57:17 +00:00
lmop
b35f73b90b Xcode 3.2.4 added these to the configuration
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@789 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-10-31 19:13:34 +00:00
lmop
77758d01f6 Fixing compilation of JPEG code on Mac OS X after upgrade to IJG JPEG version 8b (r736)
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@738 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-09-12 15:37:06 +00:00
lmop
3e4805e346 Upgrading Mac OS X project to use SDL 1.2.14
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@720 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-08-31 13:58:20 +00:00
lmop
30b79d5b87 Correcting documented Mac OS X home directory path
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@719 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-08-31 13:58:14 +00:00
lmop
4dd157fafd Turning off optimisation for Mac OS X debugging builds
Previously reverted in r676 thanks to Xcode 3's "2.4 compatible" mode.

Xcode "Optimization Level" description:
None: Do not optimize. [-O0]

With this setting, the compiler's goal is to reduce the cost of compilation
and to make debugging produce the expected results. Statements are
independent: if you stop the program with a breakpoint between statements,
you can then assign a new value to any variable or change the program
counter to any other statement in the function and get exactly the results
you would expect from the source code.

git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@718 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-08-31 13:58:08 +00:00
lmop
8b4596dd2d Describing the full list of _MACOSX_* #defines in use
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@716 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-08-31 13:58:01 +00:00
lmop
9c4024abb8 Deprecating _MACOSX_FIX_ME #define completely
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@715 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-08-31 13:57:58 +00:00
lmop
92f8ea44a6 C_ONLY #define was deprecated in r594
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@714 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-08-31 13:57:55 +00:00
andrewcolchagoff
40536ba93a Fixes for the spurious texture bug on os x.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@691 026c9d8a-83c9-0310-a9c7-971d0a006279
2009-12-25 18:35:56 +00:00
andrewcolchagoff
07403556ca osx cleanup in ETG.c, and updated os x project files
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@688 026c9d8a-83c9-0310-a9c7-971d0a006279
2009-11-22 21:23:02 +00:00
andrewcolchagoff
a88e392ad9 Used #ifdef statements to prevent Mac OS X from compiling any assembly other than the assembly in etgFunctionCall. Re-wrote assembly in etgFunctionCall to address stack problems on OS X, and used #ifdef statements to differentiate between osx and other x86 platforms.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@677 026c9d8a-83c9-0310-a9c7-971d0a006279
2009-03-10 03:54:56 +00:00
andrewcolchagoff
88dbe9a0aa Same as the last commit, only half of the files commited
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@676 026c9d8a-83c9-0310-a9c7-971d0a006279
2008-11-03 22:19:28 +00:00
lmop
20fb37923d Mac OS X version supports use of SDL 1.2.13.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@649 026c9d8a-83c9-0310-a9c7-971d0a006279
2008-04-26 12:13:19 +00:00
lmop
8a14bf9ad7 Upgrading Mac version to use SDL 1.2.12.
(NB: 1.2.12 didn't change SDLMain.[mh])


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@621 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-09-15 16:07:11 +00:00
lmop
09bbef1d13 Incrementing version strings in Mac OS X project to 0.9alpha.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@614 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-06-03 17:10:57 +00:00
lmop
d14af566f7 Adding new file in the foundation layer intended to centralise
platform-specific tweaking of #includes of the Standard Library.

Eventually there should be no "#include <>" lines in the
Homeworld SDL codebase apart from in this file and third party
libraries which should remain unedited as much as possible.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@576 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-03-27 23:19:18 +00:00
lmop
8a5e04c22a Add more warning flags to the Mac OS X build and got more than
3000 warnings (many duplicates) for my trouble. Oh joy.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@571 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-03-26 21:14:35 +00:00
lmop
8b373e4792 Sync'ing Homeworld/Raider Retreat Mac OS X builds with the
new MissionEnum sequencing code.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@553 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-03-21 20:13:10 +00:00
lmop
aac5d4fdc0 Replaces the numeric mission counter with a mission sequence. This allows for arbitrary
mission ordering and is the first step towards integrating Raider Retreat within the
main game. However, there are still a fair few hardcoded assumptions remaining which
means that it cannot be as completely arbitrary as it should be. In particular,
MISSION_1_KHARAK_SYSTEM should always be the first mission since it creates the player's
initial fleet. Remaining work to do:

- Move all mission <-> NIS(let) mappings into the .kas scripts

- All MISSION_* references in code outside of the mission sequence definition itself
represent mission-specific hacks. These should be replaced with generic
toggling/configuration code which provides that functionality and then call/set it
from the .kas scripts.

- The research tree does not play nicely with heavily butchered mission sequences. The
.kas scripts should be specify a maximum level of tech allowed in the mission and make
all tech up to that level available for research. (NB: that's not a great solution
either since it assumes a fairly linear research tree.)

I'm sure there are other bits and pieces too but I can't immediately think what they
are...


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@548 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-03-15 23:34:06 +00:00
lmop
6f29a9b60b Removing header copying into application bundle. Not sure when/how
this crept back in...


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@546 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-03-14 21:12:27 +00:00
lmop
a2e2e1c31a Miscellaneous cleanup.
(Original commit: branches/mobile_lmop r506)


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@519 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-02-27 20:57:58 +00:00
lmop
79e0196410 Updating Mac OS X project to take account of deletion of
FastMath.c in r490.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@502 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-02-27 19:05:51 +00:00
lmop
9031f2a7ca Miscellaneous cleanup.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@390 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-09 14:34:29 +00:00
lmop
e20654cd6c HW_BUILD_FOR_DEBUGGING now the build type for Mac OS X "Development" builds.
HW_BUILD_FOR_DISTRIBUTION now the build type for Mac OS X "Deployment"  builds.

Full screen mode turned off for Mac OS X debug builds to prevent complete loss
of control of the computer should the debugger kick in (debugger intercepts all
input; Homeworld covers whole screen so can't interact with debugger...) and
force the user to reboot.

Turns full screen mode back on for all other platforms having accidentally
disabled it in an earlier commit.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@385 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-09 00:39:18 +00:00
lmop
4ca88fc6c5 HW_Release -> HW_BUILD_FOR_DISTRIBUTION
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@383 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-08 23:48:16 +00:00
lmop
720fe8967b Introduction of the HW_GAME_HOMEWORLD game type.
The setting of a HW_GAME_* #define is now enforced.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@382 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-08 23:24:20 +00:00
lmop
de046f699e HW_RAIDER_RETREAT -> HW_GAME_RAIDER_RETREAT
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@381 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-08 22:57:06 +00:00
lmop
08a70321ed Removing previously missed Xcode configuration allowing implicit
header lookups. See also r366


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@380 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-08 22:37:18 +00:00
lmop
5e6dd2b0fa Replaces the endian byte-swapping code with SDL's own versions which
have nice, fast assembly equivalents. Cleaned up Types.h a bit.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@374 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-07 00:43:33 +00:00
lmop
699938c6e8 Picking up move of ServerStatus.h
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@372 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-06 00:54:30 +00:00
lmop
9cfea36d06 Removing Xcode configuration that allowed it to resolve implicit
header #includes (if there's a dependency, we should know about it). 


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@366 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-05 20:50:55 +00:00
lmop
3927995dc4 Bumping the Mac OS X public release version to 0.8alpha
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@347 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-02 15:50:23 +00:00
lmop
a5f494cb61 Updating the Xcode project to take into account the deletion of
glcompat.* in r344.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@346 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-02 12:43:43 +00:00
lmop
9ee3226475 Bits and pieces missed from r320 due to commit from /src, not /.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@329 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-11-26 13:12:43 +00:00