Skip to content

Commit 3c93938

Browse files
author
JJ-Chang
committed
added custom textbox, added final builds
1 parent a759cee commit 3c93938

File tree

2,357 files changed

+286965
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,357 files changed

+286965
-82
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>Signs of Love</string>
9+
<key>CFBundleDocumentTypes</key>
10+
<array>
11+
<dict>
12+
<key>CFBundleTypeOSTypes</key>
13+
<array>
14+
<string>****</string>
15+
<string>fold</string>
16+
<string>disk</string>
17+
</array>
18+
<key>CFBundleTypeRole</key>
19+
<string>Viewer</string>
20+
</dict>
21+
</array>
22+
<key>CFBundleExecutable</key>
23+
<string>SignsofLove</string>
24+
<key>CFBundleIconFile</key>
25+
<string>icon</string>
26+
<key>CFBundleInfoDictionaryVersion</key>
27+
<string>6.0</string>
28+
<key>CFBundleName</key>
29+
<string>Signs of Love</string>
30+
<key>CFBundlePackageType</key>
31+
<string>APPL</string>
32+
<key>CFBundleShortVersionString</key>
33+
<string>1.0</string>
34+
<key>CFBundleVersion</key>
35+
<string>2021.0822.065452</string>
36+
<key>LSApplicationCategoryType</key>
37+
<string>public.app-category.simulation-games</string>
38+
<key>NSHighResolutionCapable</key>
39+
<true/>
40+
<key>NSSupportsAutomaticGraphicsSwitching</key>
41+
<true/>
42+
<key>UTExportedTypeDeclarations</key>
43+
<array>
44+
<dict>
45+
<key>UTTypeConformsTo</key>
46+
<array>
47+
<string>public.python-script</string>
48+
</array>
49+
<key>UTTypeDescription</key>
50+
<string>Ren'Py Script</string>
51+
<key>UTTypeIdentifier</key>
52+
<string>org.renpy.rpy</string>
53+
<key>UTTypeTagSpecification</key>
54+
<dict>
55+
<key>public.filename-extension</key>
56+
<array>
57+
<string>rpy</string>
58+
</array>
59+
</dict>
60+
</dict>
61+
</array>
62+
</dict>
63+
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# signsOfLove
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
# @PydevCodeAnalysisIgnore
2+
3+
# This file is part of Ren'Py. The license below applies to Ren'Py only.
4+
# Games and other projects that use Ren'Py may use a different license.
5+
6+
# Copyright 2004-2021 Tom Rothamel <pytom@bishoujo.us>
7+
#
8+
# Permission is hereby granted, free of charge, to any person
9+
# obtaining a copy of this software and associated documentation files
10+
# (the "Software"), to deal in the Software without restriction,
11+
# including without limitation the rights to use, copy, modify, merge,
12+
# publish, distribute, sublicense, and/or sell copies of the Software,
13+
# and to permit persons to whom the Software is furnished to do so,
14+
# subject to the following conditions:
15+
#
16+
# The above copyright notice and this permission notice shall be
17+
# included in all copies or substantial portions of the Software.
18+
#
19+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
23+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
24+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26+
27+
from __future__ import print_function, absolute_import
28+
29+
import os
30+
import sys
31+
import warnings
32+
33+
# Functions to be customized by distributors. ################################
34+
35+
# Given the Ren'Py base directory (usually the directory containing
36+
# this file), this is expected to return the path to the common directory.
37+
38+
39+
def path_to_common(renpy_base):
40+
return renpy_base + "/renpy/common"
41+
42+
# Given a directory holding a Ren'Py game, this is expected to return
43+
# the path to a directory that will hold save files.
44+
45+
46+
def path_to_saves(gamedir, save_directory=None):
47+
import renpy # @UnresolvedImport
48+
49+
if save_directory is None:
50+
save_directory = renpy.config.save_directory
51+
save_directory = renpy.exports.fsencode(save_directory)
52+
53+
# Makes sure the permissions are right on the save directory.
54+
def test_writable(d):
55+
try:
56+
fn = os.path.join(d, "test.txt")
57+
open(fn, "w").close()
58+
open(fn, "r").close()
59+
os.unlink(fn)
60+
return True
61+
except:
62+
return False
63+
64+
# Android.
65+
if renpy.android:
66+
paths = [
67+
os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"),
68+
os.path.join(os.environ["ANDROID_PRIVATE"], "saves"),
69+
os.path.join(os.environ["ANDROID_PUBLIC"], "saves"),
70+
]
71+
72+
for rv in paths:
73+
if os.path.isdir(rv) and test_writable(rv):
74+
break
75+
76+
print("Saving to", rv)
77+
78+
# We return the last path as the default.
79+
80+
return rv
81+
82+
if renpy.ios:
83+
from pyobjus import autoclass
84+
from pyobjus.objc_py_types import enum
85+
86+
NSSearchPathDirectory = enum("NSSearchPathDirectory", NSDocumentDirectory=9)
87+
NSSearchPathDomainMask = enum("NSSearchPathDomainMask", NSUserDomainMask=1)
88+
89+
NSFileManager = autoclass('NSFileManager')
90+
manager = NSFileManager.defaultManager()
91+
url = manager.URLsForDirectory_inDomains_(
92+
NSSearchPathDirectory.NSDocumentDirectory,
93+
NSSearchPathDomainMask.NSUserDomainMask,
94+
).lastObject()
95+
96+
# url.path seems to change type based on iOS version, for some reason.
97+
try:
98+
rv = url.path().UTF8String().decode("utf-8")
99+
except:
100+
rv = url.path.UTF8String().decode("utf-8")
101+
102+
print("Saving to", rv)
103+
return rv
104+
105+
# No save directory given.
106+
if not save_directory:
107+
return os.path.join(gamedir, "saves")
108+
109+
# Search the path above Ren'Py for a directory named "Ren'Py Data".
110+
# If it exists, then use that for our save directory.
111+
path = renpy.config.renpy_base
112+
113+
while True:
114+
if os.path.isdir(path + "/Ren'Py Data"):
115+
return path + "/Ren'Py Data/" + save_directory
116+
117+
newpath = os.path.dirname(path)
118+
if path == newpath:
119+
break
120+
path = newpath
121+
122+
# Otherwise, put the saves in a platform-specific location.
123+
if renpy.macintosh:
124+
rv = "~/Library/RenPy/" + save_directory
125+
return os.path.expanduser(rv)
126+
127+
elif renpy.windows:
128+
if 'APPDATA' in os.environ:
129+
return os.environ['APPDATA'] + "/RenPy/" + save_directory
130+
else:
131+
rv = "~/RenPy/" + renpy.config.save_directory
132+
return os.path.expanduser(rv)
133+
134+
else:
135+
rv = "~/.renpy/" + save_directory
136+
return os.path.expanduser(rv)
137+
138+
139+
# Returns the path to the Ren'Py base directory (containing common and
140+
# the launcher, usually.)
141+
def path_to_renpy_base():
142+
renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
143+
renpy_base = os.path.abspath(renpy_base)
144+
145+
return renpy_base
146+
147+
##############################################################################
148+
149+
150+
# Doing the version check this way also doubles as an import of ast,
151+
# which helps py2exe et al.
152+
try:
153+
import ast; ast
154+
except:
155+
print("Ren'Py requires at least python 2.6.")
156+
sys.exit(0)
157+
158+
android = ("ANDROID_PRIVATE" in os.environ)
159+
160+
# Android requires us to add code to the main module, and to command some
161+
# renderers.
162+
if android:
163+
__main__ = sys.modules["__main__"]
164+
__main__.path_to_renpy_base = path_to_renpy_base
165+
__main__.path_to_common = path_to_common
166+
__main__.path_to_saves = path_to_saves
167+
168+
169+
def main():
170+
171+
renpy_base = path_to_renpy_base()
172+
173+
# Add paths.
174+
if os.path.exists(renpy_base + "/module"):
175+
sys.path.append(renpy_base + "/module")
176+
177+
sys.path.append(renpy_base)
178+
179+
# This is looked for by the mac launcher.
180+
if os.path.exists(renpy_base + "/renpy.zip"):
181+
sys.path.append(renpy_base + "/renpy.zip")
182+
183+
# Ignore warnings that happen.
184+
warnings.simplefilter("ignore", DeprecationWarning)
185+
186+
# Start Ren'Py proper.
187+
try:
188+
import renpy.bootstrap
189+
except ImportError:
190+
print("Could not import renpy.bootstrap. Please ensure you decompressed Ren'Py", file=sys.stderr)
191+
print("correctly, preserving the directory structure.", file=sys.stderr)
192+
raise
193+
194+
renpy.bootstrap.bootstrap(renpy_base)
195+
196+
197+
if __name__ == "__main__":
198+
main()
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/bin/sh
2+
3+
SCRIPT="$0"
4+
5+
# Resolve the chain of symlinks leading to this script.
6+
while [ -L "$SCRIPT" ] ; do
7+
LINK=$(readlink "$SCRIPT")
8+
9+
case "$LINK" in
10+
/*)
11+
SCRIPT="$LINK"
12+
;;
13+
*)
14+
SCRIPT="$(dirname "$SCRIPT")/$LINK"
15+
;;
16+
esac
17+
done
18+
19+
# The directory containing this shell script - an absolute path.
20+
ROOT=$(dirname "$SCRIPT")
21+
ROOT=$(cd "$ROOT"; pwd)
22+
23+
# The name of this shell script without the .sh on the end.
24+
BASEFILE=$(basename "$SCRIPT" .sh)
25+
26+
if [ -z "$RENPY_PLATFORM" ] ; then
27+
RENPY_PLATFORM="$(uname -s)-$(uname -m)"
28+
29+
case "$RENPY_PLATFORM" in
30+
Darwin-*|mac-*)
31+
RENPY_PLATFORM="mac-x86_64"
32+
;;
33+
*-x86_64|amd64)
34+
RENPY_PLATFORM="linux-x86_64"
35+
;;
36+
*-i*86)
37+
RENPY_PLATFORM="linux-i686"
38+
;;
39+
Linux-*)
40+
RENPY_PLATFORM="linux-$(uname -m)"
41+
;;
42+
*)
43+
;;
44+
esac
45+
fi
46+
47+
LIB="$ROOT/lib/$RENPY_PLATFORM"
48+
49+
if ! test -d "$LIB"; then
50+
echo "Ren'Py platform files not found in:"
51+
echo
52+
echo "$ROOT/lib/$RENPY_PLATFORM"
53+
echo
54+
echo "Please compile the platform files using the instructions in README.md"
55+
echo "or point them to an existing installation using ./after_checkout.sh <path>."
56+
echo
57+
echo "Alternatively, please set RENPY_PLATFORM to a different platform."
58+
exit 1
59+
fi
60+
61+
exec $RENPY_GDB "$LIB/$BASEFILE" "$@"

0 commit comments

Comments
 (0)