diff --git a/docs/building.md b/docs/building.md index 0de4e198a..488097a28 100644 --- a/docs/building.md +++ b/docs/building.md @@ -9,7 +9,7 @@ video drivers for your card. ### Windows * Windows 8 or 8.1 -* Visual Studio 2013 +* Visual Studio 2013+ * [Python 2.7](http://www.python.org/download/releases/2.7.6/) * If you are on Windows 8, you will also need the [Windows 8.1 SDK](http://msdn.microsoft.com/en-us/windows/desktop/bg162891) @@ -20,7 +20,7 @@ line usage. #### Debugging -VS behaves oddly with the debug paths. Open the xenia-run project properties +VS behaves oddly with the debug paths. Open the xenia project properties and set the 'Command' to `$(SolutionDir)$(TargetPath)` and the 'Working Directory' to `$(SolutionDir)..\..`. You can specify flags and the file to run in the 'Command Arguments' field (or use `--flagfile=flags.txt`). @@ -32,7 +32,7 @@ the file to run in the 'Command Arguments' field (or use `--flagfile=flags.txt`) #### Debugging -Choose `Product > Scheme > Edit Scheme`. For xenia-run, alloy-sandbox, and the +Choose `Product > Scheme > Edit Scheme`. For xenia, alloy-sandbox, and the other executables select the Run action on the left and set `Options > Working Directory` to your root xenia/ git path. @@ -109,14 +109,8 @@ switching between the debug and release variants with `--debug`. To make life easier you can use `--flagfile=myflags.txt` to specify all arguments, including using `--target=my.xex` to pick an executable. -### xenia-info - -Dumps information about a xex file. - - ./bin/xenia-info some.xex - -### xenia-run +### xenia Runs a xex. - ./bin/xenia-run some.xex + ./bin/xenia some.xex diff --git a/src/xenia/ui/win32/win32_window.cc b/src/xenia/ui/win32/win32_window.cc index 10f6aa6a6..ec5806fdb 100644 --- a/src/xenia/ui/win32/win32_window.cc +++ b/src/xenia/ui/win32/win32_window.cc @@ -85,7 +85,7 @@ int Win32Window::Initialize(const std::wstring& title, uint32_t width, DWORD window_ex_style = WS_EX_APPWINDOW; RECT rc = { 0, 0, - width, height + static_cast(width), static_cast(height) }; AdjustWindowRect(&rc, WS_OVERLAPPEDWINDOW, FALSE); @@ -189,7 +189,7 @@ bool Win32Window::set_cursor_visible(bool value) { bool Win32Window::SetSize(uint32_t width, uint32_t height) { RECT rc = { 0, 0, - width, height + static_cast(width), static_cast(height) }; AdjustWindowRect(&rc, WS_OVERLAPPEDWINDOW, FALSE); // TODO(benvanik): center? diff --git a/xenia-build.py b/xenia-build.py index 3d364729d..75931dccb 100755 --- a/xenia-build.py +++ b/xenia-build.py @@ -35,8 +35,8 @@ def main(): # Grab Visual Studio version and execute shell to set up environment. if sys.platform == 'win32': vs_version = import_vs_environment() - if not vs_version == 2013: - print('ERROR: Visual Studio 2013 not found!') + if vs_version != 2013 and vs_version != 2015: + print('ERROR: Visual Studio 2013 or 2015 not found!') print('Ensure you have the VS120COMNTOOLS environment variable!') sys.exit(1) return @@ -75,7 +75,10 @@ def import_vs_environment(): """ version = 0 tools_path = '' - if 'VS120COMNTOOLS' in os.environ: + if 'VS140COMNTOOLS' in os.environ: + version = 2015 + tools_path = os.environ['VS140COMNTOOLS'] + elif 'VS120COMNTOOLS' in os.environ: version = 2013 tools_path = os.environ['VS120COMNTOOLS'] elif 'VS110COMNTOOLS' in os.environ: @@ -349,7 +352,7 @@ def run_gyp(format): '--toplevel-dir=.', '--generator-output=build/xenia/', # Set the VS version. - '-G msvs_version=%s' % (os.environ.get('VSVERSION', 2013)), + '-G msvs_version=%s' % (os.environ.get('VSVERSION', 2015)), #'-D windows_sdk_dir=%s' % (os.environ['WINDOWSSDKDIR']), '-D windows_sdk_dir="C:\\Program Files (x86)\\Windows Kits\\8.1"', 'xenia.gyp',