Merge in Door Dev
This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -26,8 +26,8 @@ jobs:
|
|||||||
# os & python versions
|
# os & python versions
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os-name: [ ubuntu-latest, ubuntu-16.04, macOS-latest, windows-latest ]
|
os-name: [ ubuntu-latest, ubuntu-18.04, macOS-latest, windows-latest ]
|
||||||
python-version: [ 3.7 ]
|
python-version: [ 3.8 ]
|
||||||
# needs: [ install-test ]
|
# needs: [ install-test ]
|
||||||
steps:
|
steps:
|
||||||
# checkout commit
|
# checkout commit
|
||||||
@@ -57,11 +57,11 @@ jobs:
|
|||||||
# run build-gui.py
|
# run build-gui.py
|
||||||
- name: Build GUI
|
- name: Build GUI
|
||||||
run: |
|
run: |
|
||||||
python ./build-gui.py
|
python ./source/meta/build-gui.py
|
||||||
# run build-dr.py
|
# run build-dr.py
|
||||||
- name: Build DungeonRandomizer
|
- name: Build DungeonRandomizer
|
||||||
run: |
|
run: |
|
||||||
python ./build-dr.py
|
python ./source/meta/build-dr.py
|
||||||
# prepare binary artifacts for later step
|
# prepare binary artifacts for later step
|
||||||
- name: Prepare Binary Artifacts
|
- name: Prepare Binary Artifacts
|
||||||
env:
|
env:
|
||||||
@@ -88,8 +88,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# install/release on not xenial
|
# install/release on not xenial
|
||||||
os-name: [ ubuntu-latest, macOS-latest, windows-latest ]
|
os-name: [ ubuntu-latest, ubuntu-18.04, macOS-latest, windows-latest ]
|
||||||
python-version: [ 3.7 ]
|
python-version: [ 3.8 ]
|
||||||
|
|
||||||
needs: [ install-build ]
|
needs: [ install-build ]
|
||||||
steps:
|
steps:
|
||||||
@@ -150,9 +150,9 @@ jobs:
|
|||||||
# os & python versions
|
# os & python versions
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# release only on bionic
|
# release only on focal/bionic
|
||||||
os-name: [ ubuntu-latest ]
|
os-name: [ ubuntu-latest ]
|
||||||
python-version: [ 3.7 ]
|
python-version: [ 3.8 ]
|
||||||
|
|
||||||
needs: [ install-prepare-release ]
|
needs: [ install-prepare-release ]
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
1
Gui.py
1
Gui.py
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
17
Utils.py
17
Utils.py
@@ -36,6 +36,9 @@ def is_bundled():
|
|||||||
return getattr(sys, 'frozen', False)
|
return getattr(sys, 'frozen', False)
|
||||||
|
|
||||||
def local_path(path):
|
def local_path(path):
|
||||||
|
# just do stuff here and bail
|
||||||
|
return os.path.join(".", path)
|
||||||
|
|
||||||
if local_path.cached_path is not None:
|
if local_path.cached_path is not None:
|
||||||
return os.path.join(local_path.cached_path, path)
|
return os.path.join(local_path.cached_path, path)
|
||||||
|
|
||||||
@@ -51,6 +54,9 @@ def local_path(path):
|
|||||||
local_path.cached_path = None
|
local_path.cached_path = None
|
||||||
|
|
||||||
def output_path(path):
|
def output_path(path):
|
||||||
|
# just do stuff here and bail
|
||||||
|
return os.path.join(".", path)
|
||||||
|
|
||||||
if output_path.cached_path is not None:
|
if output_path.cached_path is not None:
|
||||||
return os.path.join(output_path.cached_path, path)
|
return os.path.join(output_path.cached_path, path)
|
||||||
|
|
||||||
@@ -61,15 +67,7 @@ def output_path(path):
|
|||||||
# has been packaged, so cannot use CWD for output.
|
# has been packaged, so cannot use CWD for output.
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
#windows
|
#windows
|
||||||
import ctypes.wintypes
|
documents = os.path.join(os.path.expanduser("~"),"Documents")
|
||||||
CSIDL_PERSONAL = 5 # My Documents
|
|
||||||
SHGFP_TYPE_CURRENT = 0 # Get current, not default value
|
|
||||||
|
|
||||||
buf = ctypes.create_unicode_buffer(ctypes.wintypes.MAX_PATH)
|
|
||||||
ctypes.windll.shell32.SHGetFolderPathW(None, CSIDL_PERSONAL, None, SHGFP_TYPE_CURRENT, buf)
|
|
||||||
|
|
||||||
documents = buf.value
|
|
||||||
|
|
||||||
elif sys.platform == 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
from AppKit import NSSearchPathForDirectoriesInDomains # pylint: disable=import-error
|
from AppKit import NSSearchPathForDirectoriesInDomains # pylint: disable=import-error
|
||||||
# http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSearchPathForDirectoriesInDomains
|
# http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSearchPathForDirectoriesInDomains
|
||||||
@@ -655,4 +653,3 @@ if __name__ == '__main__':
|
|||||||
# room_palette_data(old_rom=sys.argv[1])
|
# room_palette_data(old_rom=sys.argv[1])
|
||||||
# extract_data_from_us_rom(sys.argv[1])
|
# extract_data_from_us_rom(sys.argv[1])
|
||||||
extract_data_from_jp_rom(sys.argv[1])
|
extract_data_from_jp_rom(sys.argv[1])
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user