From 3d4a54cef2a6cd45f49c7737d360aead7ba097fc Mon Sep 17 00:00:00 2001 From: Devon Doyle Date: Thu, 18 Jan 2024 19:15:56 -0500 Subject: [PATCH] update ini export --- Motion-Profile-Mapper/Motion-Profile-Mapper/Utilities/INI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Motion-Profile-Mapper/Motion-Profile-Mapper/Utilities/INI.cs b/Motion-Profile-Mapper/Motion-Profile-Mapper/Utilities/INI.cs index 7984277..0baec3f 100644 --- a/Motion-Profile-Mapper/Motion-Profile-Mapper/Utilities/INI.cs +++ b/Motion-Profile-Mapper/Motion-Profile-Mapper/Utilities/INI.cs @@ -245,8 +245,8 @@ public string toIni() public string toJava() { - string fileContent = "package frc.robot.constants;\n\nimport org.bytingbulldogs.bulldoglibrary.INIConfiguration.BBConstants;\n\n"; - + string fileContent = "package frc.robot.constants;\n\nimport org.frcteam3539.BulldogLibrary.INIConfiguration.BBConstants;\n\n"; + fileContent+=$"public class {this.fileName.Replace(" ", "").Trim()} extends BBConstants"+"{"+"\n"; fileContent += "\tpublic "+this.fileName+"() {\n\t\tsuper(\""+ Properties.Settings.Default.INILocation + this.fileName+".ini\", true);\n\t\tsave();\n\t}\n";