1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-08-12 11:29:20 +00:00

.ini parsing fix

This commit is contained in:
Karol Stasiak 2018-02-25 00:43:31 +01:00
parent ca6534c3a7
commit 8d482ca8bf
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ case class CompilationOptions(platform: Platform, commandLineFlags: Map[Compilat
if (platform.cpu == Cmos) {
ErrorReporting.warn("Illegal opcodes enabled for CMOS architecture", this)
}
if (platform.cpu == StrictRicoh || platform.cpu == Ricoh) {
if (platform.cpu == StrictRicoh || platform.cpu == StrictMos) {
ErrorReporting.warn("Illegal opcodes enabled for strict architecture", this)
}
}

View File

@ -54,7 +54,7 @@ object Platform {
conf.read(new StringReader(new String(bytes, StandardCharsets.UTF_8)))
val cs = conf.getSection("compilation")
val cpu = Cpu.fromString(cs.get(classOf[String], "cpu", "strict"))
val cpu = Cpu.fromString(cs.get(classOf[String], "arch", "strict"))
val flagOverrides = CompilationFlag.fromString.flatMap { case (k, f) =>
cs.get(classOf[String], k, "").toLowerCase match {
case "" => None