antivirus 0.1.0

antivirus is not enough! you need PROTOGENT
use sdl2::event::Event;
use sdl2::image::{InitFlag, LoadTexture};
use sdl2::keyboard::Keycode;
use std::time::Duration;

fn main() -> Result<(), String> {
    // Initialize SDL2
    let sdl_context = sdl2::init()?;
    let video_subsystem = sdl_context.video()?;

    // Create a window
    let window = video_subsystem
        .window("SDL2 Image Example", 800, 600)
        .position_centered()
        .build()
        .map_err(|e| e.to_string())?;

    // Create a canvas for drawing
    let mut canvas = window
        .into_canvas()
        .accelerated()
        .present_vsync()
        .build()
        .map_err(|e| e.to_string())?;

    // Initialize SDL_image
    let _image_ctx = sdl2::image::init(InitFlag::PNG | InitFlag::JPG)?;

    // Create a texture creator
    let texture_creator = canvas.texture_creator();

    // Load the image file as a texture
    let texture = texture_creator.load_texture("example.png")?;

    // Event pump for input
    let mut event_pump = sdl_context.event_pump()?;

    // Main loop
    'running: loop {
        for event in event_pump.poll_iter() {
            match event {
                Event::Quit { .. }
                | Event::KeyDown {
                    keycode: Some(Keycode::Escape),
                    ..
                } => break 'running,
                _ => {}
            }
        }

        // Clear screen
        canvas.clear();

        // Copy texture to canvas (full-screen)
        canvas.copy(&texture, None, None)?;

        if event_pump.mouse_state().left() {
            sdl2::messagebox::show_simple_message_box(
                sdl2::messagebox::MessageBoxFlag::INFORMATION,
                "antivirus update",
                "you're computer is now fixed",
                canvas.window(),
            ).unwrap();
            break 'running
        }

        // Present frame
        canvas.present();

        // Limit FPS a bit
        std::thread::sleep(Duration::from_millis(16));
    }

    Ok(())
}