#include <iostream>
#include <fstream>
#include <windows.h>

int main() {
    std::ofstream log("minimal_test.log");
    log << "Minimal test started" << std::endl;
    log.flush();

    MessageBoxA(NULL, "Step 1: Program started", "Debug", MB_OK);

    // Test logger
    log << "Creating logger..." << std::endl;
    log.flush();

    MessageBoxA(NULL, "Step 2: Logger OK", "Debug", MB_OK);

    // Test config loading
    log << "Testing config..." << std::endl;
    log.flush();

    MessageBoxA(NULL, "Step 3: About to load config", "Debug", MB_OK);

    log << "All tests passed" << std::endl;
    log.close();

    MessageBoxA(NULL, "All steps completed successfully!", "Success", MB_OK);

    return 0;
}
