mirror of
https://github.com/KarolS/millfork.git
synced 2026-04-19 10:42:10 +00:00
.ini parsing fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user