mirror of
https://github.com/KarolS/millfork.git
synced 2025-04-13 05:39:54 +00:00
.ini parsing fix
This commit is contained in:
parent
ca6534c3a7
commit
8d482ca8bf
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user