Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
OpenRCT2-mod
Commits
034bf5c6
Commit
034bf5c6
authored
9 years ago
by
LRFLEW
Browse files
Options
Download
Email Patches
Plain Diff
Added Xcode Project
parent
229abec6
develop
No related merge requests found
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
.gitattributes
+3
-0
.gitattributes
.gitignore
+32
-0
.gitignore
OpenRCT2.xcodeproj/project.pbxproj
+1676
-0
OpenRCT2.xcodeproj/project.pbxproj
OpenRCT2.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+7
-0
...T2.xcodeproj/project.xcworkspace/contents.xcworkspacedata
OpenRCT2.xcodeproj/project.xcworkspace/xcshareddata/OpenRCT2.xcscmblueprint
+16
-0
.../project.xcworkspace/xcshareddata/OpenRCT2.xcscmblueprint
build.sh
+6
-1
build.sh
distribution/osx/Assets.xcassets/AppIcon.appiconset/Contents.json
+68
-0
...tion/osx/Assets.xcassets/AppIcon.appiconset/Contents.json
distribution/osx/Info.plist
+26
-0
distribution/osx/Info.plist
install.sh
+5
-1
install.sh
src/cmdline.c
+16
-2
src/cmdline.c
with
1855 additions
and
4 deletions
+1855
-4
.gitattributes
+
3
-
0
View file @
034bf5c6
...
...
@@ -9,6 +9,9 @@
*.fsproj merge=union
*.dbproj merge=union
# Custom for Xcode
*.pbxproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
...
...
This diff is collapsed.
Click to expand it.
.gitignore
+
32
-
0
View file @
034bf5c6
...
...
@@ -5,6 +5,9 @@ sdl
# Compiled dll
openrct2.dll
# Compiled linux executable
openrct2
# Distribution
distribution/windows/*.exe
...
...
@@ -199,9 +202,38 @@ Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
#############
## Xcode
#############
# Build generated
build/
DerivedData
# Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
# Other
*.xccheckout
*.moved-aside
*.xcuserstate
# Mac crap
.DS_Store
# We link logo files to .xcassets in Xcode project, so don't sync them
distribution/osx/Assets.xcassets/AppIcon.appiconset/*.png
# Extra Xcode-specific lib files
libxc
#############
## Python
...
...
This diff is collapsed.
Click to expand it.
OpenRCT2.xcodeproj/project.pbxproj
0 → 100644
+
1676
-
0
View file @
034bf5c6
This diff is collapsed.
Click to expand it.
OpenRCT2.xcodeproj/project.xcworkspace/contents.xcworkspacedata
0 → 100644
+
7
-
0
View file @
034bf5c6
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version =
"1.0"
>
<FileRef
location =
"self:OpenRCT2.xcodeproj"
>
</FileRef>
</Workspace>
This diff is collapsed.
Click to expand it.
OpenRCT2.xcodeproj/project.xcworkspace/xcshareddata/OpenRCT2.xcscmblueprint
0 → 100644
+
16
-
0
View file @
034bf5c6
{
"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "E48FB7C08C6966C4BACE7D0390CDFA7C64DD04D8",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {
},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"E48FB7C08C6966C4BACE7D0390CDFA7C64DD04D8" : 0
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "6B7243E0-B9B8-4E6D-ACE9-4DF346FA52C7",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"E48FB7C08C6966C4BACE7D0390CDFA7C64DD04D8" : "OpenRCT2\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "OpenRCT2",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "OpenRCT2.xcodeproj"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build.sh
+
6
-
1
View file @
034bf5c6
...
...
@@ -13,7 +13,12 @@ if [[ ! -d build ]]; then
fi
# keep in sync with version in install.sh
sha256sum
=
69ff98c9544838fb16384bc78af9dc1c452b9d01d919e43f5fec686d02c9bdd8
if
[[
$(
uname
-s
)
==
"Darwin"
]]
;
then
# keep in sync with version in Xcode project
sha256sum
=
2cec3958352477fbb876a5b6398722077084b5ff7e95a7d3cd67492abf5012fc
else
sha256sum
=
69ff98c9544838fb16384bc78af9dc1c452b9d01d919e43f5fec686d02c9bdd8
fi
libVFile
=
"./libversion"
libdir
=
"./lib"
currentversion
=
0
...
...
This diff is collapsed.
Click to expand it.
distribution/osx/Assets.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
+
68
-
0
View file @
034bf5c6
{
"images"
:
[
{
"size"
:
"16x16"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_16x16.png"
,
"scale"
:
"1x"
},
{
"size"
:
"16x16"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_16x16@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"32x32"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_32x32.png"
,
"scale"
:
"1x"
},
{
"size"
:
"32x32"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_32x32@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"128x128"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_128x128.png"
,
"scale"
:
"1x"
},
{
"size"
:
"128x128"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_128x128@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"256x256"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_256x256.png"
,
"scale"
:
"1x"
},
{
"size"
:
"256x256"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_256x256@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"512x512"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_512x512.png"
,
"scale"
:
"1x"
},
{
"size"
:
"512x512"
,
"idiom"
:
"mac"
,
"filename"
:
"icon_512x512@2x.png"
,
"scale"
:
"2x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
distribution/osx/Info.plist
0 → 100644
+
26
-
0
View file @
034bf5c6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
CFBundleExecutable
</key>
<string>
$(EXECUTABLE_NAME)
</string>
<key>
CFBundleIdentifier
</key>
<string>
$(PRODUCT_BUNDLE_IDENTIFIER)
</string>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
CFBundleName
</key>
<string>
$(PRODUCT_NAME)
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleShortVersionString
</key>
<string>
1.0
</string>
<key>
CFBundleSignature
</key>
<string>
ORCT
</string>
<key>
CFBundleVersion
</key>
<string>
1
</string>
<key>
LSMinimumSystemVersion
</key>
<string>
$(MACOSX_DEPLOYMENT_TARGET)
</string>
<key>
NSHumanReadableCopyright
</key>
<string>
OpenRCT2 is licensed under the GNU General Public License version 3
</string>
</dict>
</plist>
This diff is collapsed.
Click to expand it.
install.sh
+
5
-
1
View file @
034bf5c6
...
...
@@ -4,7 +4,11 @@ SDL2_PV=2.0.3
SDL2_TTF_PV
=
2.0.12
cachedir
=
.cache
liburl
=
https://openrct2.website/files/orctlibs.zip
if
[[
$(
uname
-s
)
==
"Darwin"
]]
;
then
liburl
=
https://openrct2.website/files/orctlibs-osx.zip
else
liburl
=
https://openrct2.website/files/orctlibs.zip
fi
mkdir
-p
"
$cachedir
"
# Sets default target to "linux", if none specified
...
...
This diff is collapsed.
Click to expand it.
src/cmdline.c
+
16
-
2
View file @
034bf5c6
...
...
@@ -99,9 +99,23 @@ int cmdline_run(const char **argv, int argc)
* a null pointer in the array. Because of this, AppKit in OS X 10.10 will
* dereference it, causing a segmentation fault.
*/
char
**
mutableArgv
=
malloc
(
argvsize
);
const
char
**
mutableArgv
=
malloc
(
argvsize
);
#ifdef __APPLE__
/**
* Fixes problems with the default settings in the Xcode debugger
* with it adding the option "-NSDocumentRevisionsDebugMode"
*/
int
k
=
0
;
for
(
int
i
=
0
;
i
<
argc
;
++
i
)
if
(
strcmp
(
argv
[
k
],
"-NSDocumentRevisionsDebugMode"
)
!=
0
)
mutableArgv
[
k
++
]
=
argv
[
i
];
argc
=
k
;
#else
memcpy
(
mutableArgv
,
argv
,
argvsize
);
argc
=
argparse_parse
(
&
argparse
,
argc
,
(
const
char
**
)
mutableArgv
);
#endif
argc
=
argparse_parse
(
&
argparse
,
argc
,
mutableArgv
);
if
(
version
)
{
print_version
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help