import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class AimAssistConfig {
    private Map<String, String> settings;

    public AimAssistConfig() {
        settings = new HashMap<>();
    }

    public void loadConfig(String filePath) {
        try (BufferedReader br = new BufferedReader(new FileReader(filePath))) {
            String line;
            while ((line = br.readLine()) != null) {
                parseLine(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    private void parseLine(String line) {
        line = line.trim();
        if (line.isEmpty() || line.startsWith(";")) {
            return; 
        }

        String[] parts = line.split("=");
        if (parts.length == 2) {
            settings.put(parts[0].trim(), parts[1].trim());
        }
    }

    public String getSetting(String key) {
        return settings.get(key);
    }
    
    public static void main(String[] args) {
        AimAssistConfig config = new AimAssistConfig();
        config.loadConfig("config.ini");

        System.out.println("AimAssist Value: " + config.getSetting("Value"));
        System.out.println("Recoil Enabled: " + config.getSetting("Recoil"));
        System.out.println("Damage Boost: " + config.getSetting("DamageBoost"));
    }
}