Cr5x
-
Posts
4 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Cr5x
-
-
Thank you. I just want to make a function do detect if a program is running. Just a test.
So yes, it must run forever.. other solutions?
The function "TestFunc" is just a test to see how to loop without freezing the game.
-
#include <Windows.h> #include <iostream> #include <thread> #include <fstream> void TestFunc(){ while (1){ ofstream myfile; myfile.open("example.txt"); myfile << "Just a test"; myfile.close(); } }
And the call in the mainfunc:
std::thread t1(TestFunc); t1.join();
The function works, but the game doesnt appear..
-
Hello,
i have the client source and i try to make a function which should be called in a loop.
I tried threading, but it doesn´t work. If i use while and threads, the game doesn´t appear, but the function gets called in a loop.
Does somebody know how to call a function in a loop from UserInterface without freezing the game?
Thank you
[Solved] Loop in client source
in Community Support - Questions & Answers
Posted
But this isn´t in a loop, is it? I think the function there is called once..
It just checks once. I need to check it the whole time. With timers it would be easy, but in the metin2 source i can´t use timers..
Thank you in advance
Edit: Solved