Chameleon

Chameleon Commit Details

Date:2011-08-30 02:32:22 (12 years 7 months ago)
Author:ErmaC
Commit:1476
Parents: 1475
Message:Fix issue 143 http://forge.voodooprojects.org/p/chameleon/issues/143/ Also add 3 more resolution and added the field for each language
Changes:
A/trunk/package/Scripts/Resolutions/1024x600x32
A/trunk/package/Scripts/Resolutions/1440x900x32
A/trunk/package/Scripts/Resolutions/1280x800x32
A/trunk/package/Scripts/Resolutions/1024x600x32/postinstall
A/trunk/package/Scripts/Resolutions/1440x900x32/postinstall
A/trunk/package/Scripts/Resolutions/1280x800x32/postinstall
M/trunk/package/Resources/id.lproj/Localizable.strings
M/trunk/package/Scripts/Resolutions/1280x960x32/postinstall
M/trunk/package/Scripts/Resolutions/1024x768x32/postinstall
M/trunk/package/Resources/en.lproj/Localizable.strings
M/trunk/package/Resources/pt-PT.lproj/Localizable.strings
M/trunk/package/Scripts/Resolutions/1920x1200x32/postinstall
M/trunk/package/Resources/es.lproj/Localizable.strings
M/trunk/package/Scripts/Resolutions/1280x1024x32/postinstall
M/trunk/package/Scripts/Resolutions/1920x1080x32/postinstall
M/trunk/package/Scripts/Resolutions/1680x1050x32/postinstall
M/trunk/package/Resources/pl.lproj/Localizable.strings
M/trunk/package/Resources/it.lproj/Localizable.strings
M/trunk/package/Resources/hr-HR.lproj/Localizable.strings
M/trunk/package/Resources/pt-BR.lproj/Localizable.strings
M/trunk/package/Resources/sr.lproj/Localizable.strings
M/trunk/package/Scripts/Resolutions/1600x900x32/postinstall
M/trunk/package/Resources/de.lproj/Localizable.strings

File differences

trunk/package/Scripts/Resolutions/1024x768x32/postinstall
1919
2020
2121
22
22
2323
2424
2525
2626
2727
28
28
2929
3030
3131
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1024x768x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1024x768x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
trunk/package/Scripts/Resolutions/1024x600x32/postinstall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
# Script to add Graphics_Mode for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
body = ""
for line in infile:
# if GraphicsEnabler is there, advance the next line to
# read past it, and then change the lines to read
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics Mode</key>\n"
line += " <string>1024x600x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics Mode</key>\n"
line += " <string>1024x600x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
trunk/package/Scripts/Resolutions/1920x1200x32/postinstall
1919
2020
2121
22
22
2323
2424
2525
2626
2727
28
28
2929
3030
3131
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1920x1200x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1920x1200x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
trunk/package/Scripts/Resolutions/1600x900x32/postinstall
1919
2020
2121
22
22
2323
2424
2525
2626
2727
28
28
2929
3030
3131
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1600x900x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1600x900x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
trunk/package/Scripts/Resolutions/1280x1024x32/postinstall
1919
2020
2121
22
22
2323
2424
2525
2626
2727
28
28
2929
3030
3131
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1280x1024x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1280x1024x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
trunk/package/Scripts/Resolutions/1440x900x32/postinstall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
# Script to add Graphics_Mode for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
body = ""
for line in infile:
# if GraphicsEnabler is there, advance the next line to
# read past it, and then change the lines to read
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics Mode</key>\n"
line += " <string>1440x900x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics Mode</key>\n"
line += " <string>1440x900x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
trunk/package/Scripts/Resolutions/1280x800x32/postinstall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
# Script to add Graphics_Mode for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
body = ""
for line in infile:
# if GraphicsEnabler is there, advance the next line to
# read past it, and then change the lines to read
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics Mode</key>\n"
line += " <string>1280x800x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics Mode</key>\n"
line += " <string>1280x800x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
trunk/package/Scripts/Resolutions/1680x1050x32/postinstall
1919
2020
2121
22
22
2323
2424
2525
2626
2727
28
28
2929
3030
3131
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1680x1050x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1680x1050x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
trunk/package/Scripts/Resolutions/1920x1080x32/postinstall
1919
2020
2121
22
22
2323
2424
2525
2626
2727
28
28
2929
3030
3131
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1920x1080x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1920x1080x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
trunk/package/Scripts/Resolutions/1280x960x32/postinstall
1919
2020
2121
22
22
2323
2424
2525
2626
2727
28
28
2929
3030
3131
# "<key>GraphicsEnabler<\key>" and "<string>Yes</string>"
if "<key>GraphicsEnabler</key>" in line:
line = infile.next()
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1280x960x32</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics_Mode</key>\n"
line = " <key>Graphics Mode</key>\n"
line += " <string>1280x960x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True

Archive Download the corresponding diff file

Revision: 1476