From 5a1b5915bfee51249f1753dd55543007fc7df9c5 Mon Sep 17 00:00:00 2001 From: nattthebear Date: Sun, 12 Jul 2020 17:24:12 -0400 Subject: [PATCH] Fix compiling on ancient compilers, and add a global.json which restricts bizhawk to ancient compilers --- global.json | 6 ++++++ src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 0000000000..782c4f9748 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "3.1.100", + "rollForward": "latestFeature" + } +} diff --git a/src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs b/src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs index 9f770d144b..3c36f84a66 100644 --- a/src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs +++ b/src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs @@ -44,8 +44,8 @@ namespace BizHawk.Emulation.Cores.Components.W65816 public string Disassemble(uint addr, Func peek, ref byte P, out int length) { byte opcode = peek(addr); - string ibuf; - string pbuf; + string ibuf = null; + string pbuf = null; int offset = -1, sval = -1; bool tsrc_2 = false;