diff options
| author | DrChat <arkolbed@gmail.com> | 2017-12-21 16:11:35 -0600 |
|---|---|---|
| committer | DrChat <arkolbed@gmail.com> | 2017-12-21 16:11:35 -0600 |
| commit | 4ce774576bb2fafabdee22e6cc45167aab0b622a (patch) | |
| tree | 4573e113465236501fa18f5b634f79d6c3ba6ce6 | |
| parent | 8d7b8c2f82be7aa9b8720d9861c7a815de3b3111 (diff) | |
Fix genspirv command
| -rwxr-xr-x | xenia-build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xenia-build b/xenia-build index f438dbb2f..0882231a0 100755 --- a/xenia-build +++ b/xenia-build @@ -724,14 +724,14 @@ class GenSpirvCommand(Command): # TODO(benvanik): remap? # bin2c so we get a header file we can compile in. - with open(h_file, 'wb') as out_file: + with open(h_file, 'w') as out_file: out_file.write('// generated from `xb genspirv`\n') out_file.write('// source: %s\n' % os.path.basename(src_file)) out_file.write('const uint8_t %s[] = {' % (identifier)) with open(spv_file, 'rb') as in_file: index = 0 c = in_file.read(1) - while c != '': + while len(c) != 0: if index % 12 == 0: out_file.write('\n ') else: |
